Thread: how do I...

  1. #16
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    ok...
    Ive done this before...
    And it didnt work? Then you probably have a botched install. Read up How can I uninstall Dev-C++ cleanly?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  2. #17
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    ask person wich program to jump to.

    jump to it...

    repeat until they quit.
    Um, what do you mean by jumping to programs? I have not heard of such a concept.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #18
    Registered User lsctt's Avatar
    Join Date
    Jun 2006
    Posts
    30
    It works now. ? but how do i get it to jump to sertain .exe files without going down the list 1 by 1,

    and thank for the help and patience...

  4. #19
    Registered User lsctt's Avatar
    Join Date
    Jun 2006
    Posts
    30
    um...

    project,

    .exe 1-asks player wich game to play.
    .exe 2- a game #1
    .exe 3- a game #2
    .exe 4- a game #3

    Currently if the player wants to play game #3, .exe 4, he/she has to go down the lidt 1 by 1 and play all the others to get there. how do i send him/her straight to game #3, .exe4 ?

  5. #20
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Hokay, so you built a few programs and want them to be run within another program. FAQ GET!!

  6. #21
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    You could embed each of the options inside the same program with functions (or if/switch statements if you don't know what a function is).
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  7. #22
    Registered User lsctt's Avatar
    Join Date
    Jun 2006
    Posts
    30
    the thing about doing that is you get lost in game loops and "if" statments.

  8. #23
    Registered User lsctt's Avatar
    Join Date
    Jun 2006
    Posts
    30

    Question lost

    Quote Originally Posted by dwks
    You could embed each of the options inside the same program with functions (or if/switch statements if you don't know what a function is).
    lik i said lost in game loops and "if" statment, i'd like to avoid that so being able to say for example

    Code:
    string game;
    cout <<"The games are as fallows"
    cout<< "tic tac toe, black jack, and critter farm...";
    
    cout<<"what would you like to play (ener name):";
    cin>>game
    
    if (game == tic tac toe)
    then have it close this .exe and open the tic tac toe .exe

Popular pages Recent additions subscribe to a feed