摘要:
关于scanf的返回值,MSDN里是这样写的:Both scanf and wscanf return the number of fields successfully convertedand assigned; the return value does not include fields that were read butnot assigned. A return value of 0 indicates that no fields were assigned.The return value is EOF for an error or if the end-of-file 阅读全文
posted @ 2011-03-30 23:51
瓜蛋
阅读(374)
评论(0)
推荐(0)
摘要:
//input.h#include <vector>#include <algorithm>#include <iostream>using namespace std;class Input{public: void Add();//添加数据 float Getsort();private: vector<int> n;};void Input::Add(){ int temp=0; cout<<"请输入数字"<<endl; while(cin>>temp) { n.push_back(t 阅读全文
posted @ 2011-03-30 20:48
瓜蛋
阅读(299)
评论(0)
推荐(0)

浙公网安备 33010602011771号