cst05001 cst05001
关注数: 4 粉丝数: 128 发帖数: 14,342 关注贴吧数: 21
dijkstar dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~dijkstar~~~oh~~oh~~
重发下以前的帖子。一段自己写的shell代码。 #include #include #include #include #include #include #include void change_dir(char path[255]);void get_path();void show_cmd_words();int get_pid();void logout();void self_cmd(int cmd_index, char **cmd);void change_echo(int flag);void change_echo(int flag){struct termios info;tcgetattr(0, &info);if (flag == 1 || flag == 0){if (flag == 1){info.c_lflag |= ECHO;info.c_lflag |= ICANON;info.c_cc[VMIN] = 0;}else if (flag == 0){info.c_lflag &= ~ECHO;info.c_lflag &= ~ICANON;info.c_cc[VMIN] = 1;}tcsetattr(0, TCSANOW, &info);}}void show_cmd_words(){int i = 0;char buf[255];getcwd(buf, 255);for ( i = strlen(buf) - 1; buf[i] != '/'; --i);printf("[AShell %s ]", &buf[i + 1]);}void change_dir(char path[255]){int i = 0;char buf[255];if (chdir(path) != 0){perror("The path can not found.\n");}}void get_path(){char buf[255];getcwd(buf, 255);printf("%s\n", buf);}int get_pid(){int pid = 0;pid = getpid();printf("Pid = %d\n", pid);return pid;}void logout(){change_echo(0);char flag = 0;printf("\033[32mAre you sure to shutdown the alin-shell ? (Y/N)\033[m");scanf("%c", &flag);switch(flag){case 'y':case 'Y':change_echo(1);printf("\n");exit(0);default:change_echo(1);printf("\n");return;}}void exec(char **command){execvp(command[0], command);}void self_cmd(int cmd_index, char **cmd){switch(cmd_index){case 0:logout();break;case 1:change_dir(cmd[1]);break;case 2:get_pid();break;case 3:get_path();break;}}int main(){/*********define command list**********/char *cmd_list[255];cmd_list[0] = "logout";cmd_list[1] = "cd";cmd_list[2] = "pid";cmd_list[3] = "pwd";cmd_list[4] = NULL;/*********define ends*****************/int pid = 0;int i = 0, j = 0, k = 0;char *buf[255];char temp_buf[255];printf("\033[32m**************************************************\n");printf("* Welcome to use alin-shell (AShell) ! *\n");printf("* *\n");printf("* You can use the inside command like: *\n");printf("* \"logout\" *\n");printf("* \"cd\" *\n");printf("* \"pid\" *\n");printf("* \"pwd\" *\n");printf("* or other outside-command like: *\n");printf("* \"vim\" *\n" );printf("* \"vsftpd\" *\n");printf("* and so on... *\n");printf("* *\n");printf("* alin-shell is a homework write by *\n");printf("* Fang Yunlin (alin) *\n");printf("* Xiamen Unversity Tan Kah Kee College *\n");printf("* Computer Science & Technology Department *\n");printf("* Mail: [email protected] *\n");printf("* *\n");printf("**************************************************\n\033[m");while(1){i = 0, j = 0, k = 0;show_cmd_words();fgets(temp_buf, 255, stdin);/*****separate the command*********/buf[j] = calloc(255, sizeof(char));while (temp_buf[i] != '\n' && temp_buf[i] != '\0') {if (temp_buf[i] != ' ') {buf[j][k] = temp_buf[i];++k;}else {buf[j + 1] = calloc(255, sizeof(char));k = 0;++j;}++i;}buf[j + 1] = 0;/***********separate end*************/for (i = 0; cmd_list[i] != NULL && strcmp(buf[0], cmd_list[i]); ++i);if (cmd_list[i] != NULL)self_cmd(i, buf);else{pid = fork();switch(pid ){case -1: perror("Fork error.\n");exit(0);case 0:exec(buf);default:wait(0);}}}return 0;}
简易邮件列表批量生成工具 //[email protected]#include #include #include using namespace std;string dir;void make(string front, int num, int min, int max){ofstream fout;string last;string filename = "mail_" + front + ".txt";int i = 0;int count = 0;int i_temp = 0;string s_temp(num, '0');fout.open(filename.c_str());if (!fout.is_open()){cout << "文件创建失败。" << endl;exit(0);}for (i = min; i != max + 1; ++i){fout << front;i_temp = i;count = 0;while (i_temp){s_temp[num - ++count] = i_temp % 10 + 48;i_temp /= 10;}fout << s_temp << "@stu.xujc.com" << endl;}cout << "邮件列表 " << dir + filename << " 创建成功。" << endl << endl; }void run(){string front;int max = 0, min = 0, num = 0;int temp = 0, count = 0;cout << endl << "请输入邮件前缀(专业代号+年级):";cin >> front;do {cout << endl << "请输入起始学号(必须大于0)";cin >> min;} while(min <= 0);do {cout << endl << "请输入结束学号(必须大于或者等于起始学号):";cin >> max;} while(min > max);do {cout << endl << "请输入要填充的数字位数:" ;cin >> num;temp = max;count = 0;while (temp > 0){temp /= 10;++count;}} while(count > num);make(front, num, min, max);}string getDir(string argv_0){int i = argv_0.length() - 1;while (argv_0[i-1] != '\\' && argv_0[i - 1] != '/'){--i;}argv_0.resize(i);return argv_0;}int main(int argc, char *argv[]){string flag;dir = getDir(argv[0]);run();while(1){cout << "是否继续产生邮件列表?(Y/N):";cin >> flag;if (flag == "yes" || flag == "YES" || flag == "Y" || flag == "y"){run();}else if (flag == "no" || flag =="NO" || flag == "n" || flag == "N" ){cout << "按任意键退出。"; cin.get();return EXIT_SUCCESS;}}}
☆★厦门大学嘉庚学院吧最有影响力的100位吧友统计★☆ ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※                              ※※    厦门大学嘉庚学院吧最有影响力的100位吧友统计     ※※                              ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※     用户ID 主题数 精品数 精品率 主题率 贡献分  排名-----------------------------------------------------------------    cst05001   69   8  11.59%  4.65%  1135    1    上官爬爬   13   3  23.08%  0.88%   369    2    Windz0110   16   2  12.5%  1.08%   310    3     横天猪   1   1   100%  0.07%   169    4   吃着冰淇淋   11   1  9.09%  0.74%   168    5      jgxy   1   1   100%  0.07%   153    6   我是伏难陀   21   0    -  1.42%   146    7      贤康   18   0    -  1.21%   130    8  飞碟老是吸我P   5   1   20%  0.34%   122    9    艺苑男孩   5   1   20%  0.34%   121    10   chrisyan86   4   1   25%  0.27%   120    11 凤凰花开的寂寞   4   1   25%  0.27%   118    12      兔兔Q   3   1  33.33%  0.2%   116    13    宇宇蓝天   16   0    -  1.08%   113    14   捏捏我就笑   9   0    -  0.61%   71    15     陈弓虽   9   0    -  0.61%   63    16    蜗牛嘿咻   9   0    -  0.61%   62    17      举少   9   0    -  0.61%   61    18     呐只烟   8   0    -  0.54%   59    19    aries丹尼   7   0    -  0.47%   49    20     木木鬼   6   0    -  0.4%   44    21    BadFish刚   6   0    -  0.4%   43    22   ryuichikiss   6   0    -  0.4%   42    23 爱上爬爬的无名   5   0    -  0.34%   37    24     渭城雨   5   0    -  0.34%   36    25   yinjiajia87   5   0    -  0.34%   36    26    木头A多多   5   0    -  0.34%   35    27     fonzier   4   0    -  0.27%   30    28     flёur   4   0    -  0.27%   29    29    暮逸依河   4   0    -  0.27%   29    30     GorKin   4   0    -  0.27%   28    31    小晓0120   4   0    -  0.27%   28    32    阿克大人   4   0    -  0.27%   27    33  rika_hayashi   4   0    -  0.27%   27    34     莫…莫   4   0    -  0.27%   27    35    恶魔kady   4   0    -  0.27%   27    36      YHEWW   4   0    -  0.27%   27    37     水奎兮   3   0    -  0.2%   26    38   妖精shelley   3   0    -  0.2%   23    39     夏雪恬   3   0    -  0.2%   21    40
【新闻】我院2007年校园开放日定为6月17日 发布:嘉庚学院 日期:2007-04-30   为了使广大考生、考生家长及在校生家长在最短的时间内全面了解嘉庚学院的办学条件和办学特色,我院将于2007年6月17日9:00—17:00举办“校园开放日”活动。届时,我院将向社会公众开放校园,展示嘉庚学院优美的校园环境、一流的教学设施。除了院长将在院长见面会、家长论坛上与考生、家长进行面对面的交流外,各部门和各系也将进行现场咨询,就学科、专业、就业前景等问题为考生、家长答疑解惑。    欢迎各位考生、家长及关心嘉庚学院的各界人士光临我院,零距离体验大学的学习与生活环境。  欢迎您事先通过咨询电话、网站留言板和电子信箱等方式告诉我们您的姓名及到达的时间、地点等,以便我们做好接待工作。  咨询电话:0596-6288416、0596-6288564(5月8日起启用)  “校园开放日”专题网站:    http://zsb.xujc.cn/zt/openday (教育网)    http://zsb.xujc.com/zt/openday (公网)  网站留言板:     http://www.jgxy.xmu.edu.cn/v3/messageboard(教育网)    http://www.xujc.com/v3/messageboard(公网)  电子信箱:[email protected]   交通路线:http://www.jgxy.xmu.edu.cn/v3/aboutus/200702/article187.php  “校园开放日”预告片:http://www.jgxy.xmu.edu.cn/v3/news/video/200705/article2817.php
首页 3 4 5 6 7 8 下一页