码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
console.read()读入的内容
今天写的特别简单的代码,大体是一个模式选择,从控制台读入一个数,然后做出相应的选择. 代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Thre...
分类:其他好文   时间:2014-05-01 08:41:35    阅读次数:340
深入指针(一)
本次主题:指针与数组在进入主题前,我们先看一个例子:#includeint main(){ int a[5] = { 1, 2, 3, 4, 5 }; int *ptr = (int *) (&a + 1); printf("%d,%d\n", *(a + 1), *(ptr - ...
分类:其他好文   时间:2014-05-01 08:40:11    阅读次数:324
转 ABAP中使用for all entries in小结
ABAP开发中,使用for all entries in语句将不能使用join的聚集表(例如BSEG)或者需要使用select的内表与内表串联。以BSEG为例:select belnr hkontfrom bsisinto corresponding fields of table itab1whe...
分类:其他好文   时间:2014-05-01 08:38:54    阅读次数:336
Caching Tutorial
for Web Authors and WebmastersThis is an informational document. Although technical in nature, it attempts to make the concepts involved understandabl...
分类:其他好文   时间:2014-05-01 08:37:04    阅读次数:438
在Gridview中输入小数时报对于int32 太大或太小
使用Datagridview绑定Access数据库,对于数字类型的数据输入小数后报以下错误:根据错误判断应该是自动检测该栏位应该输入int32类型的数值。我在数据库中定义了保留4位小数,为什么还被转成整型呢?仔细检查,原来Access中的数据类型是需要进一步定义的,选了数字后还要选择是字段大小,以确...
分类:其他好文   时间:2014-05-01 08:36:21    阅读次数:570
uva 11988 这题可以看出c++中string效率的底下
用c语言实现 #include #include #include using namespace std; typedef struct node { char x; struct node *next; }chan; chan *root = new chan; char a[100010]; int main() { while(scanf("%...
分类:编程语言   时间:2014-04-29 13:47:20    阅读次数:358
最新版dlx模板(精确覆盖+重复覆盖)
以前的代码太挫了,重新整理dlx,学习HH把精确覆盖,重复覆盖整合在一起。 代码: struct DLX{ const static int maxn=20010; #define FF(i,A,s) for(int i = A[s];i != s;i = A[i]) int L[maxn],R[maxn],U[maxn],D[maxn]; int size,c...
分类:其他好文   时间:2014-04-29 13:43:20    阅读次数:370
c语言参数传递方式
今天在写栈碰到 了一个问题关于c语言参数传递的让我郁闷了半天 我只发现了两个问题一个 实参sum(a,b) 形参sum(int a,int b)或者sum(int &a,int &b) 实参sum(&a,&b) 形参sum(int *a,int *b) 这个就是c函数传地址与传引用传值!...
分类:编程语言   时间:2014-04-29 13:38:21    阅读次数:271
java里,当long与上了int
long switchState = 0xf0000000000L; int result = (switchState & 0xff00000000L) > 0 ? 0x01 : 0x00; 你觉得result是多少?1 result = (switchState & 0xff000000) > 0 ? 0x01 : 0x00; 你觉得result是多少?1 【还是没有完...
分类:编程语言   时间:2014-04-29 13:24:21    阅读次数:323
wustoj 1318 区间的连通性 (最短路)
floyd求最短路。 注意图是有向图。。。 #include #include #include using namespace std; struct node { int x,y,id; }edge[205]; int dis[205][205]; int main() { int c,T,n,a,b,op; while(scanf("%d",&T...
分类:其他好文   时间:2014-04-29 13:21:23    阅读次数:313
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!