搜索资源列表
MyString
- C 语言写的字符串处理方法 依据数据结构的方法编写的关于串处理的各个函数-Written in C language string handling methods based on the data structure prepared by the various string handling functions
Laba_2
- Default constructor MyString::MyString() { m_szString = NULL m_aSize = 0 cout << "Default constructor from my sting\n" }
code
- Demo程序经Keil701编译后,代码量为7-8K,可直接在KeilC51上仿真运行。 使用方法:解压后双击yy项目,点调试即可在串口仿真看到结果。 Demo程序创建了3个任务A、B、C优先级分别为2、3、4,A每秒显示一次,B每3秒显示一次,C每6秒显示一次。从显示结果看,显示3个A后显示1个B,显示6个A和2个B后显示1个C,结果显然正确。用户可以仿照范例运用更多系统API函数写出自己的程序。只要程序中有显示语句就可以用软件仿真器看结果。注意:系统提供的显示函数是并
mystring
- 自己写的string的类,模仿库中的string,支持初始化,复值,字符串相加-Write their own string class, imitation library string, to support initialization, complex value, string concatenation
Pro1
- 使用符号重载,将输入文件的每五个字符串合成一个大字符串,奇数位变~,偶数位变! -open the files: infile.txt for reading, outfile1.txt and outfile2.txt for output create an empty combinationString variable do the following loop until you have read all the data from infile.txt read
chap04
- 关于MyString类的构造函数,析构函数,拷贝构造函数。-About MyString class constructor, destructor, copy constructor.
mystring
- 自编string库,包含各类构造函数和析构函数,以及很多字符串操作函数-it s a string.h
MyString
- 字符串类, 设置字符串, 拷贝字符串, 连接字符串,删除字符串, 获取长度, 适合c/c++新手参考-String class, set the string, copy the string, connection string, delete string, get the length, for c/c++ novice Reference
MyString
- 使用C++封装的CString类,支持格式化,各种运算符重载等功能。-Package using C++ CString class, support formatting, functions of operator overloading.
myString
- 编写一个String类,并提供基本的字符串操作(如:字符串相加,获取字符串长度,字符串比较,字符串转换整形/浮点,获取C语言格式的字符串等操作),并编写程序使用该String类。 -Write a String class, and provide basic string operations (such as: adding a string to get the string length, string comparison, string integer/floating poin
example
- Write an EXE program that accepts a string from the keyboard, converts it to HEX (this algorithm should also check to see if the input is a number), and stores it. It should take a second string and convert it to HEX, then add the two numbers,
2-mystring
- 编写一个函数模板,它返回两个值中的最小者,但同时要确保这个函数模板能正确处理字符串。并编写主函数,实现两个字符串中最小者的输出。 适合初学者对c++函数模板的入门-Write a function template, which returns the minimum of the two values, but at the same time to ensure that the function template to correctly handle the string. And
Mystring
- 这是我自己编写的一个string类,给初学者一个参考。-A string class build by myself.
mystring
- 实现一些对于字符串的运算符重载,如“+”,“<<”等等。-shixian string de yunsuanfu chongzai.
asd
- 1. 编写程序完成如下功能: ⑴ 编写一个自己的字符串类MyString,它有一个私有的数据成员:指向字符串的指针m_data。编写该类的构造函数、拷贝构造函数和析构函数,在构造函数和拷贝构造函数中动态申请内存空间赋值给m_data。用于存储字符串。在析构函数中释放内存空间。 ⑵ 重载运算符“+”作为类MyString的成员函数,使能完成字符串相加功能。 ⑶ 编写main函数,测试该类及被重载的运算符。-A written procedure performs the fol
str
- Mystring类的功能集合以及实现。包括各函数。c++语言。-Mystring class feature set and achieve. Including various functions.using c++ language.
2rd-CPP
- C++课程的第二次上机实验,Analysis program,Date and Time,InternetURL with MyString,MyArray,MyString。-Second C++ courses on computer experiment Analysis program, Date and Time the, the InternetURL with MyString, MyArray MyString.
mystring
- 这是一个全新的基本字符串类型,采用C++编写。功能丰富多样,-This is a new class
myString
- 数据结构课程的实验程序:字符串的查找删除替换-Data structures course experimental procedure: delete replace the search string
CPP3
- 模拟STL库中string类的功能,编写MyString类,至少实现字符串间的赋值、比较(包括>、<、=、!=)和字符串间的”+”(连接)操作,同时能通过下面列举的形式对字符串对象进行初始化。 如:MyString str1(“I am ”),str2=“a student” if(str1>str2) cout<<“larger\n” if(str1<str2) cout<<“smaller\n” if(str1==s