... Is that even safe? If I was writing a compiler, I'd be taking advantage of a variable's constness. I can imagine situations where overwriting a const ...
Adelle Hartley
adelle@...
Mar 1, 2006 9:08 am
52741
Hi! Everyone, Can anyone tell me how to increase the size of array dynamically? Thanks & Regards, Sangeeta ... Jiyo cricket on Yahoo! India cricket Yahoo!...
... Ah. Indeed. ... Wouldn't work. You'd get a false positive with (say) 1000.11 and 1000.21. Or a false negative with 0.0012 and 0.0014. Could always strcmp()...
The result is confidently true because the compiler checks the all digits. ... Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with...
... 1000.21. Why false? 1st 3 digits are the same, which I thought was what the OP was after. ... Ah- yes, assuming OP is interested in the 0.00, but I wonder...
... No. It's undefined behaviour. A caveat I should have mentioned in my original answer :) ... Well quite. -- PJH Student Suspended Over Suspected Use of PHP:...
Hello, ... Use the Standard Template Library (STL). For instance, the closest thing to an array in STL is a vector. typedef std::vector<long> vec_long_t; ...
Adelle Hartley
adelle@...
Mar 1, 2006 9:24 am
52750
... Because I assumed same within 2 decimal places. You clearly assumed same within 3 significant digits. Another reason for the clarification I asked for :D ...
can u give me any small example ... In C you would probably use realloc(). In C++ you would probably use vectors. To unsubscribe, send a blank message to...
have a global object that on construction outputs the text required. Regards Som ... From: madhu raj To: c-prog@yahoogroups.com Sent: 28/02/2006 6:57 PM ...
... sorry, completely wrong for the following reasons: 1) The compiler does not check anything at run-time, this sort of work is done by the program itself (or...
... <snip> I'm not Paul, but I think the following will help: 1) open your browser and surf to www.google.com 2) in the text entry field, enter realloc+sample ...
... Have you seen that new website called Google? http://www.google.com/search?q=garbage+collection+C+algorithm -- PJH Student Suspended Over Suspected Use of...
On 3/1/06, Nico Heinze <grollnar@...> wrote: [...] ... I think you'll find it was Lenson who posted them this time. I've only been arguing with John about...
HI, I have a strange problem regarding fopen, the following code snippet: FILE *stream; stream=fopen(fname.c_str(),"r"); if( stream !=NULL) { //something...
i know this is possible through the melloc function that intilized the memory dynamically of array as well as structure in c and c++ so for this just refer the...
... Why are you using <cstdio> instead of <iostream> in a C++ program? ... /Only/ 95 files? Why do you need so many open?? ... Don't have so many open files....
... Could I suggest that you only need to find out how *close* they are to each other, rather than comparing for equality? abs() and an upper limit should...
... Is this another meaningless interview question? The easiest way is in your editor, put the cursor on the 'c' and press delete 5 times, then you will not ...
Hey guys, Forgive me, I'm a C guy, not C++. I'm attempting to read a txt file with the below code and enter each line into a string vector. I can get the first...
MM
matt-martin@...
Mar 1, 2006 1:36 pm
52766
Hi, This is a part of legacy code, so we are using FILE instead of ftream objects. If I use fstream object and open the file, the fstream.fail call return...
Reply embedded... ... For what language? In C, use malloc() to allocate the memory for the array, realloc() to change its size and free() to deallocate the...
thanks martin, i know c++ only and making user interface through VB. I have searched a lot in Google and books too, but i didi not get the commands.i have got...