Hi, so i was told that i could use the scanf() function, validating it with a space, instead of an "ENTER".
scanf ( "% [^] d", & a);
The person told me to use that.
I couldn't get it working.
Do you know what is wrong?
Extra info: I am trying to solve a problem, in wich i have to give the program the ammount of lines i want to use, and then in each line i have first a number (for example A) that says how many numbers that line is going to get, and then with those numbers i need to find the 2 that are the most close and present the diference between them (example, in {1, 2, 5, 7} the answer would be 1.
[IMG]http://www.upload3r.com/serve/170410/1271527272.png[/IMG]