Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C thread

Name: Anonymous 2008-08-19 2:59

I'm starting to program C , and I made a basic C program hello.c
and I've written it on notepad. I want to compile it on DOS. How do I do that? Is it a problem if the file is written as hello.c.txt in dos? I did gcc hello.c but it wouldn't work. How do I compile C programs on dos?

Name: Anonymous 2008-08-19 4:05

ok tell me at what step i went wrong:
1.create a notepad file called hello.c
2.write

#include <stdio.h>
main()
{ printf("hello world\n");
  return(0);
}

3.save the file
4.open command prompt
5.go to folder where my file is stored
6.in command prompt write: gcc hello.c
7. i get error:
gcc: hello.c: no such file or directory
gcc: no input files

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List