码迷,mamicode.com
首页 >  
搜索关键字:pri    ( 1072个结果
小疑问
#include using namespace std; int main() { char a[2];//就是变量的地址 printf("%x", (int)&a[0]); void * p = a;//对于指针显示的就是p存放的地址值,而不是p的地址 pri...
分类:其他好文   时间:2014-10-26 16:55:45    阅读次数:125
Exercise 20: Functions And Files
from sys import argvscript, input_file = argvdef print_all(f): print f.read() def rewind(f): f.seek(0)def print_a_line(line_count, f): pri...
分类:其他好文   时间:2014-10-24 10:25:01    阅读次数:253
linux下的access()函数判断文件是否存在
#include #include #include #include int main(){ if((access("test.c",F_OK))!=-1) { printf("文件 test.c 存在.\n"); } else { pri...
分类:数据库   时间:2014-10-21 14:57:43    阅读次数:230
mysql key PRI UNI MUL
1.如果Key是空的,那么该列值的可以重复,表示该列没有索引,或者是一个非唯一的复合索引的非前导列2.如果Key是PRI,那么该列是主键的组成部分3.如果Key是UNI,那么该列是一个唯一值索引的第一列(前导列),并别不能含有空值(NULL)4.如果Key是MUL,那么该列的值可以重复,该列是一个非...
分类:数据库   时间:2014-10-16 13:28:12    阅读次数:201
插入多行数据和类似 select union 方法
Cite:http://blog.csdn.net/downmoon/article/details/5936706[ruby] view plaincopyprint? Create table Demo_Values (PKID int not null identity(1,1) pri...
分类:其他好文   时间:2014-10-11 13:22:15    阅读次数:163
【素数】 poj 2739 一个数能有多少种连续素数相加方案
简单题 素数打表根据数据量用n2算法遍历开一个save【k】素数存前k个素数和即可。#include #include #include #include using namespace std;const int maxn=10002;int pri[maxn+1];int save[2000+1...
分类:其他好文   时间:2014-10-10 11:43:44    阅读次数:195
MySQL DDL语句
这里介绍MySQL比较常用的DDL语句。包括如下:createtablealtertabledroptabletruncatetable1.createtablecreatetable为建表语句,看如下几个示例:在列名后面声明主键createtablet1(idintprimarykey,namevarchar(20));在表级别声明主键createtablet1(idint,namevarchar(20),pri..
分类:数据库   时间:2014-10-09 20:53:18    阅读次数:310
表达式的求值顺序
代码: #include?<stdio.h> #include?<stdlib.h> #include?<stdbool.h> //?C语言保证逻辑表达式是从左至右求值 int?main(void)?{ //?printf("Left")?==?4 //?printf("Right")?==?5 if?(!pri...
分类:其他好文   时间:2014-10-08 02:59:54    阅读次数:222
9.21 宽字符串 语音识别
宽字符: #define _CRT_SECURE_NO_WARNINGS#include #include #include int main(){ char str[10] = "轩辕"; printf("%d,%d\n", sizeof(str), strlen(str));//10,4 pri...
分类:其他好文   时间:2014-09-30 01:24:41    阅读次数:180
thread_24
#include #include #include #include #includepthread_key_t key;void destructor(void *data) { if(data != NULL) free(data); pri...
分类:其他好文   时间:2014-09-27 01:20:09    阅读次数:260
1072条   上一页 1 ... 96 97 98 99 100 ... 108 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!