![](images/graphics/blank.gif)
Pointer in c
-
Definition of delegate • Class package some signature methods • Using in event-handling model of C# • Like C/C++ method pointers, but more specific – Type safe – Object- oriented mechanism • Delegates are classes – Can create instances of delegates – Delegates can refer one or more methods
0p
trantam2010
26-12-2012
56
4
Download
-
BK TP.HCM Ho Chi Minh City University of Technology Faculty of Computer Science and Engineering BK TP.HCM Data Structures and Algorithms – C++ Implementation Huỳnh T n t Email: htdat@cse.hcmut.edu.vn Home Page: http://www.cse.hcmut.edu.vn/~htdat/ .Pointer in C++ Declaration Node *ptr; Create an object ptr = new Node(); A pointer usage printf(“Data in node: %d”, ptr-data); Destroy an object delete ptr; NULL pointer ptr = NULL; ??? ptr ptr ??? ptr ptr Faculty of Computer Science and Engineering – HCMUT Slide 2 .
53p
unknownno30
14-11-2012
108
18
Download
-
Dr. John P. Abraham, Professor Until now we have talked about variables that hold values of differing data types. For example: int x =20; The memory location referenced by x has a value of 20. float y=21.22; The memory location referenced by y has a value of 21.22. In early chapters we discussed that a variable name is an alias for a memory address. What if we wanted to know the address of the memory location where the inter variable x that has a value of 20 is stored? We can use the address operator &x to do that....
5p
linhtk93
15-04-2013
56
2
Download
CHỦ ĐỀ BẠN MUỐN TÌM
![](images/graphics/blank.gif)