C/ C++,a009: 解碼器@0判
FB2:http://gg.gg/TedLeeMicrobitFB/
URL2:http://gg.gg/TedLeeMicrobit/
Line:ted2016.kpvs
Email:Lct4246@gmail.com
FB1:http://gg.gg/TedLeeFB/
Blog:http://gg.gg/TedLeeBlog/
URL1:http://gg.gg/TedLeeURL/
Jun. 28, 2020
問題解決(Problem Solving)之逻輯思維 =
心法: 程式設計哲思(Philosophical Thinking for Programming) +
技法:程式設計工法(Skills for Programming)
解析:
- 直接run結果建立直觀:。
- Idea:
#include <iostream>
#include <string.h>
using namespace std;
int main(void) {
string str;
int k=-7;
//Read data in
getline(cin, str);
//Process data
//Shift
for (int i=0; i<str.size(); i++) {
str[i]=str[i]+k;
}
//Output data
for (int i=0; i<str.size(); i++) {
cout<<str[i];
}
}
FB2:http://gg.gg/TedLeeMicrobitFB/
URL2:http://gg.gg/TedLeeMicrobit/
Line:ted2016.kpvs
Email:Lct4246@gmail.com
FB1:http://gg.gg/TedLeeFB/
Blog:http://gg.gg/TedLeeBlog/
URL1:http://gg.gg/TedLeeURL/
URL1:http://gg.gg/TedLeeURL/
Jun. 28, 2020
問題解決(Problem Solving)之逻輯思維 =
心法: 程式設計哲思(Philosophical Thinking for Programming) +
技法:程式設計工法(Skills for Programming)
解析:
- 直接run結果建立直觀:。
- Idea:
#include <iostream>
#include <string.h>
using namespace std;
int main(void) {
string str;
int k=-7;
//Read data in getline(cin, str); //Process data //Shift for (int i=0; i<str.size(); i++) { str[i]=str[i]+k; } //Output data for (int i=0; i<str.size(); i++) { cout<<str[i];
}
}
沒有留言:
張貼留言