课程
m0_61067261
这个作者很懒,什么都没留下…
展开
-
CF41A Translation(洛谷水题记)
题目描述The translation from the Berland language into the Birland language is not an easy task. Those languages are very similar: a berlandish word differs from a birlandish word with the same meaning a little: it is spelled (and pronounced) reversely. For原创 2021-10-04 20:18:59 · 218 阅读 · 0 评论 -
C++第三课(cin)
#include <iostream> // 和 cout 一样,cin 需要用 iostream 的头文件 using namespace std;// 名字空间必须引入 int main(){ int n; // 先定义变量(整形)int 变量 cin >> n; // 读入变量,此时 n 就有你输入的值了 char b; cin >> b; long long c; cin >> c; float d; cin >>.原创 2021-10-02 15:41:46 · 88 阅读 · 2 评论 -
C++第一课(输出字符串的方式)
#include <iostream>#include <cstdio> // 安全起见,引入一下吧 using namespace std;int main(){ cout << "thanks" << endl; // endl表换行 printf("thanks\n"); // '\n'表换行 puts("thanks"); // puts 自动换行 return 0;}我的老师当时就是从这里讲起的~千里之行始于足下~.原创 2021-10-02 15:25:59 · 420 阅读 · 0 评论