this when i run again always repeat the output..anyone can help me to not repeat the output when i run again?

0 kazu lin · September 27, 2014
/images/forum/upload/2014-09-27/72986ac41957dbfb440c3cf8c1d7ffc3.jpg

Post a Reply

Replies

Oldest  Newest  Rating
0 M .A.K · September 27, 2014
Do you mean that it's repeating:
H
E
L
L
O
       WORLD


infinitely? if it's true check your loops conditions or goto statements (if you have any).

Or if you mean that you do want to see those 
H
E
L
L
O
       WORLD

H
E
L
L
O
       WORLD

Parts on first run and never see them again(on second,third,... start of your app). You can use a file to save that those are seen and check that on each run.
otherwise Man We Need More Clarity! At least more explanation?! :D
0 Anas Abd Daim · September 28, 2014
I agree with  Mortaza Asaadi
to check your loops
or there is something wrong with your compiler

you may also check the code on online c compiler
0 kazu lin · September 28, 2014
thanks guys i already know the solution the clrscr(); just put that before the cout<<"___________";
  • 1

C

107,037 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator