hi, i want to extract data from a line.
something like....
char buff[100];
in.getline(buff,100); // in is an inputstream object
if(sscanf(buff,"%d %d",&var1,&var2)==2) // what is the C++
//version of this line ?
cout<<var1<<" "<<var2<<endl;
there are several ways to read data...but i want to know, what is the equivalent code for sscanf() in C++ ? is it possible at all ?