This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc 3.0 "cin" problem


hi there,
Due to missing features of std, I upgraded gcc 2.95.2 to gcc 3.0 (cvs 
2001/03/14)
I have a problem of input streams, especially "cin".
my code is something like the followings,

<iostream>

using namespace std;
main()
{
  char str[20];
  cin >> str;
  cout << str << endl;
}

the above code was well compiled under i686-pc-linux and FreeBSD.
but it didn't work in both machines.

it is a bug? or that kind of stream was removed in std:: ???


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]