Results 1 to 6 of 6

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Banned haste's Avatar
    Join Date: Mar:2006
    Location:
    Posts: 759

    () dereference

    !

    dereference- ( , ) ""- indexSet(adr->key), void*, temp e , indexSet(adr->key).


    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){         //   
    				//  
    			}
    		}
    
    	}
    }
    Visual Studio 2005 :
    Code:
     error C2100: illegal indirection
    http://msdn.microsoft.com/en-us/libr...a6(VS.80).aspx . , , pointer void*, ko dereference-!

    walkarounds !

    : http://www.cplusplus.com/doc/tutorial/pointers.html "void pointers" ++, , void* char* . , , , .
    Last edited by haste; 17th May 2008 at 05:50.

  2. #2
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    , 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

  3. #3
    Banned haste's Avatar
    Join Date: Mar:2006
    Location:
    Posts: 759
    " " - "" , ' ' Microsoft- compiler , user-a ( ) , . Reference Manual-a - ' . linked lists ' , @ ! - , auto cast dereferenced , compiler-a "" ?

  4. #4
    Registered User vegasis's Avatar
    Join Date: Jun:2005
    Location:
    Posts: 1,156
    Quote Originally Posted by haste View Post
    ""
    .
    http://www.cplusplus.com/doc/tutorial/pointers.html

  5. #5
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    C/C++ void* ( ) , , . C void* , C++ .

    , , .
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  6. #6
    Registered User
    Join Date: Dec:2007
    Location:
    Posts: 655
    Quote Originally Posted by icaci View Post
    C void*
    , "ANSI" void * , ( "gcc", , - "-ansi -pedantic -Wall -W").
    Last edited by AK-85; 17th May 2008 at 18:08.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |