码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
C++调用C中编译过的函数要加extern "C"
C++语言支持函数重载,C语言不支持函数重载。函数被C++编译后在库中的名字与C语言的不同。假设某个C 函数的声明如下:void foo(int x, int y);该函数被C 编译器编译后在库中的名字为_foo,而C++编译器则会产生像_foo_int_int之类的名字用来支持函数重载和类型安全连...
分类:编程语言   时间:2014-10-08 04:18:24    阅读次数:215
MYSQL insert
准备: create table T4(X int ,Y int);方法 1、 insert [low_priority][high_priority][delayed] into table_name values(...),(...).....; insert into T4(X...
分类:数据库   时间:2014-10-08 03:07:24    阅读次数:306
表达式的求值顺序
代码: #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
UVa 202 - Repeating Decimals
题目:计算分数的循环节。 分析:数论,组合。             n除以m的余数只能是0~m-1,根据抽屉原则,当计算m+1次时至少存在一个余数相同,             即为循环节;存储余数和除数,输出即可。 说明:(⊙_⊙)。 #include #include #include #include using namespace std; int r[3003],...
分类:其他好文   时间:2014-10-08 02:41:54    阅读次数:279
longDataMinus.c
#include #include #include #define MAX_DATA_LEN 1000int findIntNum(char* str)//整数个数{ int i=0,dotPos=0; for(i=0;iIntNum2?IntNum1:IntNum2) + (dotP...
分类:其他好文   时间:2014-10-08 02:39:04    阅读次数:367
typedef使用
1,?定义函数指针 typedef 返回值 (*别名)(参数列表) 如typedef int (*f)(int) , f是定义类型为int (*)(int)的函数指针 2, 定义数组 typedef 数组类型 别名[数组大小] 如typedef int vec[20], vec是定义为int[2...
分类:其他好文   时间:2014-10-08 02:09:44    阅读次数:255
华为刀片,IBM刀片服务器将外部EXT端口流量复制给内部INT端口的实现方法不同
如何在刀片服务器中将外部端口EXT的流量复制给内部INT端口用于采集DNS流量(1)对于IBM刀片服务器的北电Nortel_32R1860交换模块112.4.20.12DNS抓包的问题已经搞定经过摸索和测试,感觉北电的交换机模块不是采用镜像命令来实现复制流量(虽然有相应的port-mirroringmonitor-port.....
分类:其他好文   时间:2014-10-08 02:01:45    阅读次数:449
mysql级联删除操作
mysql>CREATETABLE`roottb`(->`id`INT(11)UNSIGNEDAUTO_INCREMENTNOTNULL,->`data`VARCHAR(100)NOTNULLDEFAULT‘‘,->PRIMARYKEY(`id`)->)engine=InnoDB;QueryOK,0rowsaffected(0.60sec)mysql>CREATETABLE`subtb`(->`id`INT(11)UNSIGNEDAUTO_INCREMENTNOTNU..
分类:数据库   时间:2014-10-08 02:01:00    阅读次数:408
printf不支持%lf
1 #include 2 3 int square137(int n); 4 5 void p137() { 6 double x = 3.0; 7 int y = (int)x; 8 printf("Square of %f is %d\n", x, square1...
分类:其他好文   时间:2014-10-08 01:41:54    阅读次数:175
strcpy拷贝的是一个有符号的字符字符串,而不是一个无符号的字符串
#include"stdafx.h"#include<stdio.h>#include<stdlib.h>#include<string.h>#pragmapack(1)typedefstructEMPTYSTRUCT{inta;charb;unsignedcharcLeadingCharacter[4];}EmptyStruct;int_tmain(intargc,_TCHAR*argv[]){EmptyStructemptystruct;memset(&empt..
分类:其他好文   时间:2014-10-08 00:19:34    阅读次数:1044
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!