freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

課程設(shè)計--實現(xiàn)字符串的多種操作-文庫吧

2025-05-15 16:27 本頁面


【正文】 includeiostream includefstream using namespace std。 對字符串求子串 字符串比較 字符串復(fù)制 字符串交換 字符串類的設(shè)計 輸入字符串 …… 對字符串連接 輸出運算后的結(jié)果 char s[12]。char s1[20]。 const int MAX=5。 class String { public: char *str。 int length。 static void menun() { cout ▲▼◥▲▼ ◥▲▼◥▲▼◥▲▼◥▲▼ ▲▼◥▲▼◥▲▼◥▲▼◥▲▼ endl。 cout\t▲▼◥▲ 歡迎進入字符串設(shè)計 ▲▼◥▲ \tendl。 cout ▲▼◥▲▼ ◥▲▼◥▲▼◥▲▼◥▲▼ ▲▼◥▲▼◥▲▼◥▲▼◥ ▲▼ endl。 cout *^_^* 功能選擇菜單 endl。 cout ★★★ 1 enter ,執(zhí)行字符串復(fù)制 !!! ★★★ endl。 cout ★★★ 2 enter ,執(zhí)行字符串鏈接 !!! ★★★ endl。 cout ★★★ 3 enter ,執(zhí)行字符創(chuàng)比較 !!! ★★★ endl。 cout ★★★ 4 enter ,執(zhí)行字符串求字串 !!! ★★★ endl。 cout ★★★ 5 enter ,執(zhí)行字符串交換 !!! ★★★ endl。 cout ★★★ 0 enter ,退出 ...endl。 } String(char *s,int l) { str=new char[strlen(s)+1]。 strcpy(str,s)。 length=l。 coutConstruct String!\n。 } ~String() { delete[] str。 } void Strcpy(char *s) { char *x。 x=new char[strlen(s)+1]。 strcpy(x,s)。 delete[]str。 str=x。 length=strlen(x)。 cou
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1