19_3.cpp
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:0k
源码类别:

C#编程

开发平台:

Visual C++

  1. //19_3
  2. #include <iostream.h>
  3. #include <strstrea.h>
  4. void main()
  5. {
  6.   int n;
  7.   char string[]="1 2 3 4 5 6 7 8 9";
  8.   istrstream s(string);
  9.   while(!s.eof()){
  10.     s >>n;
  11.   cout <<n<<" ";
  12.   }
  13. cout <<endl;
  14. }