Click here to Skip to main content
16,007,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: help Pin
David Crow27-Feb-07 3:41
David Crow27-Feb-07 3:41 
GeneralRe: help [modified !!!] Pin
toxcct27-Feb-07 3:41
toxcct27-Feb-07 3:41 
GeneralRe: help Pin
reyyy27-Feb-07 3:50
reyyy27-Feb-07 3:50 
GeneralRe: help Pin
toxcct27-Feb-07 3:56
toxcct27-Feb-07 3:56 
QuestionRe: help [modified] Pin
reyyy27-Feb-07 4:20
reyyy27-Feb-07 4:20 
AnswerRe: help Pin
toxcct27-Feb-07 4:29
toxcct27-Feb-07 4:29 
QuestionRe: help Pin
reyyy27-Feb-07 4:38
reyyy27-Feb-07 4:38 
AnswerRe: help Pin
toxcct27-Feb-07 4:48
toxcct27-Feb-07 4:48 
that's exactly why i don't like the infamous using namespace. you do things, but don't know at all what you're doing actually.

cin is never defined in the global namespace (otherwise, you would have been able to write ::cin without any compiler errors - that's not the case).
don't worry about the std::. simply see it as saying "cin is in the standard namespace".
when you say using namespace std;, then every identifier (which namespace is not precised explicitely like i do) will be searched in the namespace imported.

that's good practice to never use (or at least reduce significantly the use of) using namespace. if you really feel the need of it, then prefer if inside a method rather than at the beginning of a whole cpp or .h file. that's how problems come !


GeneralRe: help Pin
Eytukan27-Feb-07 5:46
Eytukan27-Feb-07 5:46 
GeneralRe: help Pin
Rajesh R Subramanian27-Feb-07 6:25
professionalRajesh R Subramanian27-Feb-07 6:25 
QuestionMail Merge concept Pin
Anandan k27-Feb-07 3:20
Anandan k27-Feb-07 3:20 
AnswerRe: Mail Merge concept Pin
prithaa27-Feb-07 5:08
prithaa27-Feb-07 5:08 
AnswerRe: Mail Merge concept Pin
Hamid_RT27-Feb-07 7:40
Hamid_RT27-Feb-07 7:40 
QuestionAuto scroll to specific line in text box Pin
Jim Crafton27-Feb-07 3:16
Jim Crafton27-Feb-07 3:16 
AnswerRe: Auto scroll to specific line in text box Pin
KaЯl27-Feb-07 4:01
KaЯl27-Feb-07 4:01 
GeneralRe: Auto scroll to specific line in text box Pin
Jim Crafton27-Feb-07 4:32
Jim Crafton27-Feb-07 4:32 
GeneralRe: Auto scroll to specific line in text box Pin
KaЯl27-Feb-07 5:45
KaЯl27-Feb-07 5:45 
QuestionProject release problem Pin
david bagaturia27-Feb-07 2:33
david bagaturia27-Feb-07 2:33 
AnswerRe: Project release problem Pin
toxcct27-Feb-07 2:46
toxcct27-Feb-07 2:46 
QuestionWM_RELEASEDCAPTURE(tab) Pin
RaviPK27-Feb-07 1:46
RaviPK27-Feb-07 1:46 
AnswerRe: WM_RELEASEDCAPTURE(tab) Pin
James R. Twine27-Feb-07 2:49
James R. Twine27-Feb-07 2:49 
GeneralRe: WM_RELEASEDCAPTURE(tab) Pin
RaviPK27-Feb-07 17:46
RaviPK27-Feb-07 17:46 
QuestionDatatypes - Urgent Pin
janadhana27-Feb-07 1:42
janadhana27-Feb-07 1:42 
JokeRe: Datatypes - Urgent Pin
James R. Twine27-Feb-07 2:45
James R. Twine27-Feb-07 2:45 
QuestionThread Question Pin
Programm3r27-Feb-07 1:01
Programm3r27-Feb-07 1:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.