
I've been teaching myself C++ lately and have been compiling at home on a RH6.1 box which has libstdc++ 2.9.0 The tutorials I have been using say to include <iostream.h> and cin/cout for standard input/output. I'm back at work after leave and am continuing my learnings now compiling on FC3 with libstdc++ 3.4.2 which gives me warnings about using depreciated headers with iostream.h. So I do what it says and remove the .h. This kicks back errors telling me that 'cin/cout is undeclared in function xyz A bit of a google and I find a page which says to add 'std::' to the cin/cout. I do this and things compiles fine. However I can't seem to find any info as to whether I need to add this all the time using the later libraries, or whether there is something extra I need to add/include in the source files So to cut a long story short my question is: do I continue using std::cin/cout? Or is there something else I need to include? Cheers Jodi -- ------------------------------------------------------------------------------------------------- Jodi W. Anderson, Mr (BA, A+, MCP) - Computer Systems Consultant Waikato University Library - Computing Operations Group Ph: +64 7 838 4323 email: jodi(a)waikato.ac.nz "Right now I'm having amnesia and deja vu at the same time. I think I've forgotten this before." -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.2.4 (GNU/Linux) mQGiBEE7vXkRBADqdMs07cJuvCn02bG8FSR2iOW2V8M7KB0v5vnmkVI/DPsbbCxf dE23r/6ag1kYS8R8WvnYNUkjOoTKXslmLPFnq6+7Rp3K7g6X4dKyXknGThfai9KW kfdurINrR8FVKvIieidXNrAzl2ADquQ0WPtJCI1KbRb2kL3/tW6AumRS5wCg5fmM kW6Ml3RRfKGqSBRCOfVl7P0D/iCrQjXTskuT0mU/7ZJCQlP09PO5SDoe1vUX2tiB WlbmDnm4t46V1QATybUKM/V8J5rVOsigO/Nv/+9W8VC0KhBs8BR1lVT3jFy91pXr k9MhhjDjb6nhpeM771jdpOFYt+g+Lq/Q5MXKoAIxrEoycKM3JoI/yPwixoJWZlgx CdsvBADRnk/JAPNsWrjfCxLXcpE9b6x/pINncoCK+NKf16ONfw5ArkdFhJdWeJss nOvfEcBzY2RdJOJ5mQA8XnXoeGWrreT5TTUMsvoCF5/UJ1Zuuu0L8hOw0DKg9W0m QwbA7qkDZC9lMqCLmp6YreJydJAr2cp7U0p/d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