Hey everyone,
Never really done much recursion in C++ before but i just wrote a little depth first search which crashes the 1000th time it calls itself. Everytime. Stack Overflow is the error...
Type: Posts; User: robquigley
Hey everyone,
Never really done much recursion in C++ before but i just wrote a little depth first search which crashes the 1000th time it calls itself. Everytime. Stack Overflow is the error...
Hey every1,
Just wonderin,
I want to have a map datastructure where the second element is always an int but the first can be an int, or a string. Is this possible in C++.
So, something like
hey,
i'm just writing a small class now and i want a few vectors as private data. if i use the line
std::vector<int> a;
then there's no problem. But i want to declare that this vector should...
hey,
I've got a function that i need to return two maps from. As i can't do it with a <code> return </code> is there a way to pass the two maps as reference parameters (like is possible with...
hey every1,
i'm tryin to declare a vector of ints[]
i'm preparing strings of numbers each of 32 digits, each digit means somethin different so i need to access them individually.
Well VC++...
vectors seem to do the trick, nice1, cheers every1.
Only thing is i'm gettin loads (like 100) warnings with vectors
c:\program files\microsoft visual studio\vc98\include\xtree(120) : warning...
Hey every1,
I'm trying to have a Map with a string as key, and a 2 (or more) element array as data. Something like
map <string, int[2]> myMap
I'm getting errors when i try to load data into...
Cheers Wledge.
Nice1.
Hey everyone,
VC++ is givin me errors like
error C2146: syntax error : missing ';' before identifier '_fileStream1'
error C2501: 'ofstream' : missing storage-class or type specifiers because...
aplhaoide, how can u view the files if you use write()? Is the only way to read them back in or something? Or can u get a viewer of some sort?
Hey everyone,
I've been doing some looking at writing out in binary form to files and i think it looks like a byte is the smallest ammount
of info that can be written to a file. Is this true?...
Hey,
Just a question on the code i've posted below.
It writes to the file out.bin but when i view it (thru notepad or edit or whatever) i can see the word "HELLO".
If this is a "binary" file...
Hey Fordy
Visual C++ 6.0 Enterprise edition
hey,
I'm trying to get the Visual C++ profiler to work and i've followed all the instructions about changing project settings and all but after i've "enabled profiling" and gone to build and all...
Gift Salem,
I don't know what i was thinking with 40000 and other crazy high numbers. Thanks for bringing me back down to earth, my head was in the clouds.
Nice one,
Thanx,
Rob.
Tried that Garfield, thing is though i've got a data file in the form of
1 2 768
1 3 398
1 4 398.67
and there is 47306 lines like this because its the value of 218 cities distance from each...
I'm trying to declare a 2-dimensional array in C of length 40000.
int matrix[40000][40000];
but the compiler is telling me that the size of variable 'matrix' is too large. I'm using gcc and...