By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,605 Members | 1,391 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,605 IT Pros & Developers. It's quick & easy.

I need help

P: 4
hello everyone, am new to programming though i got a book tht am reading 4 d c++ but anytime i write my program and about compiling it, it will be tell me tht invalid token,expected unqualified-id b/4 numeric constant srry wt is d meaning of tht.i will appreciate if anybody can assist me on this using Dev-c++ compiler.
Nov 9 '06 #1
Share this Question
Share on Google+
7 Replies

P: 8
how about posting d code dat gives u d error. Then I will probably be able to help you a little more. don't forget code tags.
Nov 9 '06 #2

P: 4
Thanks. I really appreciate your is it.i will be expecting your reply soon.

1: #include <iostream.h>
3: int main()
4: {
5: cout << "Hello World!\n";
6: return 0;
7: }
Nov 10 '06 #3

P: 40
Expand|Select|Wrap|Line Numbers
  1.  #include <iostream.h>
  2.  int main()
  3.  {
  4.     cout << "Hello World!\n";
  5.         return 0;
  6.  }
Don't know if this will help, but try taking the ".h" off of the iostream predirective. Instead maybe:

#include <iostream>
Nov 10 '06 #4

Expert 2.5K+
P: 3,652
Also, include this line directly after your #include statement:

Expand|Select|Wrap|Line Numbers
  1. using namespace std;
Or, instead of cout, use

Expand|Select|Wrap|Line Numbers
  1. std::cout << "Hello World!\n";
Nov 10 '06 #5

P: 4
Great,but what name and file extension should i use in saving it in the library.
Nov 10 '06 #6

P: 40
.cpp, I think....
Nov 10 '06 #7

P: 357
its for example hello_world.cpp
but i don't understand why you wanna save it to the "library" !
Nov 11 '06 #8

Post your reply

Sign in to post your reply or Sign up for a free account.