#include<string>
#include<fstream>
#include<iostream>
#include<iomanip>
using namespace std;
using std::cout;
using std::endl;
void main(){
/*cout<<0x32 <<endl;*/
const int max = 100;
cin;
char * pCtr="!@#$%^&*string*()_+";
char * pCtr2 = "{}|:\"\<>?";
string pStr = pCtr;
cout<<"Test:"<< pCtr <<" *(str+ 1):" << *(pCtr+ 1)<<" *str:"<< *pCtr <<" (*str)+1:"<<(*pCtr)+1<< endl;
long prime[max] = { 2 ,3 ,5 };
while( *pCtr != '+'){
//位移
cout<< *pCtr++ <<endl;
}
cout<<"Test Loop:"<< pCtr <<" *(str+ 1):" << *(pCtr+ 1)<<" *str:"<< *pCtr <<" (*str)+1:"<<(*pCtr)+1<< endl;
cout<<"pStr"<<pStr<< endl;
pStr.append(pCtr2,0x01,0x09);
cout<<"pStr"<<pStr<< endl;
}
我的C++ - String
最新推荐文章于 2023-02-01 23:30:00 发布