- 博客(9)
- 资源 (3)
- 收藏
- 关注
原创 ZOJ 2932
#include#include#includeusing namespace std;int main(int argc, char argv[]){ //ifstream cin("F:\\test.txt"); //temp用来接受字符数组中的字符串,在下面的查找中进行比较 string temp; char String[100]; while (
2015-09-30 23:17:48 348
原创 ZOJ 2947
#include#include#includeusing namespace std;int main(int argc, char argv[]){ //ifstream cin("F:\\test.txt"); int num, numString; string s, sa, sb; cin >> num; for (int i = 0; i
2015-09-30 22:49:01 276
原创 ZOJ 2886
#include#include#includeusing namespace std;void print(int count, string temp){ printf("%d%c",count,temp[0]); }int main(int argc, char argv[]){ //ifstream cin("F:\\test.txt")
2015-09-29 21:36:24 316
原创 ZOJ 2478
#include#include#includeusing namespace std;void print(int count, string temp){ if (count == 1) cout << temp[0]; else cout << count << temp[0];}int main(int argc, char argv
2015-09-29 21:27:07 316
原创 zoj1383题
#include#include#includeusing namespace std;int main(int argc, char argv[]){ //ifstream cin("F:\\test.txt"); int num,temp; vectorvStr; cin >> num; for (int i = 0; i < num; i++)
2015-09-28 20:43:35 445
原创 ZOJ第1240题 灰常简单的题目
#include#include#includeusing namespace std;int main(int argc, char argv[]){ //ifstream cin("F:\\test.txt"); int num; string temp; cin >> num; for (int i = 0; i < num; i++) {
2015-09-28 20:01:51 401
原创 含有头结点的单链表,实现部分功能,希望大家能够给予指点
//LinkNode节点类#ifndef LINKNODE_H#define LINKNODE_Htemplatestruct LinkNode{ T data; LinkNode *next; LinkNode(LinkNode *str = NULL){ next = str; } LinkNode(T tempData, LinkNode *str
2015-09-24 23:40:15 433
原创 ZOJ1414题的解法
#include#includeusing namespace std;int main(int argc, char* argv[]){ //ifstream cin("F:\\test.txt"); int count; cin >> count; for (int i = 0; i < count; i++) { int x, y, num
2015-09-21 20:47:52 377
原创 顺序表的c++实现,该模板类实现了插入,删除,清空,[]的重载等方法
https://code.csdn.net/snippets/1112176.js">>//模板类头文件#ifndef SELFLIST_H#define SELFLIST_Htemplate class SelfList{private: T* arrayList; int maxLength; int currentLength; int po
2015-09-20 22:32:51 1006
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人