Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop Other
Title: ep3 Download
 Description: 1. Define MyString class with demands as follows: 1.1 MyString can save any string 1.2 Overload operator+ to append string to another one 1.3 Define Find function to locate the position of searching a character 1.4 Define Mid function to get substring one string 1.5 The client can use MyString you define like as in the main: void main() { MyString s1( China ), s2 s2 = Love cout << I + s2+ s1 int pos = s1.Find( a ) // pos is 4, or zero if a is not found. int a = 1, b = 3 MyString my = s2.Mid(a, b) // a represents starting position, b represents length. So Mid can get substring. } NOTE: The type, string in C++, is forbidden in your program. 2. Define InternetURL class to save a URL string like as www.bit.edu.cn ,and finish the demands as follows: 2.1 Use MyString you just finished before to save URL string; 2.2 Define member function getDomain
 Downloaders recently: [More information of uploader 刘晶晶]
 To Search:
File list (Check if you may need any files):
 

1120141884-刘晶晶\exper3-1.cpp
.................\exper3-2.cpp
.................\exper3-3.cpp
    

CodeBus www.codebus.net