Search:

Type: Posts; User: Kylecito

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    2,478

    Thanks for everything so far! first... I think...

    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...
  2. Replies
    10
    Views
    2,478

    Thanks to everyone I had another problem with a...

    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...
  3. Replies
    10
    Views
    2,478

    Okay, thanks, but... What if i want to access the...

    Okay, thanks, but... What if i want to access the members of the array passed?

    should i use



    j[i].somemember();


    or
  4. Replies
    10
    Views
    2,478

    Passing an array as reference to a function?

    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...
  5. Replies
    4
    Views
    1,065

    You added that to the code >.> Thanks Ancient...

    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...
  6. Replies
    4
    Views
    1,065

    Reading from a file, got garbage instead

    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...
  7. Replies
    9
    Views
    2,251

    No, I mean, compared with everyone else. I...

    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
  8. Replies
    9
    Views
    2,251

    http://www.cplusplus.com/doc/tutorial/exceptions.h...

    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...
  9. Replies
    9
    Views
    2,251

    Sorry Daved, I don't have any code to show...

    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...
  10. Replies
    9
    Views
    2,251

    Try...catch...throw or ifs?

    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...
  11. Okay, I changed both things in the code and now...

    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 ;)
  12. Sigh... i guess i'll have to get another...

    Sigh... i guess i'll have to get another compiler.
    VC++6 = Visual Studio 6 ?
  13. Error compiling a specialized template in Devc++

    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...
  14. Replies
    15
    Views
    2,592

    Depends, what do you want to do? I'm just a...

    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
  15. Replies
    15
    Views
    2,592

    with "label:", as in start: //do something...

    with "label:", as in


    start:
    //do something
    middle:
    //something else
    end:
    return 0;
  16. Replies
    4
    Views
    3,360

    Shouldn't she use a cin.ignore() before the...

    Shouldn't she use a cin.ignore() before the cin.get() too?
  17. Replies
    29
    Views
    7,990

    Thanks everyone... now... is goto slower than a...

    Thanks everyone... now... is goto slower than a well structured loop or normal code?
  18. Replies
    29
    Views
    7,990

    "goto" question

    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?...
  19. Replies
    9
    Views
    2,494

    I made some changes... now the nickname part at...

    I made some changes... now the nickname part at least works



    if(nickRight == false)
    {
    strcpy(nickTemp,blanco); //added
    goto nickname;
    }
    else
  20. Replies
    9
    Views
    2,494

    Okay, no luck yet. ...

    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...
  21. Replies
    9
    Views
    2,494

    Oh my god that's the dumbest mistake ever. I...

    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...
  22. Replies
    9
    Views
    2,494

    Problems with a custom-made class

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