摘要: 一、shell命令1.$ date 显示时间2.$ who 查看登陆系统的用户 $ who am i 查看自己的信息3.$ echo 在终端机上显示键入在命令行的任何信息,会去掉单词中的空格 例如:$echo this is test 显示 this is test4.$ ls 列出文件清单5.$ cat (查看的文件名称) 显示文件内容6.$ wc (参数 -l 行数 -c 字符数 -w 单词数) (统计的文件名称) 统计文件中的行数,字符数,单词数7.$ cp (源文件) (目标文件) 复制命令8.$ mv (源文件) (目标文件) 文件重命名命 阅读全文
posted @ 2012-04-13 16:30 kahreman 阅读(2275) 评论(0) 推荐(0) 编辑
摘要: clearerr(清除文件流的错误旗标) 相关函数 feof表头文件 #include<stdio.h> 定义函数 void clearerr(FILE * stream); 函数说明 clearerr()清除参数stream指定的文件流所使用的错误旗标。 返回值 fclose(关闭文件) 相关函数 close,fflush,fopen,setbuf 表头文件 #include<stdio.h> 定义函数 int fclose(FILE * stream); 函数说明 fclose()用来关闭先前fopen()打开的文件。此动作会让缓冲区内的数据写入文件中,并释放系统所 阅读全文
posted @ 2012-03-28 19:26 kahreman 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 注:本文转载自和讯科技 IT行业到底是一个让人觉得苦闷的行业,还是一个有着非凡魅力的行业? 大部分的IT从业者都承受着巨大的压力,而且工作时间很长。很多人都认为自己的工作毫无趣味可言。之前Jack Wallen就发表了一篇《退出IT行业的10个理由》的文章,这十大理由包括压力大,工作时间长,必须按照命令行事,竞争激烈等。但事实上,IT行业并非如此压抑无趣。美国CNET公司的Allen Norton介绍了留在IT行业工作的十大理由,希望那些想离开IT业的人们再重新考虑一下。虽然大部分理由都源于美国,但也值得我们参考和借鉴。 (编注:Jack Wallen 在列举退出IT行业的10个理由,... 阅读全文
posted @ 2011-09-08 00:49 kahreman 阅读(254) 评论(0) 推荐(0) 编辑
摘要: DescriptionBusinesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the University of Waterloo by dialing the memorable TUT-GLOP. Sometimes only part of the number is used to spell a wo 阅读全文
posted @ 2011-08-12 01:38 kahreman 阅读(358) 评论(0) 推荐(0) 编辑
摘要: DescriptionWelcome to the Annual Byteland Shooting Contest. Each competitor will shoot to a target which is a rectangular grid. The target consists of r*c squares located in r rows and c columns. The squares are coloured white or black. There are exactly two white squares and r-2 black squares in ea 阅读全文
posted @ 2011-08-10 17:18 kahreman 阅读(223) 评论(0) 推荐(0) 编辑
摘要: DescriptionConsider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task is to determine whether it is possible to form a committee of exactly P students that satisfies simultaneously the conditions:every student in the committee represents a differe 阅读全文
posted @ 2011-08-10 16:13 kahreman 阅读(296) 评论(0) 推荐(0) 编辑
摘要: DescriptionConsider a town where all the streets are one-way and each street leads from one intersection to another. It is also known that starting from an intersection and walking through town's streets you can never reach the same intersection i.e. the town's streets form no cycles.With th 阅读全文
posted @ 2011-08-10 15:06 kahreman 阅读(205) 评论(0) 推荐(0) 编辑
摘要: POJ题目分类按照ac的代码长度分类(主要参考最短代码和自己写的代码)短代码:0.01K--0.50K;中短代码:0.51K--1.00K;中等代码量:1.01K--2.00K;长代码:2.01K以上。短:1147、1163、1922、2211、2215、2229、2232、2234、2242、2245、2262、2301、2309、2313、2334、2346、2348、2350、2352、2381、2405、2406;中短:1014、1281、1618、1928、1961、2054、2082、2085、2213、2214、2244、2247、2255、2257、2258、2260、2265 阅读全文
posted @ 2011-08-08 20:06 kahreman 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 棋盘覆盖问题 问题描述: 在一个2^k×2^k个方格组成的棋盘中,若有一个方格与其他方格不同,则称该方格为一特殊方格,且称该棋盘为一个特殊棋盘.显然特殊方格在棋盘上出现的位置有4^k种情形.因而对任何k≥0,有4^k种不同的特殊棋盘. 下图–图(1)中的特殊棋盘是当k=3时16个特殊棋盘中的一个:图(1) 题目要求在棋盘覆盖问题中,要用下图-图(2)所示的4种不同形态的L型骨牌覆盖一个给定的特殊棋盘上除特殊方格以外的所有方格,且任何2个L型骨牌不得重叠覆盖.图(2)题目包含多组测试数据,输入包含测试数据组数N,下面输入N组数据,每组数据,包括边长m和特殊方格的位置x,y。input 阅读全文
posted @ 2011-08-08 10:09 kahreman 阅读(14232) 评论(1) 推荐(1) 编辑
摘要: 分类一:基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、1058、1061、1070、1076、1089、1090、1091、1092、1093、1094、1095、1096、1097、1098、1106、1108、1157、1163、1164、1170、1194、1196、1197、1201、1202、1205、1219、1234、1235、1236、1248、1266、1279、1282、1283、1302、1303、1323、1326、1330、13 阅读全文
posted @ 2011-08-05 14:59 kahreman 阅读(718) 评论(0) 推荐(0) 编辑