由于通过socket传递数据的时候,仅仅能够通过字符串类型,可是,当我们要传递的数据是整型的是,应该怎么办呢?本来我想着使用for循环,可是,总感觉太麻烦了,后来别人告诉我能够使用itoa,以下是itoa的原型:char *itoa(int value, char *string, int radi...
分类:
其他好文 时间:
2014-10-08 16:25:55
阅读次数:
241
public string GenerateExamePaper(string paperType, string driverID, string MacAddr) { int i; IDataParameter[] iData = new SqlParameter[4]...
分类:
其他好文 时间:
2014-10-08 15:49:55
阅读次数:
209
1:初始化:内置类型的数组在函数体内没有初始化,在外是有的;而指针是都没有的。2:null叫空字符—‘\0’为0--char--1个字节;NULL---叫空指针--为0--int---4个字节的。3:数组是不能直接赋值与复制的;而容器可以;4:size_t ptrdiff_t 数组==== size...
分类:
其他好文 时间:
2014-10-08 15:47:15
阅读次数:
180
思路:利用排列思想,进行递归;#include "iostream"using namespace std;char b[10];void pick_one(char a[],int num[],int n){ if(n==6){ b[n]='\0'; co...
分类:
其他好文 时间:
2014-10-08 15:25:55
阅读次数:
212
#define GPIO_OFT(x) ((x) - 0x56000000)#define GPFCON (*(volatile unsigned long *)(gpio_va + GPIO_OFT(0x56000050)))static int s3c24xx_leds_open(struct....
分类:
其他好文 时间:
2014-10-08 15:08:25
阅读次数:
224
#define LOCAL#include#includeusing namespace std;typedef int ElemType;void fun1(ElemType *x){ cout>a; cout<<(*&a)<<endl; fun1(&a); ...
分类:
编程语言 时间:
2014-10-08 14:42:55
阅读次数:
221
一个有N个节点的无向图,要求对每个节点进行染色,使得相邻两个节点颜色都不同,问最少需要多少种颜色?暴力法自己通过的:#include#include#includeusing namespace std;bool map[30][30];int cmpmax(int a,int b){ return...
分类:
其他好文 时间:
2014-10-08 14:18:25
阅读次数:
241
在我的学习过程中,从文件读取数据是一件很麻烦的事,所幸有sscanf()函数。C语言函数sscanf()的用法sscanf() - 从一个字符串中读进与指定格式相符的数据. 函数原型: int sscanf( string str, string fmt, mixed var1, mixed v.....
分类:
编程语言 时间:
2014-10-08 14:12:15
阅读次数:
217
1. imagecreatetruecolor() 新建一个真彩色图像resource imagecreatetruecolor ( int x_size, int y_size )imagecreatetruecolor() 返回一个图像标识符,代表了一幅大小为 x_size 和 y_size 的...
分类:
Web程序 时间:
2014-10-08 14:03:15
阅读次数:
200
using UnityEngine;using System.Collections;using System.Collections.Generic;public class CTex : MonoBehaviour { public List tx1; public int mfps...
分类:
其他好文 时间:
2014-10-08 13:59:35
阅读次数:
190