Home Forums C Programming Please help

Viewing 1 reply thread
  • Author
    Posts
    • #2173
      LaurenMaskell
      Participant

      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


      #include <>
      void main()
      {
      printf("nHello Worldn");
      }

      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:

      #include 
      int main()
      {
      printf("nHello Worldn");
      }

      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?

    • #3505
      GWILouisaxwzkla
      Participant

      try:



      #include
      void main()
      {
      printf("nHello Worldn");
      }
Viewing 1 reply thread
  • The forum ‘C Programming’ is closed to new topics and replies.