Results 1 to 6 of 6
Thread: () dereference
Hybrid View
-
17th May 2008 05:27 #1
() dereference
!
dereference- ( , ) ""- indexSet(adr->key), void*, temp e , indexSet(adr->key).
Visual Studio 2005 :Code:// adr->key linked list // elementsInSet(adr->key) linked list- /* indexSet(adr->key, j) void* j linked list- adr->key */ void compare(int key) { int j; char* k; void* temp; for (j=0;j<elementsInSet(adr->key);j++){ temp = indexSet(adr->key, j); if (*temp == key){ // // } } } }
http://msdn.microsoft.com/en-us/libr...a6(VS.80).aspx . , , pointer void*, ko dereference-!Code:error C2100: illegal indirection
walkarounds !
: http://www.cplusplus.com/doc/tutorial/pointers.html "void pointers" ++, , void* char* . , , ,
.
Last edited by haste; 17th May 2008 at 05:50.
-
17th May 2008 10:04 #2
, temp void*, , , , . void* temp int* temp :
if (*(int*)temp == key){Last edited by icaci; 17th May 2008 at 19:51.
Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
17th May 2008 11:45 #3
" " - "" , ' ' Microsoft- compiler , user-a ( ) , . Reference Manual-a - ' . linked lists ' , @ ! - , auto cast dereferenced , compiler-a "" ?
-
17th May 2008 13:33 #4
-
17th May 2008 12:11 #5
C/C++ void* ( ) , , . C void* , C++ .
, , .Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
17th May 2008 17:28 #6Registered User
Join Date: Dec:2007
Location:
Posts: 655




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in