Senior stupid programmer Pointer

xiaoxiao2021-03-06  41

Various manufacturers have become more intelligent in tools, and the language is getting more efficient. Many people are happy to learn, but for the foundation ... Anyway, I will say: I will j2ee, I will .Net ... So, I will use EJB for half a year later, I will use EJB's brother. #include ..... usingspace std; int main () {do_something (); ... int a = 10; int * ap; // He ask What's the meaning? The Pointer Should be as: int * AP // In fact, they are the same, the big students also know int b = 11; int * bp; * bp = b; // oh my God! a unini pointer !!! ...} He understood, so I wrote this code INT * a, b; a = & la; b = & lb; // oh MH! In fact, you declare a pointer A and an int type B as pointing to point directions. INT type pointer's pointer ... I see, don't tell him! Otherwise, you will explode. So for the pointer, he also likes to use - actually, the most application is in Array because the compiler needs to know the address, and you need to know the allocation of the storage space, so define a pointer pointing to the array, you can use -. The primary application of the pointer has made so many mistakes ... I see me, I have to take the following lessons. PS: The above mistake is the mixture made by my classmates, please sear up the number :) This series will continue. Next, &, quote!

转载请注明原文地址:https://www.9cbs.com/read-119038.html

New Post(0)