Thanks for everything so far!
first... I think that a struct wouldn't work, because the program uses each of the "options"
second... Yeah, I'm still a begginer in this, I need to form the...
Type: Posts; User: Kylecito
Thanks for everything so far!
first... I think that a struct wouldn't work, because the program uses each of the "options"
second... Yeah, I'm still a begginer in this, I need to form the...
Thanks to everyone
I had another problem with a windows exception, but it turns out it was a memory problem... Are arrays of classes THAT big?!
Here is the class... an array of 100 threw an...
Okay, thanks, but... What if i want to access the members of the array passed?
should i use
j[i].somemember();
or
Hello everyone... again.
It's no secret that pointers are really confusing for me, especially pointers to arrays.
I've been making a little "text adventure" game. So far everything is going...
You added that to the code >.>
Thanks Ancient Dragon, I removed the pointers (was trying to practice using them... but I always get errors when I do)
And added some kind of "check" that only...
Just as a little test, I made a simple program that reads from a .txt file each line, and then stores whatever its between quotes on that line on a temporary string.
Then, it writes every...
No, I mean, compared with everyone else. I already know (or... "have a grasp of") those concepts. But there are certain things that still aren't so clear, and i can't seem to find the answers anywhere
http://www.cplusplus.com/doc/tutorial/exceptions.html
I was seeing that about deriving exceptions, but... What's the difference in catching them by reference? Only that you can catch derived...
Sorry Daved, I don't have any code to show here... It's just a little question =(
Then... if exceptions are better, how can you manage a lot of different exceptions, taking into consideration the...
I'm still a complete newbie in C++, and i've been wondering... Which is a better way to catch exceptions? using try-catch-throw, or some nested ifs?
Because, at least for me, the try-catch-throw...
Okay, I changed both things in the code and now it works... Is there a problem with template compatibility, or the code was just wrong?
Thanks to everyone for the help ;)
Sigh... i guess i'll have to get another compiler.
VC++6 = Visual Studio 6 ?
http://www.cplusplus.com/doc/tutorial/templates.html
I tried to compile the example given on there about template specializations (just added a pause at the end), but the compiler doesn't seem to...
Depends, what do you want to do?
I'm just a beginner in C++ but i don't think jumping out of functions with a goto is a good idea
with "label:", as in
start:
//do something
middle:
//something else
end:
return 0;
Shouldn't she use a cin.ignore() before the cin.get() too?
Thanks everyone... now... is goto slower than a well structured loop or normal code?
I'm just a newbie in c++, and as far as i've seen, nobody seems to use the "goto" statement.
Why? is it frowned upon? Are there any problems using it?
Can it be used to replace an "if" or a loop?...
I made some changes... now the nickname part at least works
if(nickRight == false)
{
strcpy(nickTemp,blanco); //added
goto nickname;
}
else
Okay, no luck yet.
http://img527.imageshack.us/img527/6311/o2classexcep8qh.jpg
I allocated space for the temps...
char *nickTemp = new char[20];
char *experienceTemp = new...
Oh my god that's the dumbest mistake ever. I totally forgot.
Thank you
EDIT:
Sigh, there still are some errors.
If you get the nickname wrong, after the "error" message, windows throws an...
I made a class with its constructors, initializers, methods, everything... but a friend function doesn't seem to work fine.
Something in the "exception-detection" part went wrong, and the compiler...