OK i found out that when i use endl instead of ' ' its prints. But i want them all on one line.
Does anyone know what could be happening?
Any info would be great thanks.
hi
Thanks for the reply.
I've already tried flush. (cout << array[i] << flush << ' ') but it didn't work.
I also found out that you only have to put a new line character ('\n') at the end to get it working. But as i said i need it on one line only. Any more ideas?
OK, maybe I should give you a bit more info sorry.
Im using cygwin and the GCC compiler.
Also I'm getting the values for the array from a text file. Then sorting the array using a shell sort, then printing it.
here is the file input method:
Does anyone know what is happening? Could it be because theres unknown characters inputed from the file, that i should remove? If so what could they be?
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.