- 博客(4)
- 收藏
- 关注
原创 fstream 文件输出乱码 与 seekg()
问题:从两个文件读取内容,组合输出到第三个文件。第一次编的代码如下:#include #include #include int main(int argc, char * argv[]){ using namespace std; // connect txt1 ifstream fin1(argv[1]); if (!fin1.is_open()) { cerr << "
2016-12-04 21:08:36
1180
原创 习题 3.1
Question:3.1 you are given a list, L, and another list P,containing integers sorted in ascending order, The operation Print(L,P) will print the elements in L that are in positions specifiedby P. F
2016-12-01 22:42:32
634
原创 Debug Assertion Failed ! List iterator not dereferencable
代码如下#include #include #include #include #include typedef std::list lisInt;void Print(lisInt L, lisInt P);const int LIMIT{ 100 };int main(){ /*Creat a random list*/ lisInt List1; srand(ti
2016-12-01 22:17:17
974
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人