ChinaUnix.net
相关文章推荐:

passing argument 2 of 'WriteConsoleOutputCharacterA' makes pointer from integer without a cast

warning: return makes integer from pointer without a cast 这样的warning怎么解决??谁能帮偶下~谢谢

by love_xn - C/C++ - 2006-02-14 14:30:57 阅读(3415) 回复(6)

相关讨论

#define __USE_GNU 1 #include ................. bsize = getpagesize() * 25*512/100; block = (char*)valloc(bsize); ............................ 在gent OS 32位下编译没有错误,但是在gent OS 64位下编译会出现如下提示: cast to pointer from integer of different size 1. 不知道是什么原因? 2. 如何解决这个问题呢? 请各位指点

by 博天 - C/C++ - 2009-05-11 16:25:05 阅读(12328) 回复(4)

问个关于拷贝构造函数的问题: //test.cpp class A{ private: int i; public: A(int x = 2): i(x) { } A(const A &a){ i = a.getValue();////////////////////////this line? } int getValue(){ return i; } }; int main() { A a1(3); A a2(a1); } 编译错误是: test.cpp: In copy constructor `A::A(const A&)': test.cpp:7...

by wbyanhust - C/C++ - 2006-09-14 20:24:39 阅读(1131) 回复(1)

请教: :roll: [code] parse(buf, args) char *buf; char **args; { while (*buf != NULL) { while ((*buf == ' ') || (*buf == '\t')) *buf++ = NULL; *args++ = buf; while ((*buf != NULL) && (*buf != ' ') && (*buf != '\t')) buf++; } *args = NULL; } [/code] adf_23.c:44: warning: comparison between pointer and integer

by rocklv - C/C++ - 2004-01-10 10:50:00 阅读(1329) 回复(2)

Sample for CL to CL program. CLA call CLB, CLB call RPGPGM CLA coding PGM parm(&type &wdate) DCL Type *char 10 DCL WDate *dec 6 0 Call CLB parm(&type &wdate) Endpgm CLB coding PGM parm(&intype &indate) DCL intype *char 10 DCL indate *dec 6 0 Call RPGPGM parm(&intype &indate) Endpgm RPGPGM coding Factor1 Op code Factor2 Result *entry Plist ...

by kimdai - AS400 - 2003-07-28 19:11:32 阅读(1284) 回复(0)

struct node{ char name[16]; int id; struct node *next; }; struct node *stu1; sturct node *p; .......//some code stu1->next=p; // 报:warning: assignment from incompatible pointer type 哪错了? 谢谢

by john.daker - C/C++ - 2009-07-01 16:02:57 阅读(4241) 回复(9)

Hi all, I found the following function, which is used to remove the head of a linked list. void RemoveHead(node **head) { node *temp; if (head && *head) { /* Corrected code */ temp = (*head)->next; free(*head); *head = temp; } } 1. Why is the purpose of 'head' in the 'if' condition? Shouldn't '*head' suffice? 2. This function has an argument, which is a po...

by bsd_lite - C/C++ - 2008-10-17 21:58:56 阅读(925) 回复(4)

1. gcc version 4.1.2 2. 部分源码: int compare_name( dir_ const *a, dir_ const *b) {   return strcmp(a->name, b->name); }   int sort_dirs(dir_ *dirs, int dir_index) {   qsort(dirs,dir_index,sizeof(dir_),compare_name);   return 0; } 3. 编译时: gcc -c -Wall -O2 -fPIC -I../include -o ../src/log/rollover.o ../src/log/rollover.c ../src/log/rollover.c: In function...

by tessykandy - C/C++ - 2009-04-10 13:42:04 阅读(2932) 回复(3)

Tables are truncated by human error, if there’s no backup, can these data be got back? We know truncating table just update dictionary tables, table segment header and file header information and the actual data don’t be removed. If we can reverse these control data, it’s possible to get data back. But there’s one condition that blocks allocated in the truncated table do not be reused. I ill...

by yaping - Oracle - 2008-08-28 20:26:38 阅读(3583) 回复(3)

A lot of programmers standardize on indicator usage for function keys within display file programs, e.g. *IN01 for F1, *IN03 for F3, etc, which is fine and readable if you are aware of the convention being used. However, if you want to cut down on the number of indicators used in your program and make it easier to read and maintain then you should code your display files not to use response indic...

by jj8610 - AS400 - 2004-04-08 10:28:38 阅读(669) 回复(0)

i have a table which primary key is an integer column with generated by default property. i now want to move data from the table to a new one, but the problem is if i just perform insert and select data from the old one, the primary key of the new table would different from the old table. can i create the new table with primary key is integer at first, and then change its type from integer to id...

by wrl - DB2 - 2009-04-03 11:34:17 阅读(1849) 回复(0)