English 中文(简体)
C++:Asterisks, Ampersand and Star?
原标题:C++: Asterisks, Ampersand and Star?
最佳回答

在<代码>float后,<代码>*>改为“。 通常在提及点字时,人们会说“星号”是“点人”,例如,“小点回去是空洞”。 我从未听到有人使用“星号”来指某种类型。

http://www.un.org/Depts/dpa/dpa/index_html。 同样,根据我的经验,我从未听到任何人在这里使用“星号”。 人们倾向于说“参考”来描述所开展行动。

我只字不提。 这里有两种不同的情况,正如你正确指出的,只要你理解从C++角度来看他们意味着什么,那就算是罚款。

问题回答
float f = *(float*)&i;

本案留有* ,右边有不同。 留任* 意味着通过提及获得价值。 权利

它是星号吗?

是:Shift+8,MY 窗口键盘。 你的榜样表明,你为什么要尝试用文号读C++方案。 C++中的“数量”是指转让。 此外,他还想告诉父母和半殖民地。 此时此刻(4起单行的错误),他可以无声地写大坝。

如果 du读这一部分的话,会更好:

float f = *(float*)&i;

与此类似:

"Take pointer to i, C-style cast it into pointer to float, dereference, and assign value to float variable f". Makes much more sense that "star/asterisk" gibberish.

P.S. 如果你真的热爱前言,你可以尝试读出任何使用助推力、流体、操作器和带的法典;加固语、双向操作和“卡梅尔案”来区分班级和方法。 这种做法当然不会提高你的方案拟订技能。

我认为,在宣读守则时,在场的人只是想避免 silence默。 我知道,在这方面,星号与星号之间没有任何区别。

纸面

和amp; category = ref() :这意味着我不想重复这种伪称的新名称。

页: 1

* 类型=储存地址(点变量)





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签