| | |
using namespace std;
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
When
are you able to overwrite it for a specific line e.g ios::app while using the fstream header? or does that mean i have to use std:: on everything else?
thanks
C++ Syntax (Toggle Plain Text)
using namespace std;
are you able to overwrite it for a specific line e.g ios::app while using the fstream header? or does that mean i have to use std:: on everything else?
thanks
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Without the
Without it, you might have to open a file like
The using statement makes everything in the libraries directly available to you , saving a lot of writing.
using namespace std; you will have to preface most everything from the libraries with std:: (and who wants lots of std's in this day and age?
Without it, you might have to open a file like
C++ Syntax (Toggle Plain Text)
std::fstream fin ("text.txt", std::ios::in );
The using statement makes everything in the libraries directly available to you , saving a lot of writing.
Everyone's gotta believe in something. I believe I'll have another drink.
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
Yes
Everyone's gotta believe in something. I believe I'll have another drink.
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
![]() |
Similar Threads
- What its the use of using namespace std; (C++)
- using namespace std problem (C++)
- no matching function for call to 'strcmp(std::string&, std::string&)' (C++)
- help with namespace error (C++)
Other Threads in the C++ Forum
- Previous Thread: How to develop CSP in Vista platform
- Next Thread: convert input to binary
| Thread Tools | Search this Thread |
api application array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






