是C++的,不过在C++版没人理会,看得我糊涂了,求助啊!
#include<iostream.h> #include<strstream.h> //串流 #include<string.h> using namespace std;
void main() { char name[15]; int total; char* scores[4]={"Dave 2","Ida 5","Jim 4","Ira 8"}; istrstream ist(score[3]); ist>>name>>total; //这里怎么输出串 cout<<name<<endl; //捉摸不透的输出 }
[此贴子已经被作者于2004-09-18 19:56:10编辑过]