#include<stdio.h> unsigned int UART0_ADDR = 0x20080000; unsigned int retu=0; int i=0…
#include <stdio.h> #include <stdlib.h> #include <time.h> #pragma pack(1)…
UIWebView的使用方法 //1.创建、设置代理 UIWebView *webView=[[UIWebView alloc] initWithFrame:CGRectMake(…
一种解法非常好:状态机。在各种状态之间跳转,逻辑清晰,不易出错,出错了也容易调试。 下面把代码贴出来: #include <stdio.h> int state; in…
最初 int x = 10; int y = 5; int tmp; tmp = x; x…
#include<stdio.h> #include<stdlib.h> //冒泡排序从小到大 第一趟得到最大的存到数组的最后,第二趟得到数组的第二大的,存…
/* *字符串的朴素匹配 通过每一个字母对应着主串 进行一次的进行比较,知道 其中的一个串的所有字母都匹配成功 */ #include <iostream> #incl…
/* 通过输入年月日,计算出这一天是星期几,计算这一天是这一年的多少天,判断这一年是否为闰年 */ #include<iostream> using namespace…
#include<iostream> #include<string> using namespace std; int KMPfind(char* s, …
#include <iostream> #include <stdlib.h> #include <vector> using namespac…
在 UIResponder中存在这么一套方法 - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)eve…
C++本身并没有提供任何多线程机制,但是在windows下,我们可以调用SDK win32 api来编写多线程的程序,下面就此简单的讲一下: 创建线程的函数 HAND…