|
-
May 15th, 2009, 09:02 AM
#1
Complete Novice doing something stupid
Hi I have a file
Hello.cpp (I said i was a novice).
#include <iostream.h>
int main()
{
int x = 5;
int y = 7;
cout "\n";
cout << x + y << " " << x * y;
cout "\n";
return 0;
}
I try and run and compile it by running
bcc32 -If:\Borland\bcc55\include -Lf:\Borland\bcc55\Lib Hello.cpp
But am getting the following error
Hello.cpp:
Error E2379 Hello.cpp 6: Statement missing ; in function main()
Error E2379 Hello.cpp 8: Statement missing ; in function main() *** 2 errors in Compile
I apologise for the post but I really waqnt to get on and can't even get past this simple problem.
-
May 15th, 2009, 09:12 AM
#2
Re: Complete Novice doing something stupid
What do you see different in these two statements?
cout "\n";
cout << x + y << " " << x * y;
-
May 22nd, 2009, 10:38 AM
#3
Re: Complete Novice doing something stupid
Apologies for the delay coming back Work comes first
If I'm perfectly honest I don't see anything different except the question marks are around the /n
in the first line and not the second line statement
I know /n is a new line so expected the following result (once it compiled)
12 35
I'm sorry to be a hassle
-
May 22nd, 2009, 10:51 AM
#4
Re: Complete Novice doing something stupid
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|