由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] C coding problems
相关主题
A weird C programming language--Return a pointer to array[合集] weird gdb problem
Can we define pure virtual function? (转载)Problem of Thread by Prof. Lee大伙怎么看?
[转载] help me on memory problemsome problems with "cin"
problemC++ Q15: throw
sscanf problem in MSVC 7这是另一个c++的bug么?
A Problem on MST如何计算1000的阶乘
what kind of reason might cause this problem? [转载] Code效率确实很低!!!(改进版)
3sum problemc++ define 一问
相关话题的讨论汇总
话题: getsomeids话题: someids话题: thefirst话题: int话题: coding
进入Programming版参与讨论
1 (共1页)
s*******e
发帖数: 664
1
☆─────────────────────────────────────☆
merriam (爱我所爱,珍惜拥有!) 于 (Sun Jan 3 16:02:31 2010, 美东) 提到:
what the correct int * GetSomeIDs() should be like? Thanks
30 int * someIDs, theFirst, *r;
110 someIDs =GetSomeIDs(); /* defined below */
111 theFirst = someIDs [0];
112 r= ReorderIDs(someIDs);
113-150 /* we want to use ‘theFirst’ and ‘r’ here*/

499 /*-------- GetSomeIDs-----*/
500 int * GetSomeIDs()
501 {
502 int ids[8];
503-550 /* The ids are defined
1 (共1页)
进入Programming版参与讨论
相关主题
c++ define 一问sscanf problem in MSVC 7
Call assembly in c++ under linuxA Problem on MST
STL set and map questionwhat kind of reason might cause this problem?
C++ questions3sum problem
A weird C programming language--Return a pointer to array[合集] weird gdb problem
Can we define pure virtual function? (转载)Problem of Thread by Prof. Lee大伙怎么看?
[转载] help me on memory problemsome problems with "cin"
problemC++ Q15: throw
相关话题的讨论汇总
话题: getsomeids话题: someids话题: thefirst话题: int话题: coding