-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (24 loc) · 473 Bytes
/
main.cpp
File metadata and controls
30 lines (24 loc) · 473 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
*功能:这个是定长的串的顺序存储
*时间:2015年7月16日17:25:30
*文件:main.cpp
*作者:cutter_point
*/
#include <iostream>
#include "SString.h"
using std::cout;
/*
int main()
{
unsigned char ch[] = {' ', 'a','b','a','b','c','a','b','c','a','c','b','a','b'};
unsigned char ch2[] = {' ', 'a','b','c'};
int lengch = 14;
int lengch2 = 3;
SString *s = new SString(ch, lengch);
SString t;
t.setCh(ch2);
t.setLength(lengch2);
cout<<s->BFindex(t, 1);
return 0;
}
*/