-1

I computed a clock on a file exerciceIV_2.C with the gedit command of unix, And, by a night of september, I decided to use sleep 1000 in order to stop the clock.

I wasn't able to use my device for 1000 seconds! hopefully I called a friend who told me to use CTRL+C. How should we do in order to still stop the clock while having control?

closed as off-topic by Raphael Ahrens, roaima, dr01, wurtel, chaos Sep 30 '15 at 10:10

  • This question does not appear to be about Unix or Linux within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • This is not about Unix or Linux, it's a (beginner's!) programming question – wurtel Sep 30 '15 at 9:55
  • @wurtel Yes, I know, If you had read the comments, you would know that I would have deleted it! and beginner or not it's still a question! – ThePassenger Sep 30 '15 at 23:18
3

while syntax is

while ( cond ) expr ;

you cannot add a ! before (

On a side note, this question would have better fit stackoverflow.

  • ow! thanks! sorry, I was using unix so I thought... whatever! I'm deleting it right after I make it working. – ThePassenger Sep 30 '15 at 9:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.