![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
泽野
ZZ
展开
-
C++ Exercise_1
Test_1#include <iostream>using namespace std;int main() //更新为了避免重名{std::cout << "hello,world" << std::endl;}Test_2using namespace std; int a, b; std::cout << "E...原创 2019-10-03 01:42:15 · 116 阅读 · 0 评论 -
C++ Exercise_2
Test_1#include <iostream>#include <string>int main(){ using namespace std; char animal[20] = "rabbit"; char* ps = new char[strlen(animal) - 1]; strcpy(ps, animal); //为什么有警告?...原创 2019-10-03 03:14:42 · 628 阅读 · 0 评论 -
C++ Exercise_3
Test_1#include <iostream>#include <cstring>int main(){ using namespace std; //for (cin>>x; x==0; cin>>x) //----------------------------------// //for (char ch = 'a'...原创 2019-10-03 12:45:27 · 148 阅读 · 0 评论 -
C++ Exercise_4
Test_1#include <iostream>//maybe we can use use 枚举enum{white,black,yeelow};int main(){ using namespace std; int code; cout << "Enter plaese: "; cin >> code; if (code ==...原创 2019-10-03 14:43:22 · 100 阅读 · 0 评论