摘要: #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!");} 阅读全文
posted @ 2011-10-21 11:10 greencolor 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 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. 阅读全文
posted @ 2011-10-21 10:14 greencolor 阅读(174) 评论(0) 推荐(0) 编辑