Well, to make the multiple digit thing easier, you could add zeros at the beginning. e.g.
12 +
1341
->
0012 +
1341
Also, adding another zero to the beginning would allow for carrying of the...
Type: Posts; User: cyanfish
Well, to make the multiple digit thing easier, you could add zeros at the beginning. e.g.
12 +
1341
->
0012 +
1341
Also, adding another zero to the beginning would allow for carrying of the...
Your problem is that you are printing an empty value. When you declare studentTemp is case 4, it is initialized with no value. Also, the loop actually does nothing - you do not use i. enter_students...
Thank you, it appears you were right. I stopped using pointers and it worked fine - the only problem now is the logic, but that's my problem.
>What's ls?
erm... Sorry about that.
>You don't need these tests. erase will simply return 0 if the item doesn't exist.
Thanks for that, it was left over from an old version.
>If sp is null...
Change all the functions to non-static and declare an object of that class. They will be accessed as normal, except with ObjectName.member instead of ClassName.member, but you can easily just change...
My problem is that when I use erase() on a set<int>, I get a runtime error (windows must close the program, etc.). Chances are it is something obvious. Here is the relevant code:
typedef...