|
-
Feb 15th, 2002, 01:39 AM
#1
Thread Starter
Member
Hello Wynd
You are right I needn't have include std::cout or std::endl in my code! Still getting my head around namespace and why it used.
cheers 
hmm
quote:
--------------------------------------------------------------------------------
Originally posted by hmm
#include <iostream>
using namespace std;
int main() {
for (int i =0; i <10 ; i++ )
std::cout << i << std::endl;
return 0;
}
--------------------------------------------------------------------------------
Isn't the std:: unneccesary since you are using namespace std?
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
|