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

  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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.
    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.

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, 08: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, 07:59 AM