cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
question
question
Aug 16, 2011 at 5:44pm UTC
paupau
(12)
why can i use using namespace std; when i can run .....! have an error....? for using namespace std; ..?
Aug 16, 2011 at 5:50pm UTC
hamsterman
(4538)
Try writing sentences that make sense. If something doesn't compile, post the code and the error message.
Aug 16, 2011 at 5:52pm UTC
paupau
(12)
what is the function of using namespace std; ...?
Aug 16, 2011 at 5:57pm UTC
graham sullivan
(20)
the standard namespace allows you to use the cout and cin streams and the string class as well as others. You could do
std::cout << var;
without using namespace std.
Aug 16, 2011 at 6:21pm UTC
TheMassiveChipmunk
(259)
Do you have
1
2
3
4
5
#included <iostream>
or
#included <fstream>
or
#included <sstream>
In your code?
Topic archived. No new replies allowed.