C++? ??? ?? ??
Aug 22, 2023 pm 04:34 PMC++?? ???? ?? ???? ??? ?????. ??? ??? ??? ??????? ?? ??? ??????? ???. ? ????? ????? ??? ??? ???? C++?? ????? ???? ??? ?? ?? ? ??? ?????.
1. C++? ??? ???
C++?? ???? ?? ??
1.append() ??: ??? ???? ?? ???? ?? ???? ? ?????.
?:
string str1 = "Hello";
string str2 = "World";
str1.append(str2);
cout
2. length() ??: ???? ??? ??? ? ?????.
?:
string str = "Hello World";
int len ????= str.length(); //len ??? ??? ?? 11
3 ?????. ???? ??? ?????.
?:
string str = "Hello World";
string s = str.substr(6, 5) //???? 6?? ???? ???? ??? 5? ?? ???? ?????.
cout < ;
4. Erase() ??: ???? ??? ???? ? ?????.
?:
string str = "Hello World";
str.erase(5, 6); //???? 5?? ???? ???? ??? 6
cout? ?? ???? ?????.
2. ??? ??
1. ??? ???? ???:
???? ? ??? ??????.
?:
string str = "Hello World";
for (int i = 0; i
cout << str[i] << " ";
}
?? ??? ??? ????.
H e l l o W or l d
2. ??? ??:
C++?? ???(iterator)? ???? ???? ?? ??? ? ????.
?:
string str = "Hello World";
for (string::iterator it = str.begin(); it != str.end(); ++it) {
cout << *it << " ";
}
?? ??? ??? ????.
H e l l o W or l d
3. ??? ?? ? ??
1. ??? ??:
stringstream ???? ??? ???? ?? ?? ??? ?? ???? ??? ? ????. .
?:
string str = "Hello World, ??? ?? ????!";
stringstream ss(str);
string s;
while (getline(ss, s, ',')) {
cout << s << endl;
}
?? ??? ??? ????.
Hello World
?? ?????!
2. ??? ??:
stringstream ???? ??? ???? ?? ???? ??? ? ????.
?:
stringstream ss;
string s1 = "Hello";
string s2 = "World!";
ss
string s = ss. str ();
cout
?? ??? ??? ????.
Hello World!
?? ????? ???? ??:
Convert ???? ?????.
?:
char a[] = "1234";
int b = atoi(a);
cout
2, atof( ) ??:
???? ?? ??? ??? ?????.
?:
char a[] = "12.34";
float b = atof(a);
cout
3, strcmp( ) ??:
? ???? ??? ?????.
?:
char str1[] = "Hello";
char str2[] ????= "World";
int res = strcmp(str1, str2);
cout
4.strstr() ??:
???? ?? ???? ???? ??? ?????.
?:
char haystack[] = "Hello World";
char needle[] = "Wo";
char *res = strstr(haystack, needle);
cout
??: ?? ?? ?? ???? ? ?? ??? ?? ??????.
? ??? C++?? ????? ???? ??? ?? ?????. ???? ??? ??? ????. ?? ???? ???? ? ??? ? ?? ?? ??? ??? ?? ???? ???? ??? ??? ?????.
? ??? C++? ??? ?? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

Win11 ? ??: Microsoft ?? ???? ???? ? ?? ?? Windows 11? Microsoft? ??? ?? ?? ???, ??? ??? ???? ?? ???? ??? ??? ????. ??? ?? ???? ?? ???? ??? ??? Microsoft ??? ????? ?? ?? ?? ??? ? ????. ??? ?? ? ????, Microsoft ?? ???? ???? ???? ?????? ?? ??? ? ?? ?? ?? ??? ? ?? ????. ?? ?????? Microsoft ?? ?? ???? ?? ??? ???? ???. ??? ?? ???

PHP?? ???? ?? ??? ??? ???? ?? ?? ???? ? ???? ?? ?????. ?? ??, ???????? ?? ?? ??? ??? ????? ?? ??? ?? ?? ??? ??? ???? ???. ? ????? PHP?? ???? ?? ??? ??? ???? ?? ??? ???? ???? ?? ??? ?????. ??, PHP?? ???? ?? ??? ??? ???? ? ?? ?? ??? ??? ?? ??? ?? ???. (float) ?? ??? ????? (floatval) ??? ???? ????. ???? ? ? ??? ???????.

C ????? ?? ??? ??? ???? ???? ????, &? ??? ??? ??? ???? ?? ???? ?????. ??? ??? ?? ??? ??? ??, ??? ??? ? ???? ??? ??? ????? ???? ?? ?????. ?? ??? ??? ?? ??? ?? ?? ???? ? ?? ??? ??? ??? ? ??? ? ?? ?? ?? ??? ?????. . ???? ????? ?? ??? ? ?? ???? ???? ??? ???? ?? ????.

Go ???? ??? ?????? ????(\`)? ?? ??? ???? ?? ??(\n)? ?? ?? ??? ?????. ????? ??? ??(\`)? ???? ?????? ??? ???? ?? ?? ??? ???? \n? ?? ?? ??? ?????. ?? ????? ?? ??? ?????, ?? ????? ? ?? ?????? ???? ??? ?????.

??? ??? ?? ???? ???? ?? ??? ?? ? ?????? ?? ????? ??? ??? ?? ??? ??? ???? ?? ????. ????? ???, ? ???? ????? ? ??? ??? ? ?? ??? ?? ? ?? ??? ?????. ???? ?? ?? ??? ??? ????. ?? ??? ???????! 1. ??? ?? ??? ??? ??? ? ??? ????. [????] - [?? ???] - [xls] ??? ? ?? ??? ??? ???? ????? ???. [??]-[?? ????]-[Microsoft Office]-[Microsoft Excel 20**]? ??? ?? ????. 2. ? ex? ? ? ?????.

??: PHP ????? ?: 3? ?? ? ???? ???? ?? ? ??? ?? ?? ?? ?? ?? ???? ?? ???? ???? ?? ??? ?? ?????. ? ????? PHP? ???? 3? ?? ???? ???? ????? ??? ???? ??? ???? ???? ?? ??? ?????. ??, ??? ??? ?? ??? HTTP ?? ??? Location ??? ?? ?????. ? ??? ???? ????? ??? ???? ???? ??? ? ????. ??? P? ???? ??? ???? ??? ????.

PHP? ? ??? ?? ???? ??? ????? ?????. ? ?? ???? ???? ???? ?? ??? ?? ???? ????? ??? ???? ?? ???? ?? ?????. ? ????? PHP?? ????? ?? ??? ???? ??? ??? ???? ???? ?? ??? ?????. 1. str_replace ??? ??????. str_replace ??? PHP?? ????? ???? ??? ?? ???, ??? ??? ?? ??? ?? ? ????. ? ??? ???? ??? ??? ? ????.

VSCode(Visual Studio Code)? Microsoft?? ??? ?? ?? ?? ????, ??? ??? ??? ???? ??? ??? ?? ???? ???? ?? ? ?????. ? ????? ???? VSCode ?? ??? ??? ??? ? ??? ?? ?? ???? ?????. ?? ???? VSCode ?? ??, ???? ?? ??, ???, ???? ?? ?? ????, ????? ???? ?? ??? ???????. 1. ?? VSCode? ?????.
