随笔分类 -  c++

摘要:main.cpp #include<iostream> using namespace std; int main() { cout << "Hello world!" << endl; return 0; } 编译单个的文件 g++ main.cpp -o you_want_name 参考 htt 阅读全文
posted @ 2021-05-28 10:37 威威后花园 阅读(79) 评论(0) 推荐(0)
摘要:class Solution(): def __init__(self, x): self.params = x def func(self): print(self.params) c++ class Solution{ public: Solution(int i){ cout << i << 阅读全文
posted @ 2020-09-10 09:54 威威后花园 阅读(260) 评论(0) 推荐(0)
摘要:class Solution { public: void FindNumsAppearOnce(vector<int> data,int* num1,int *num2) { vector<int> res; map<int, int> m; for(auto x:data) m[x]++; fo 阅读全文
posted @ 2020-09-01 08:40 威威后花园 阅读(93) 评论(0) 推荐(0)