19_3.cpp
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:0k
源码类别:
C#编程
开发平台:
Visual C++
- //19_3
- #include <iostream.h>
- #include <strstrea.h>
- void main()
- {
- int n;
- char string[]="1 2 3 4 5 6 7 8 9";
- istrstream s(string);
- while(!s.eof()){
- s >>n;
- cout <<n<<" ";
- }
- cout <<endl;
- }