c++//直接用is os如何写
c++//直接用is os怎么写?
------解决方案--------------------
输入流没有和文件关联,还有感觉你这个程序好混乱!看的人好凌乱!输入流直接传给一个整数。。。。
- C/C++ code
#include <cstdio> #include <iostream> using namespace std; void v(int temp) { istream is; is>>temp; } int main() { int temp; v(temp); ostream os; os<<temp; }
------解决方案--------------------
输入流没有和文件关联,还有感觉你这个程序好混乱!看的人好凌乱!输入流直接传给一个整数。。。。