No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[code=cplusplus] #include <iostream> #include <vector> using namespace std; class ctcChanID { public: void GetInfo(ctcChanID *m); int chanID; int type; string DN; int clientID; }; void ctcChanID::GetInfo(ctcChanID *m) { } int main() { vector<ctcChanID*> _ctc; for(int i = 0; i < 2 ; i++) { ctcChanID *a = new ctcChanID; cout … |
|
[code=c++] #include <stdio.h> #include <iostream> #include <string> #include <vector> using namespace std; vector<string> g_split_string(const std::string& str, const char c) { vector<string> v; cout << str << endl; string::const_iterator s = str.begin(); bool flag = true; // continuous c while (true) { string::const_iterator begin = s; while (*s != c && … |