Search:

Type: Posts; User: cyanfish

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,355

    Well, to make the multiple digit thing easier,...

    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...
  2. Replies
    4
    Views
    1,152

    Your problem is that you are printing an empty...

    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...
  3. Replies
    6
    Views
    2,062

    Thank you, it appears you were right. I stopped...

    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.
  4. Replies
    6
    Views
    2,062

    >What's ls? erm... Sorry about that. >You...

    >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...
  5. Replies
    12
    Views
    16,320

    Change all the functions to non-static and...

    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...
  6. Replies
    6
    Views
    2,062

    Runtime error using list.erase()

    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...
Results 1 to 6 of 6