Search:

Type: Posts; User: MipZhaP

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    6,316

    Okey, my fault for not being explicit in...

    Okey, my fault for not being explicit in explaining the structure.

    The main.cpp file is responsible for creating (using OpenGL - you don't need to care about that) an "aquarium" and making a...
  2. Replies
    16
    Views
    6,316

    Global variable vs parameter 'sending'.

    Hey everyone,

    I've read a bit on this forum about global variables and see that you don't recommend em.

    I want to be able to use a vector of Fish objects in a boids algorithm. Here's the...
  3. Replies
    11
    Views
    9,385

    What wrong with learning more? :) Btw. nice...

    What wrong with learning more? :)
    Btw. nice rewrite of my post SlyMaelstrom :D
  4. Replies
    11
    Views
    9,385

    Salem since you haven't noticed I'll write it to...

    Salem since you haven't noticed I'll write it to ya, the person asked for tutorials and sample code.. Doesn't that sound like something he can LEARN from? I know that's what I'm doing from a...
  5. Replies
    7
    Views
    1,088

    Isn't it because of the lack of int main()...

    Isn't it because of the lack of


    int main()
    {
    ...
    }


    or perhaps because you get an WinMain error, it looks like your trying to create a Windows Program??
  6. Replies
    9
    Views
    8,317

    Well I use a middle between you two. I write...

    Well I use a middle between you two.
    I write using std::endl;
    And yes, that was what I'd sadly forgotten.

    Remembered all the others though. :S
    Thx for reminding me :)
  7. Replies
    9
    Views
    8,317

    Endl - Undeclared identifier.

    I have this code, where I use endl to go to a newline. Pretty simple, usually I don't get such an error but suddenly my project has begun to give my an error on every line that i use endl.



    ...
  8. Replies
    2
    Views
    871

    What's the return type? Int?

    What's the return type? Int?
  9. Replies
    2
    Views
    871

    Date/Time confusion?

    Hi,

    Need som help with a Date/Time problem.
    I've read page up and page down about different ways to determine the date and time in a function. But I get very confused because which way should I...
  10. Replies
    8
    Views
    2,233

    Thx Raven Arkadon, I understand it very well :) ...

    Thx Raven Arkadon, I understand it very well :)
    Darkcoder: Well I don't want a 1-chared name/spell ;) But know what you mean :) But btw. thx for your example ;)
  11. Replies
    5
    Views
    4,222

    int n = foo[first_element]; Make a for loop...

    int n = foo[first_element];

    Make a for loop that runs through the elements and puts them into the foo array in the i-1 place.
    And then when the for loop has reached the end, just...
  12. Replies
    8
    Views
    2,233

    I only have one question about your beautiful...

    I only have one question about your beautiful example Raven Arkadon..
    Where do you have the "("some_name", "some_clan");" from in line:
    CharacterBase *p_character = new OrcCharacter("some_name",...
  13. Replies
    8
    Views
    2,233

    Thx both :) Well I can hear that I'm on the...

    Thx both :)
    Well I can hear that I'm on the right track, but I'm still having the problem figuring out how I can include/use only the class for the specific character type.
    I was thinking about...
  14. Replies
    2
    Views
    1,396

    strtok()..

    strtok()..
  15. Thread: cin.get() ?

    by MipZhaP
    Replies
    4
    Views
    1,274

    You're welcome. :)

    You're welcome. :)
  16. Thread: cin.get() ?

    by MipZhaP
    Replies
    4
    Views
    1,274

    Try putting an cin.ignore() after the first...

    Try putting an cin.ignore() after the first cin.get()..
    And btw. you wrote "enter first name" twice :D

    Edit:
    It might be the termination character from the first cin, that's ruins it for you....
  17. Replies
    8
    Views
    2,233

    Text based game..

    Hi,

    I'm having some problems structuring my program. How to make it. I want to make a game where a player can select between 3 different types og character, select name and so on, and after that...
  18. Replies
    4
    Views
    2,977

    Thx Salem, I'll try taking a look at it :)

    Thx Salem, I'll try taking a look at it :)
  19. Replies
    8
    Views
    1,099

    Number 1: What kind of program? Number 2:...

    Number 1:
    What kind of program?

    Number 2:
    Blank on this one. :)

    Number 3:
    When you've done all 23 tutorials, you know that the following functions/ways that the tutorial describe exists. ...
  20. Replies
    2
    Views
    1,491

    Try googling (http://www.google.com/) it. That...

    Try googling it.
    That helps alot, when you books fail. :)

    Good luck with your research :)
  21. Replies
    4
    Views
    2,977

    Well, I thought about windows GDI, I don't have...

    Well, I thought about windows GDI, I don't have much experience with it, but a little.
    For my own program it would be okey to use some outdated software, but I just would like to be on the way where...
  22. Replies
    4
    Views
    2,977

    Graph in console app.

    Hi,

    I need som help, I want to display a graph in a window. It has something to do with a mathematical graph I want to display. For now my application is a console app, that calculates some...
  23. Replies
    3
    Views
    994

    Oh.. Didn't knew that. Thx alot :)

    Oh..
    Didn't knew that.
    Thx alot :)
  24. Replies
    3
    Views
    994

    cin.get() pauses the program?

    Hi,

    I've run into a problem,

    I have a switch-statement like this:


    switch(chMenu)
    {
    case 1:
  25. Thread: Looping

    by MipZhaP
    Replies
    8
    Views
    1,348

    You can also make a for loop that runs forever...

    You can also make a for loop that runs forever and in your switch-statement have a case that runs return 0, and closes the program. :)
Results 1 to 25 of 111
Page 1 of 5 1 2 3 4