Like Tree1Likes
  • 1 Post By Salem

Help me where to place the system("cls");

This is a discussion on Help me where to place the system("cls"); within the C++ Programming forums, part of the General Programming Boards category; Can u help me where to place : Code: run: Code: getch(); system("cls"); goto run; in the right place so ...

  1. #1
    "PALINDROME"
    Join Date
    Nov 2010
    Posts
    59

    Help me where to place the system("cls");

    Can u help me where to place :

    Code:
    run:
    Code:
    getch();
    system("cls");
    goto run;
    in the right place so i got a correct output . . . because i got wrong . . . please i need help . . .

    because i want it like after i input correct answer it must be clearscreen and go
    back to guess line with correct h@n6m@n drawing. . please i really need help in
    clearing the line and get back . .
    Last edited by [Student]; 09-14-2011 at 05:03 AM.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,672
    It might help if you wrote your own code, rather than just finding something and attempting to hack it.
    Or maybe it was this mauled abomination
    Point is, there are plenty of places you could have copied it from.

    Write a SIMPLER program using system("cls"); and see how it works.
    Then APPLY what you know to your main problem.

    FWIW, there is no point having a goto inside a while loop, that would loop just fine WITHOUT the goto there at all.

    See, if you had written any code yourself and knew how a while loop worked, you would know this.
    But if you continue to just google code, add random syntax and then post it for someone else to fix, you're never going to learn anything.
    AndrewHunter likes this.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Use system("file location") to open root folder?
    By muffinman8641 in forum C++ Programming
    Replies: 9
    Last Post: 03-17-2011, 10:45 AM
  2. Replies: 18
    Last Post: 05-26-2008, 11:23 PM
  3. system("pause") in C#? (warning: noob question)
    By Wintersun in forum C# Programming
    Replies: 20
    Last Post: 03-28-2008, 02:26 AM
  4. "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "
    By L.O.K. in forum Windows Programming
    Replies: 5
    Last Post: 12-08-2002, 07:25 AM
  5. "CWnd"-"HWnd","CBitmap"-"HBitmap"...., What is mean by "
    By L.O.K. in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 06:59 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21