摘要: #include #include using namespace std; int dp[100][100]; int min(int a, int b) { if(a>str1>>str2; int num1 = strlen(str1); int num2 = strlen(str2); if(str1[0]==str2[0]) dp... 阅读全文
posted @ 2016-12-28 21:57 Hardsoftware 阅读(334) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; bool lessthan(char a, char b) { if(b=='*' || b=='/' ) { return true; } if(a=='+' || a=='-' ) { return t... 阅读全文
posted @ 2016-12-28 21:55 Hardsoftware 阅读(338) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; struct record{ string name; int line; int count; }; string getname(string str) { int sz = str.length(); int i; for(i=sz-1; i... 阅读全文
posted @ 2016-12-28 21:52 Hardsoftware 阅读(144) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; int countA=0; int countB=0; int countC=0; int countD=0; int countE=0; int countError=0; int countPrivate=0; void get(char *str) { int num = strle... 阅读全文
posted @ 2016-12-28 21:09 Hardsoftware 阅读(312) 评论(0) 推荐(0) 编辑