洛谷顺序结构
B2005 字符三角形
12345678910111213#include<iostream>#include<string>using namespace std;int main() { char a; int b = 1; cin >> a; for (int i = 0; i < 3; i++) { //string用来实现多个相同字符串的效果 cout << string((3 - i - 1), ' ') << string((i+b), a) << endl; b++; } return 0;}
P5704 字母转换
123456789#include<iostream>using namespace std;int main() { char a; cin >> a; a = a - 32; //大写字母和小写字母 ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment