L
LewGun
Usually, when we program with C++, we like to include the
header"iostream", but it's too big, so i want to use the header
"ostream" (only use it to output), as follows ,there is a
piece of code what i think can do this.. but the compiler can't give
me a good news. what can i do.
//------------------------------------------------------------------
// source code
//------------------------------------------------------------------
#include <ostream>
int main(int argc, char **argv)
{
ostream os;
int forTest1 = 1;
char forTest2 = '1';
os << forTest << " " << forTest2 << "\n";
return 0;
}
// ps: compiler : VS2003.net
header"iostream", but it's too big, so i want to use the header
"ostream" (only use it to output), as follows ,there is a
piece of code what i think can do this.. but the compiler can't give
me a good news. what can i do.
//------------------------------------------------------------------
// source code
//------------------------------------------------------------------
#include <ostream>
int main(int argc, char **argv)
{
ostream os;
int forTest1 = 1;
char forTest2 = '1';
os << forTest << " " << forTest2 << "\n";
return 0;
}
// ps: compiler : VS2003.net