c指针和引用的使用浅谈.docxVIP

  • 3
  • 0
  • 约5.86千字
  • 约 11页
  • 2019-06-11 发布于广东
  • 举报
C++指针和引用的使用浅谈 The essence and soul of C lan guage is 〃po in ter, but it is easier to make mistakes when using it. C++ introduces the concept of reference〃? Many people don,t understand the difference between them. I will give some examples of programming and explain the differences between them in the light of my own experienee. A. Common variable storage Before we introduce pointers, lets look at the way ordinary variables are stored in the system? See the following procedure? Void main (void) Int ia = 12; Int IB = 45; Lout ia: ia , la: , ia , endl ; Cout 〃ib:〃〃ib〃, 〃Ib:〃, 〃IB〃, 〃endl〃; Retu

文档评论(0)

1亿VIP精品文档

相关文档