|
-
November 5th, 2010, 10:52 AM
#6
Re: static functions
 Originally Posted by D_Drmmr
But then still, you are using a global variable, which is often a sign of bad design.
Global const variable. AFAIK, there is nothing wrong with those. For example: std::string::npos, std::ios::in, etc...
Is your question related to IO?
Read this C++ FAQ article at parashift by Marshall Cline. In particular points 1-6.
It will explain how to correctly deal with IO, how to validate input, and why you shouldn't count on "while(!in.eof())". And it always makes for excellent reading.
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
|