数据库中字段类型对应C#中的数据类型:数据库 C#程序 int int32 text string bigint int64 binary System.Byte[] bit Boolean char string...
分类:
数据库 时间:
2014-06-26 16:45:09
阅读次数:
348
1、此程序为c++程序2、以下代码可实现手动输入,即去掉代码中的/*...*/注释符,并同时去掉赋值代码段3、源代码#includeusing namespace std;#define MaxInt 32767#define MVNum 100typedef struct{ char vexs[M...
分类:
其他好文 时间:
2014-06-26 16:38:00
阅读次数:
287
1、此程序为c++程序2、以下代码可实现手动输入,即去掉代码中的/*...*/注释符,并同时去掉赋值代码段3、源代码#includeusing namespace std;#define MaxInt 32767#define MVNum 100typedef struct{ char vexs[M...
分类:
其他好文 时间:
2014-06-26 16:29:13
阅读次数:
234
题目POJ 3617 和 这道题题目一样,只是范围稍稍再小一点。//模拟试试#include#include#includeusing namespace std;char s[30010][2];bool bijiao(int st,int ed){ if(st==ed) re...
分类:
其他好文 时间:
2014-06-26 16:00:00
阅读次数:
201
sscanf函数sscanf函数基本知识函数原型int sscanf( const char *buffer, const char *format [, argument ] ... );函数功能将buffer中的数据按照format格式读取后存储在argument中,返回值表示为成功转换的的数据...
分类:
其他好文 时间:
2014-06-26 15:49:14
阅读次数:
160
一直想自己写个游戏玩玩,好像很厉害的样子,终于今天下定决心写了个最经典的休闲的小游戏——贪吃蛇,当然也有借鉴别人的程序,但是整个代码都是和别人不一样的,直接上代码吧:
#include
#include
#include
#include
using namespace std;
#define ROW 22
#define COL 22
struct Point
{
char ch...
分类:
其他好文 时间:
2014-06-26 13:24:30
阅读次数:
196
(1)第一个作用:隐藏。
当我们同时编译多个文件时,所有未加static前缀的全局变量和函数都具有全局可见性。为理解这句话,我举例来说明。我们要同时编译两个源文件,一个是a.c,另一个是main.c。
下面是a.c的内容
#include增加这条语句
char a = ‘A‘; // global variable
void msg()
{
printf("Hello\n");
}...
分类:
其他好文 时间:
2014-06-26 12:15:11
阅读次数:
177
写这篇原创文章是因为看到了极客中的一篇文章《有趣各种编程语言实现2+2=5》,其中C语言是这样实现的:
int main() {
char __func_version__[] = “5″; // For source control
char b[]=”2″, a=2;
printf(“%d + %s = %s\n”, a, b, a+b);
return 0;
}
有些童鞋可能会说...
分类:
编程语言 时间:
2014-06-26 11:03:19
阅读次数:
282
直接上代码了,不难,自己理解吧;
void MorhpolotyDilate_ChenLee(unsigned char* pBinImg, int imgW, int imgH, Tpoint* mask, int maskLen)
{
unsigned char* pTempImg = new unsigned char[imgW*imgH];
memcpy(pTempImg, pBin...
分类:
其他好文 时间:
2014-06-26 07:49:19
阅读次数:
233
oc是c的超集,从c扩展而来,具备面向对象的特性,比如类,消息,单继承。c的部分:数据类型:short,int,long,float,double,char,pointer,struct常用方法:readline()atoi()sizeof()malloc()oc的部分:receiver:classNameOrObjectselector:method消息的传递通过[recei..
分类:
移动开发 时间:
2014-06-26 06:39:56
阅读次数:
305