Sportica   Sportica
摘要: #include <iostream>#include <fstream>using namespace std;int main(){ ifstream in; in.open("file1.txt"); //打开一个文件 char c; if(!in) //提示 { cerr<<"open failure!\n"<<endl; return 0; } ... 阅读全文
posted @ 2011-12-07 16:49 qingjoin 阅读(368) 评论(0) 推荐(0)
摘要: #include <iostream>using namespace std;int main(){ const int SIZE=50; //定义大小。 char name[SIZE]; cout<<"please input you name!\n"; //提示 cin>>name; //输入 cout<<"hello world:"<<name<<endl; //输出 return 0... 阅读全文
posted @ 2011-12-07 15:56 qingjoin 阅读(1815) 评论(0) 推荐(0)
摘要: 解压.gz :tar zxvf XXX.tar.gz打包.gz:tar zcvf xxx解压bzz:tar jxvf xxx.tar.bz2rm-rf 删除目录下的文件的所有内容rm-f 删除文件vi 创建文件.打开mkdir 创建文件修改系统时间date -s "2011-12-19 09:... 阅读全文
posted @ 2011-12-07 11:09 qingjoin 阅读(280) 评论(0) 推荐(0)
  Sportica