摘要:
#include #include #include #include #include using namespace std;class Man {public: char id[10]; int talent; int virtue;};bool mycmp(const Ma... 阅读全文
摘要:
#include #include using namespace std;#define COL 10#define ROW 10int tbl[ROW][COL];void print(int* tbl) { for (int i=0; i<ROW; i++) { for (... 阅读全文
摘要:
#include #include using namespace std;int str2num(const char* str) { int v = 0; int i = 0; while (str[i] != '\0') { v = v * 10 + str[i... 阅读全文
摘要:
#include #include using namespace std;int main() { bool tbl[256] = {0}; char line[10009]; int len = 0; char ch; while (true) { s... 阅读全文
摘要:
#include #include #include #include using namespace std;void print(vector &v) { int len = v.size(); for (int i=0; i C(NC); for (int i=0; i P(... 阅读全文
摘要:
#include #include class Node {public: Node* L; Node* R; int height; int data; Node(int val, Node* l = NULL, Node* r = NULL, int h = 0):... 阅读全文
摘要:
#include #include #include #include using namespace std;vector* > paths;class Node {public: vector child; int weight; Node(int w = 0) : weigh... 阅读全文