- This topic has 1 reply, 2 voices, and was last updated 15 years, 10 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- The forum ‘C Programming’ is closed to new topics and replies.
Home › Forums › C Programming › Please help
Hi, i’m a totally noob at C++, after i read the tutorial, i test some of the code by copy and paste the code
1 2 3 4 5 6 7 | <br /> #include <><br /> void main()<br /> {<br /> printf("nHello Worldn");<br /> }<br /> |
from this http://c4tutorials.blogspot.com/ and some error come out:
(#include<>) error message=no such directory. and i change it in to (#include
(void main()) error message=main must return int. and i change into (int main)
and the code become like this:
1 2 3 4 5 | #include <iostream><br /> int main()<br /> {<br /> printf("nHello Worldn");<br /> }</iostream> |
then i press the compile and the run button and nothing happens even the error message also didn’t appear.
Am i make any mistake?
try:
1 2 3 4 5 6 7 8 | <br /> <br /> #include <br /> void main()<br /> {<br /> printf("nHello Worldn");<br /> }<br /> |