Data Structures and Algorithms Discussion Board
February 04, 2012, 09:51:30 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Looking for a reliable webhosting provider? Read HostGator review to find 7 arguments in support of HostGator.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Hello World! application in C++ tutorial  (Read 4840 times)
QuestionBot
Newbie
*

Rating: 0
Offline Offline

Posts: 3


« on: July 05, 2009, 09:14:25 AM »

Article: Hello World! application in C++ tutorial
Question (Rones): I did exactly as told. But I get a build error.. it wont execute.
this is what I get:

1>------ Build started: Project: HelloWorldProject, Configuration: Debug Win32 ------
1>Compiling...
1>HelloWorldApp.cpp
1>.HelloWorldApp.cpp(1) : warning C4627: '#include <iostream.h>': skipped when looking for precompiled header use
1>        Add directive to 'stdafx.h' or rebuild precompiled header
1>.HelloWorldApp.cpp(11) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
1>Build log was saved at "file://c:UsersRoniDocumentsVisual Studio 2008ProjectsHelloWorldProjectHelloWorldProjectDebugBuildLog.htm"
1>HelloWorldProject - 1 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Logged
Denis
Newbie
*

Rating: 0
Offline Offline

Posts: 21


« Reply #1 on: July 05, 2009, 09:19:18 AM »

Let us try to find the solution. Are you sure, that you've created "Empty Project"?
Logged
Petar
Newbie
*

Rating: 0
Offline Offline

Posts: 1


« Reply #2 on: July 09, 2009, 03:37:51 AM »

#include <stdio.h>

void main () {
      printf ("Hello World") ;
}
Logged
Pages: [1]
  Print  
 
Jump to: