Please Give Me a Suggestion
Aug 28, 2013 at 6:20am UTC
Hello fellow programmers,
I have an assignment, simply the hello world program in C (not C++). Our instructor has given us the compiler that is located on a folder called C600. We must ONLY use the command prompt to run. No IDE (codeblocks, VS 2012, notepad++ etc. can't be used). Any suggestions on how to do it!!
1 2 3 4 5 6 7 8
#include <stdlib.h>
#include <studio.h>
int main()
{
printf("\n\n\n\t\t Hello, World" );
}
Aug 28, 2013 at 6:37am UTC
ask him what compiler it is and search for keywords in the internet
Aug 28, 2013 at 6:49am UTC
He did not specify a compiler.
Aug 28, 2013 at 7:04am UTC
Search in that folder by using dir command.
Aug 28, 2013 at 7:58am UTC
You should ask such question your instructor. We know nothing about the folder C600 in your computer.
Last edited on Aug 28, 2013 at 7:58am UTC
Aug 28, 2013 at 8:35am UTC
and that is not <studio.h>
but <stdio.h>
( standard i/o )
Aug 28, 2013 at 10:25am UTC
That looks like the instructor expects the students to be able to figure out how to use that magical "command prompt".
I presume that the following is not the expected answer.
$ cat > foo.c << EOF
> #include <stdio.h>
> int main() { printf("HW\n"); return 0; }
> EOF
$ c99 foo.c
$ ./a.out
HW
$
Topic archived. No new replies allowed.