- 博客(3)
- 收藏
- 关注
原创 C++写PTA BaseLevel题目——题1029
首先,给出我的全通过的解答#include <iostream>#include <cstring>using namespace std;int main(){ char str_1[81]; char str_2[81]; char ret[80] = "\0"; int num = 0; //累计缺失的字符数 int _num = 0; //坏键个数 cin >> str_1 >> str_2;
2021-09-27 14:32:42 119
原创 2021-04-21
一两句英文测试通过了。三四段的文章解密失败,只得出原文第一行的一部分。自己调试了一下发现问题出在解密的eof判断那里,没有到达文件尾部就提前退出了,所以有无人帮看一下,为什么eof提前终止了循环。#include<iostream>#include<fstream>#include<vector>#include<string>using namespace std;int main(){ cout << "选择操作\n加密 1\
2021-04-21 21:50:22 113
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人