madhater
February 23rd, 2011, 12:37 PM
I use the CLI for writeing and compileing my programs. I use vim and gcc. For some reason I have not yet found, when I execute my most resunt programs, the output is put before the next prompt, e.g lke this:
"Hello, World" james@larry-desktop$:
This did not use to happen. It used to output like this:
"Hello, Wolrd"
james@larry-desktop$:
This is the code for a program which otputs how it used to:
#include <stdio.h>
int main()
{
printf( "Hello, World" );
}
My other example programs output in the first manner. Why????
Sorry the code looky bad, but my brother is bugging me to get of.
"Hello, World" james@larry-desktop$:
This did not use to happen. It used to output like this:
"Hello, Wolrd"
james@larry-desktop$:
This is the code for a program which otputs how it used to:
#include <stdio.h>
int main()
{
printf( "Hello, World" );
}
My other example programs output in the first manner. Why????
Sorry the code looky bad, but my brother is bugging me to get of.