Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CopyFile() Pin
whizano20-Jan-06 19:36
whizano20-Jan-06 19:36 
QuestionSuspendThread question Pin
misha_grewal20-Jan-06 17:53
misha_grewal20-Jan-06 17:53 
AnswerRe: SuspendThread question Pin
Toby Opferman20-Jan-06 19:13
Toby Opferman20-Jan-06 19:13 
AnswerRe: SuspendThread question Pin
Stephen Hewitt20-Jan-06 19:14
Stephen Hewitt20-Jan-06 19:14 
AnswerRe: SuspendThread question Pin
whizano20-Jan-06 19:30
whizano20-Jan-06 19:30 
Questionhow can i change the background color of selected listctrl item Pin
baldha rakesh20-Jan-06 17:50
baldha rakesh20-Jan-06 17:50 
AnswerRe: how can i change the background color of selected listctrl item Pin
Stephen Hewitt20-Jan-06 19:50
Stephen Hewitt20-Jan-06 19:50 
QuestionSimple C++ Error... Please Help Pin
Joshua N20-Jan-06 15:42
Joshua N20-Jan-06 15:42 
Hi all,

Yesterday I bought Robert Lafore's Object Oriented Programming in C++ book but there is a problem I really can't solve.

When I want to write the example codes in the book, I click File menu > New > File and then select Visual C++ > C++ File (.cpp). And I get a new window to code things. But the problem is whenever I press Build from the Build menu, I get this error:

C:\OOP\NewX\NewX.cpp(9): fatal error C1010: unexpected end of file while looking for precompiled header directive

Is Build what I should use to see the result of the code?

What I have written was this:

#include <iostream>
using namespace std;

int main()
{
cout << “Every age has a language of its own\n”;
return 0;
}

and then this:

cout << “Every age has a language of its own\n”

Please help me to solve this problem as this is the key thing to learn C++.

Btw I have Visual C++ 2005 Express Edition.



Thanks in advance,
Joshua
AnswerRe: Simple C++ Error... Please Help Pin
Garth J Lancaster20-Jan-06 16:06
professionalGarth J Lancaster20-Jan-06 16:06 
GeneralRe: Simple C++ Error... Please Help Pin
Joshua N20-Jan-06 21:54
Joshua N20-Jan-06 21:54 
GeneralRe: Simple C++ Error... Please Help Pin
Garth J Lancaster20-Jan-06 23:33
professionalGarth J Lancaster20-Jan-06 23:33 
GeneralRe: Simple C++ Error... Please Help Pin
Garth J Lancaster21-Jan-06 0:03
professionalGarth J Lancaster21-Jan-06 0:03 
GeneralRe: Simple C++ Error... Please Help Pin
Joshua N21-Jan-06 6:45
Joshua N21-Jan-06 6:45 
GeneralRe: Simple C++ Error... Please Help Pin
Garth J Lancaster21-Jan-06 12:19
professionalGarth J Lancaster21-Jan-06 12:19 
GeneralRe: Simple C++ Error... Please Help Pin
RadioOpa21-Jan-06 10:25
RadioOpa21-Jan-06 10:25 
GeneralRe: Simple C++ Error... Please Help Pin
Joshua N21-Jan-06 11:41
Joshua N21-Jan-06 11:41 
GeneralRe: Simple C++ Error... Please Help Pin
waxie22-Jan-06 17:30
waxie22-Jan-06 17:30 
AnswerRe: Simple C++ Error... Please Help Pin
Dr Dan22-Jan-06 10:02
Dr Dan22-Jan-06 10:02 
QuestionDatabase connection in .NET Pin
Jordan C. Atlas20-Jan-06 15:41
Jordan C. Atlas20-Jan-06 15:41 
AnswerRe: Database connection in .NET Pin
Ed K21-Jan-06 13:01
Ed K21-Jan-06 13:01 
GeneralRe: Database connection in .NET Pin
Jordan C. Atlas21-Jan-06 13:36
Jordan C. Atlas21-Jan-06 13:36 
QuestionHow to use code coverage in VC 2005? Pin
Azbok20-Jan-06 15:25
Azbok20-Jan-06 15:25 
QuestionNewbie question - data storage Pin
ruzu20-Jan-06 14:57
ruzu20-Jan-06 14:57 
AnswerRe: Newbie question - data storage Pin
Stephen Hewitt20-Jan-06 15:07
Stephen Hewitt20-Jan-06 15:07 
GeneralRe: Newbie question - data storage Pin
ruzu21-Jan-06 3:13
ruzu21-Jan-06 3:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.