摘要:
#include <string>#include <iostream>using namespace std;void f(const string &s) { cout << s;std::string aa;aa = s;char* ab = strdup(aa.c_str()); cout << aa; printf(ab);}int main() { f("Hello world!");} 阅读全文
摘要:
S_IRUSR Permits the file's owner to read it.S_IWUSR Permits the file's owner to write to it.S_IRGRP Permits the file's group to read it.S_IWGRP Permits the file's group to write to it. 阅读全文