注意:注册已关闭
第一周 Note: https://http://slack-files.com/T1D1ECHD2-F1E7NDPQQ-6394f022c0
有编辑/校正/修改意愿的请联系我
原文
事实证明,一个写PHP和PYTHON的程序员是没有前途的。程序员的思想水平随着C++技术的提高而提高;特别是提高之后,可以在知乎上成为提问最多的成功人士,虽然肚子很大也没有关系。
根据我现在的初学者的水平,我倡议我们建一个C++学习群。花几个月时间把C++的入门到进阶搞定。主要利用傍晚和周末的时间。首任群主就是党党了。
这个群怎么建,在哪?我们有个微信群叫做"成功人士都退群了"。我们就从那里面开始选择对C++有兴趣的人组成一个大约20个人的小群进行学习。
要想加入这个群呢,首先你应该有本事找到这个群。。。
和大家认识的知乎骗子相反,我们是不会放微信群QR的。但我们不歧视失败人士,因为我们都是失败人士。
晚安
友情提示:立党知道"成功人士都退群了"之群号。清华的一些成功老师们也知道。我们也会争取让白冰冰来教我们C++。不日我会出一道题,解决的人自然知道如何加入群。
题目一,又名编译完后一起学。因为我们学习的速度比较快,因此需要充分的兴趣和一定的基础。特出此题。请勿交头接耳哦-
intro.h
#include <algorithm>
#include <string>
class getURL {
private:
std::string importantMessage = "not important";
getURL() {
importantMessage = "hahaha";
}
~getURL() {
cout << "\t Do it Using Python~";
}
void bye();
}
class enum Secret {LunziGe, ZhaoJieFu, WenLaoBan, YunShuDaDa};
class enum BestUniversity {TsingHua, University};
class getPassword {
public:
std::map<std::string, std::string> keyMap;
std::vector<std::string> pass;
private:
int base;
getPassword() {
auto url = new getURL();
string hiddenDiary = showDiary();
for (auto each : hiddenDiary) {
pass.emplace_back(each);
}
keyMap[url->showURL()] = "NBSVK";
keyMap[url->showURL(base)] = "GFXTQNCF";
base = (pass.size() - Secret::"Who Earns The most") * (Secret::"Who's belly is soft and big" + 2);
auto& it = keyMap.begin();
cout << "I am going to show the secret:" << endl;
cout << "===" << endl;
for (;it < keyMap.end(); it++) {
cerr << it->first; // does it look like a secret?
}
cerr << "===" << endl;
cout << "Secret Shown." << endl;
}
void printPassword() {
cout << "You've seen the password";
cout << "I mean, the one under the face of base: " << base;
}
std::string showDiary();
~getPassword() {
url = null_ptr;
delete url; // I think it will fail;
}
}
intro.cpp
#include "intro.h"
using namespace std;
string getURL::showURL(int latter) {
cout << "getting the last piece" << endl;
return "Chenggong";
}
string getURL::showURL(vector<int> latter) {
cout << "getting the most important piece" << endl;
return "encode";
}
void getURL::showURL() {
cout << "fetching URL:" << endl;
cout << "http://pan.baidu.com/s/" << endl;
return "Renshi";
}
string getPassword::showDiary() {
cout << "I don't want to show you!";
cout << "But I want to talk using the string!" << endl;
string sause = string(BestUniversity::0);
return sause + " " + string(BestUniversity::1);
}
void getURL::bye() {
cout << "decode it using base";
}
int main(int argc, char *argv[]) {
cout << "Please make this code run" ;
cout << "By fixing bugs, and ";
cout << "Answering in-line questions if any";
cout << "Then follow the instructions on screen";
cout << "You will get what you need after the program";
cout << "exits" << endl;
auto one = getPassword();
one.printPassword();
}
专栏:知乎书馆
立党和他的朋友们说书唱戏的地方