摘要: pause函数: 功能:让进程暂停直到信号出现 #include<unistd.h> intpause(); 函数说明:pause()会令目前的进程暂停(进入睡眠状态),直至信号(signal)所中断。 返回值:只返回-1。 说明: 当程序运行时,pause会使当前的进程挂起(进入睡眠状态),直到我 阅读全文
posted @ 2016-06-24 00:39 Mr.Ethan 阅读(1525) 评论(0) 推荐(0) 编辑
摘要: 使用 sigaction 函数: signal 函数的使用方法简单,但并不属于 POSIX 标准,在各类 UNIX 平台上的实现不尽相同,因此其用途受 到了一定的限制。而 POSIX 标准定义的信号处理接口是 sigaction 函数,其接口头文件及原型如下: #include <signal.h> 阅读全文
posted @ 2016-06-24 00:10 Mr.Ethan 阅读(1498) 评论(0) 推荐(0) 编辑
摘要: 规则:1.必须至少包含一个元音字母。a e i o u2.不能包含三个连续元音或者连续辅音字母。3.不能包含两个连续字母,除了'ee'和'oo'。PS:字母个数(1#include #include int is_vowel(char strIn){ if(strIn == 'a' || st... 阅读全文
posted @ 2015-07-12 12:34 Mr.Ethan 阅读(198) 评论(0) 推荐(0) 编辑
摘要: #include #include void main(){ while(1) { char input1[1000] = {'\0'}; char input2[1000] = {'\0'}; int count = 0; sca... 阅读全文
posted @ 2015-07-10 23:20 Mr.Ethan 阅读(204) 评论(0) 推荐(0) 编辑
摘要: #include #include int N;int size;void main(){ scanf("%d", &N); getchar(); //读取残留的回车符 for(int i = 0; i = 'A' && strIn[j] #include int N;int s... 阅读全文
posted @ 2015-07-10 18:54 Mr.Ethan 阅读(221) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include using namespace std;typedef struct point{ int x; int y;}PointType;int main(){ vector vecPoint; /... 阅读全文
posted @ 2015-07-09 21:38 Mr.Ethan 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 排序有关博客:http://www.cnblogs.com/vamei/archive/2013/03/12/2948847.htmlhttp://blog.csdn.net/morewindows/article/details/6665714排序动画(推荐):http://www.sorting... 阅读全文
posted @ 2015-07-08 21:19 Mr.Ethan 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1.获取指定表的行数--获取表中数据行数--select max([列名]) from 表名2.筛选指定表的指定行数据(数据表分页获取) http://www.cnblogs.com/morningwang/archive/2009/01/02/1367277.html--MAX方法实现筛选指定范围... 阅读全文
posted @ 2015-07-05 17:00 Mr.Ethan 阅读(1284) 评论(0) 推荐(0) 编辑
摘要: 一.2015 华为1:#include #include #include #include int cmp(const void *a, const void *b){ return *(int*)a - *(int*)b;}int main(){ char strIn[4096] = {'\0'... 阅读全文
posted @ 2015-06-30 22:07 Mr.Ethan 阅读(247) 评论(0) 推荐(0) 编辑
摘要: #include#includeusing namespace std;typedef struct { int maxsum; int first; int end;}resultArryType;void OutResult(vector vec, int num){ r... 阅读全文
posted @ 2015-06-27 21:44 Mr.Ethan 阅读(144) 评论(0) 推荐(0) 编辑