码迷,mamicode.com
首页 >  
搜索关键字:unsigned    ( 4409个结果)
char* wchat_t*互转 及 A2T, T2A宏及其实现原理
char :单字节变量类型,表示ASCII码。wchar_t :宽字节变量类型,用于表示Unicode字符。在定义为:typedef unsigned short wchar_t。TCHAR: VS下的中间类型。在“使用Unicode字符集”下TCHAR定义为wchar_t,在字符集 “未设置” 条...
分类:其他好文   时间:2014-08-21 09:37:03    阅读次数:257
练习13.14 13.15 13.16
#include #include #include #include struct Numbered{ //! for ex13.14 Numbered() { static unsigned i = 0; ++i; mySn = i; ...
分类:其他好文   时间:2014-08-20 21:01:32    阅读次数:138
单片机学习之:C语言基础——宏定义(#define)
例如:#define uint unsigned int//用uint来代替(表示)unsigned int,语句前有#,后面无须加分号“;”uint可为除关键字以外的任意字符,以方便书写。同理:#define uchar unsigned char
分类:编程语言   时间:2014-08-20 12:13:42    阅读次数:271
C语言内存分配函数malloc——————【Badboy】
C语言中常用的内存分配函数有malloc、calloc和realloc等三个,其中,最常用的肯定是malloc,这里简单说一下这三者的区别和联系。   1、声明   这三个函数都在stdlib.h库文件中,声明如下:   void* realloc(void* ptr, unsigned newsize);   void* malloc(unsigned size);   void* c...
分类:数据库   时间:2014-08-20 10:34:06    阅读次数:234
C语言遍历文件和目录——————【Badboy】
[cpp]   #include   #include   #include   #include   #include   #include   #include   #define MAX_PATH_LENGTH 512   #define MAX_FILE_EXTENSION 9   unsigned long visit_dirs = 0;   unsigned lo...
分类:数据库   时间:2014-08-20 09:20:06    阅读次数:208
Bitset小结 (POJ2443 & HDU4920)
学了下bitset用法,从网上找的一些bitset用法,并从中调出一些常用的用法。构造函数bitset b;b有n位,每位都为0.参数n可以为一个表达式.如bitset b0;则"b0"为"00000";bitset b(unsigned long u);b有n位,并用u赋值;如果u超过n位,则顶端...
分类:其他好文   时间:2014-08-20 01:13:55    阅读次数:252
指定精确度(*号的使用)
*号的使用 1 #include 2 3 int main(void) 4 { 5 unsigned width, precision; 6 float height; 7 printf("Please enter you height(enter a tag befor...
分类:其他好文   时间:2014-08-19 23:51:05    阅读次数:214
poj 1753 Flip Game
先贴个BFS+位运算的代码:#include #include #include #include using namespace std;unsigned short q[65536],rear,top,step[65536];//(2^16)-1bool vis[65536];unsigned ...
分类:其他好文   时间:2014-08-19 23:46:15    阅读次数:215
C++学习笔记(二):基本数据类型
带符号整数:short至少16位;int至少与short—样长;long至少32位,且至少与int—样长;long long至少64位,且至少与long—样长;无符号整数:unsigned shortunsigned intunsigned(等于unsigned int)unsigned longu...
分类:编程语言   时间:2014-08-19 18:05:15    阅读次数:288
cuda中时间用法
转载:http://blog.csdn.net/jdhanhua/article/details/4843653因之前使用nvcc编译.cu 文件时,使用time_t及其一系列函数编译报不知名错误。在CUDA中统计运算时间,大致有三种方法:使用cutil.h中的函数unsigned int time...
分类:其他好文   时间:2014-08-18 21:46:03    阅读次数:273
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!