Thanks. I'll try that and get back to you...
Type: Posts; User: Meganan
Thanks. I'll try that and get back to you...
Look up a tutorial and read it through there are plenty around. just search "c++ tutorial" in google.
I think it has to do with the fact that i'm trying to use template functions in my classes
for e.g. template <class strr> strr getValPos(int);
It was the change to templates that made the...
n_str.obj : error LNK2001: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall priority::getValPos(int)"...
take a look at priority queues they give this exact function.
When you say think of an output what do you mean?
really give me a minute...oohhh wait no the important part is that it is placed inside a function. I got it to work myself when it was just in the main(). Mabye i'll try to see if i can convert that...
I've already looked there and it didn't help me or i didn't understand it.
Good points although dest has been declared globally and there is enough room for the entire file. So how would i go about fixing this? i'm new to txt files in C++. Should i declare a string pointer??
Just as i expected it didn't work. that's because if you say getline(temp, 10) you're never going to reach the eof() are you? You're just going to keep on copying the same 10 char's to the same...
Look like everybody else has said you just dont go "hmmm...I'll think I'll learn C++ today!" and create Halo 2 in the same day. There is a reason why it takes you another 4 years after high school to...
Hey seriously on this post is there any way to find and erase/replace a string from a text file?? I can't figure out how to do it without taking the whole string out of the text file clear the file...
I have some code that is supposed to dig right into a file and return the text it finds (it's a big file). Unfortunately for me it compiles properly but crashes in the actual program; this is what...