ok, I am a newbie to c & I want to make a basic program in ms-dos. But I can never seem to execute commands properly, check this out:
<!-- Crappy Code Begin --!>
#include <stdio.h>
main()
{
system("dir");
}
<!-- Crappy Code End --!>
Now when I compile & run this thing it never works, all it is supposed to do is the 'dir' command in ms-dos but all I get is a blank black screen.
What am I doing wrong here people?