Results 1 to 5 of 5
  1. #1
    That0n3Guy's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    1,137
    Reputation
    13
    Thanks
    271
    My Mood
    Sleepy

    GoTo function like CMD?

    I tried using, "system(":test2");"
    and then "system("goto :test2");"
    but it didn't change the way the program ran at all.

    Is there anything similar to the CMD goto command that would allow you to skip around in C++ code, or would it merely be easier with functions?

    Also, before you say something along the lines of "Read the fucking manual", I've looked through 2 books today and search online for about an hour with no results.
    Quotes Hall of Fame

    Quote Originally Posted by martijno0o0 View Post
    ok, i got visual basic 2008 and i got some expirients but i need c++ to make hacks rigth?
    so i need c++ and my question is!?¿? where i dontload it? and is c++ a own program or a update for vb08?
    [IMG]https://i660.photobucke*****m/albums/uu327/EddieTheWin/duff.png[/IMG]

  2. #2
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Quote Originally Posted by That0n3Guy View Post
    I tried using, "system(":test2");"
    and then "system("goto :test2");"
    but it didn't change the way the program ran at all.

    Is there anything similar to the CMD goto command that would allow you to skip around in C++ code, or would it merely be easier with functions?

    Also, before you say something along the lines of "Read the fucking manual", I've looked through 2 books today and search online for about an hour with no results.
    If your trying to skip around in code like that... though I don't recommend it just create a jump point by saying something like [php] int i;
    test: // will jump back to this point
    doSomethin();
    doSomethingElse();[/php]

    [php]
    int i = 3;
    goto: test; // will jump back to the line test and execute from there
    ...
    doSomething3();
    [/php]

    At least I'm pretty sure that is how it works. Tell me if I'm wrong.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  3. #3
    lalakijilp's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Posts
    310
    Reputation
    9
    Thanks
    53
    My Mood
    Blah
    avoid go to.
    you almost never have to use it and it makes the code difficult to read


  4. The Following 2 Users Say Thank You to lalakijilp For This Useful Post:

    B1ackAnge1 (11-02-2009),why06 (11-02-2009)

  5. #4
    B1ackAnge1's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    455
    Reputation
    74
    Thanks
    344
    My Mood
    Cynical
    Quote Originally Posted by lalakijilp View Post
    avoid go to.
    you almost never have to use it and it makes the code difficult to read
    Yeah That... I've never had to use a GOTO in C++..
    if you REALLY wanted to though you still can:

    Code:
    ///...some code..
    
    goto myLabel;
    
    //...some code...
    
    myLabel:
         DoSomething();

  6. #5
    zeco's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    Canada
    Posts
    683
    Reputation
    12
    Thanks
    78
    My Mood
    Cynical
    I've never had to use goto either. But i've always wanted to.

Similar Threads

  1. all the words like wtf and there explanation
    By Pepijntje in forum General
    Replies: 24
    Last Post: 12-07-2021, 05:57 PM
  2. lets see what everyone looks like
    By yocinfluence in forum General
    Replies: 96
    Last Post: 05-02-2006, 07:43 PM
  3. Private Servers You Like MPGH Will Make
    By Paolo1993 in forum General Gaming
    Replies: 53
    Last Post: 02-20-2006, 08:55 AM
  4. What do ya like better?
    By i eat trees in forum Entertainment
    Replies: 5
    Last Post: 02-09-2006, 10:57 PM
  5. lets see what everyone looks like
    By yocinfluence in forum Spammers Corner
    Replies: 10
    Last Post: 01-25-2006, 02:29 PM

Tags for this Thread