ChinaUnix.net
相关文章推荐:

void insertSqlistSqlist*lint n

请教: int n; (nt color="red">voidnt>**)&n与(nt color="red">voidnt>*)&n的区别? 一个函数的声明类似 int func(nt color="red">voidnt>* arg); int n; 调用时,func((nt color="red">voidnt>**)&n) 与 func((nt color="red">voidnt>*)&n)均不会报错,WHY? 一般用(nt color="red">voidnt>**)的目的或者好处是什么,我的一哥们说是为了标记,这函数调用的地方? 求详解 [ 本帖最后由 studyonly 于 2006-9-27 10:12 编辑 ]

by studyonly - C/C++ - 2006-09-29 22:12:05 阅读(1251) 回复(7)

相关讨论

nt color="red">voidnt> CALL sort(int n, const double data[], int index[]) 这个CALL有什么意义

by bollwarm - C/C++ - 2006-02-20 16:37:23 阅读(1151) 回复(3)

提示: [code] function returns value which is always ignored printf [/code] printf我是这样写的 [code]printf("%d,%d,%d,%d,%d,%d",a,b,c,x,y,z);[/code] 应该怎样写这个printf才算ok?

by faninzaghi - C/C++ - 2006-07-18 14:47:41 阅读(612) 回复(2)

Java Lint 工具 Stephen Suen Copyright © 2005 Stephen Suen. All rights reserved. 如果你在编译 Java 程序时,碰到类似"注意: 要了解详细信息,请使用 -Xlint:deprecation 重新编译"这样的提示,而且你对选项 -Xlint 感到困惑的话,本文或许会带给你一些有趣且有用的信息。 本文的最新版本将发布在程序员咖啡馆网站上(建设中)。欢迎订阅我们的邮件组,以获得关于本文的正式发布及更新信息。全文在保证完整性,且保留...

by ztk12 - Java文档中心 - 2006-04-25 15:36:18 阅读(371) 回复(0)

有谁用过lint吗?好像是一个更加严格检查程序的编译器,但是我上网发现找到了pc-lint,但是是收费的。不知道linux或者unix下是否有相关的版本? gcc里面是否自带? 谢谢,请高手指点

by booklijian - C/C++ - 2005-12-27 09:23:33 阅读(603) 回复(0)

在C和C++里,有时候看到源码中调用函数前加上“nt color="red">voidnt>”,不知道有什么作用,即 (nt color="red">voidnt>)function(argument) 这只是单纯为了形式的规整吗?请教诸位

by hoverlee - C/C++ - 2006-07-12 21:00:37 阅读(896) 回复(9)

有个函数int A(..., ..., nt color="red">voidnt> *buf),想在函数里面跟据情况在buf中返回不同长度、不同类型的一段空间,有没有问题???请问大家。

by eikes - C/C++ - 2005-12-15 19:24:52 阅读(788) 回复(2)

nt color="red">voidnt> hello(nt color="red">voidnt>*arg) { char*kk="hello"; arg=(nt color="red">voidnt>*)kk; return nULL; } main() { nt color="red">voidnt>*k; hello(k); char *k2=(char*)k; printf("%s",k); exit(0); } when running ,I get 8Z@ ,not hello,why? thanks for looking at my question

by lrh_0_2000 - C/C++ - 2005-09-09 17:49:32 阅读(861) 回复(5)

看到有些人对nt color="red">voidnt>指针不太清楚,我就试着解释一下,权当抛砖引玉。 大家都知道int *pint是定义了一个指针变量,这个变量里面放的是一个地址,而这个地址里面放的是一个int型的数值。char *pchar是定义了一个指针变量,这个变量里面放的是一个地址,而这个地址里面放的是一个char型的数值。 以此类推……我们也知道在32位计算机上,一般sizeof(pint)是4,也就是说指针变量p的大小是4个字节,每个地址用32位来表示。我们还...

by lenovo - C/C++ - 2003-12-19 16:30:52 阅读(3647) 回复(2)

Default constructor called. Default constructor called. Default constructor called. Default constructor called. Destructor called. Constructorl called. Destructor called. Constructor2 called. Destructor called. x=0,y=0 x=5,y=0 x=3,y=-858993460 Destructor called. Destructor called. Destructor called. Press any key to continue #include; class B { int x,y; public: B(); B(int i); B...

by 雪花啤酒 - C/C++ - 2003-12-11 11:00:37 阅读(456) 回复(0)

在头文件中。typedef nt color="red">voidnt> _nt color="red">voidnt>; extern int func(_nt color="red">voidnt>); 此时将报错,说_nt color="red">voidnt>的用法不正确。 而直接写 extern int func(nt color="red">voidnt>); 则正常。 g++ 4.2。 不知道为什么。 谢谢。

by Xorcerer - C/C++ - 2009-08-31 21:10:50 阅读(1468) 回复(9)