#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
void A() {
string file("test.txt.zip");
FILE* fout = fopen(file.c_str(), "w");
size_t pos = file.rfind('.');
if (pos != string::npos)//npos=-1的意思{
//string suf = file.substr(pos, file.size() - pos);
string suf = file.substr(pos);
cout << suf << endl;
}
};
void B() {
A();
}
int main() {
B();
return 0;
}
09-08
973
06-01