为什么要使用'*'标记? [英] Why use the '*' marker?
本文介绍了为什么要使用'*'标记?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨;
我想知道,
int * a; $ p有什么区别$ p>和 int a;
?
为什么要使用''*''标记?
感谢您的帮助和回答...
解决方案
这应该解释一下通过:
http://www.cplusplus.com/doc/tutorial/pointers / #declaring_pointers [ ^ ]
第一个就像一个指向一个方向的路牌,告诉你莫斯科就是7843英里。
第二是莫斯科。 ;-)
PS:如果您需要有关C / C ++变量声明的更多帮助,请尝试以下链接:
http://cdecl.ridiculousfish.com/?q=int%2A+a%3B [<一个href =http://cdecl.ridiculousfish.com/?q=int%2A+a%3B\"target =_ blanktitle =新窗口> ^ ]
指针是 C
编程语言的基本功能之一。它们应该成为 DNA
的一部分,就像能够 Google for [ ^ ]。
Hi;
I wonder, What is difference to
int* a;
and
int a;
?
Why use the ''*'' marker?
Thanks for helps and answer...
解决方案 This should explain thing throughly:
http://www.cplusplus.com/doc/tutorial/pointers/#declaring_pointers[^]
The first is like a street sign pointing in one direction, and telling you Moscow is 7843 miles that way.
The second is Moscow. ;-)
P.S.: If you need any more help regarding C/C++ variable declarations, try this link:
http://cdecl.ridiculousfish.com/?q=int%2A+a%3B[^]
Pointers are one of the basic features of the C
programming language. They should become part of your DNA
, like being able to Google for[^].
这篇关于为什么要使用'*'标记?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文