A9VG电玩部落论坛

 找回密码
 注册
搜索
查看: 4310|回复: 31

有会编程的童鞋么,请教一个问题.可能是关于IntelliSense的?

[复制链接]

审判者

一賤你就笑

精华
0
帖子
11365
威望
0 点
积分
15620 点
种子
0 点
注册时间
2005-10-26
最后登录
2021-12-20
 楼主| 发表于 2012-7-15 08:48  ·  上海 | 显示全部楼层 |阅读模式
本帖最后由 坚强の牛奶糖 于 2012-7-15 08:48 编辑

这段东西可能是在讲关于IntelliSense的,我都做了翻译,但做到最后那段处卡主了,不知道该如何理解:

[C++]  
•        -> (pointer to member)for a pointer to an object instance.对象实例
•        ->(成员指针)表示一个指向对象实例的指针
•        :: (scope resolution operator) 范围解析操作符for a class, structure, union or namespace.
•        :: (范围解析操作符)表示一个类、结构体或命名空间
1.        To insert the selected member in your code, do one of the following:  
以下任一方法都可将选定成员插入到你的代码之中:

这里开始不理解它在说什么东西:
Type the character that will follow the member, such as open parenthesis, comma, space, semicolon, or others, to insert the selected member followed by the character that you have just typed. This works for any nonidentifier character.

求教,多谢.

附上原地址是 http://msdn.microsoft.com/en-us/library/exbffbc2(v=vs.71).aspx

审判者

一賤你就笑

精华
0
帖子
11365
威望
0 点
积分
15620 点
种子
0 点
注册时间
2005-10-26
最后登录
2021-12-20
 楼主| 发表于 2012-7-15 09:01  ·  上海 | 显示全部楼层
... 在如开括号,逗号,空格,分号,等等之后插入选定对象... 你刚才键入的字符插入选定的成员。
感觉怪怪的.

求败者

猎人生涯冬眠中

精华
1
帖子
26293
威望
1 点
积分
27340 点
种子
5 点
注册时间
2005-4-12
最后登录
2022-11-11
发表于 2012-7-15 09:13  ·  河北 | 显示全部楼层
首先说的不对不要见怪
这个挺好理解吧?
没有用过VS之类的编程工具吧
举个例子 比如说有个类,你new了之后,对象名后边输入指定字符之后就会出现选项可以选择属于这个对象的各种成员
是这个意思吧
不过你说的这些符号有的貌似不是呀???

审判者

一賤你就笑

精华
0
帖子
11365
威望
0 点
积分
15620 点
种子
0 点
注册时间
2005-10-26
最后登录
2021-12-20
 楼主| 发表于 2012-7-15 09:16  ·  上海 | 显示全部楼层
来的好 小刀就等你啦
你看这里http://msdn.microsoft.com/en-us/library/exbffbc2(v=vs.71).aspx
唔不懂程序设计 就是要理解这段文字而已.

你说的唔有点懂了,还没全理解.

哪里翻译的不对?

审判者

一賤你就笑

精华
0
帖子
11365
威望
0 点
积分
15620 点
种子
0 点
注册时间
2005-10-26
最后登录
2021-12-20
 楼主| 发表于 2012-7-15 09:19  ·  上海 | 显示全部楼层
唔主要是要翻段东西给人家看,但是编程不是我的菜,小刀你大致看看我弄的有大问题么:


To use the List Members option
1.        Begin typing the name of your object, and then type ALT+RIGHT ARROW to use Complete Word, which will display the members list box if what you have typed has more than one possible match or no match at all.
首先输入你的对象名,然后按ALT+右箭头调出Complete Word,从它的成员列表当中可以查看你所输入的内容是否拥有多个匹配或没有匹配。
IntelliSense displays all valid members in a scrollable list滚动列表. For example, you can scroll滚动or use the arrow keys to navigate through the list, or, if you know the first few letters of the member name, begin typing to jump directly to the member in the list.
所有有效成员都会出现在IntelliSense (智能提示)的滚动列表之中。你可以下拉或使用方向键进行浏览,假设你知道成员名称的前几个字母的话,那么将它们直接键入可迅速找到该成员。
After the name of a class or structure, type the scope operator:
在类名或结构体名之后键入域操作符:
        . (period) for an object instance.
        .(句号)表示一个对象实例
[C++]
•        -> (pointer to member)for a pointer to an object instance.对象实例
•        ->(成员指针)表示一个指向对象实例的指针
•        :: (scope resolution operator) 范围解析操作符for a class, structure, union or namespace.
•        :: (范围解析操作符)表示一个类、结构体或命名空间
1.        To insert the selected member in your code, do one of the following:
以下任一方法都可将选定成员插入到你的代码之中:

        Type the character that will follow the member, such as open parenthesis, comma, space, semicolon, or others, to insert the selected member followed by the character that you have just typed. This works for any nonidentifier character.
       
        or-
        Press TAB, CTRL+ENTER, ENTER, or double-click to insert just the member. If no item is selected in the drop-down menu下拉式菜单, ENTER inserts a blank new line. CTRL-ENTER will insert the item that has the focus box even if it is not selected.
        按TAB, CTRL+ENTER, ENTER,或双击插入该成员。若在没有选中下拉菜单中任何对象的情况下按ENTER键,则会插入一空白行。按CTRL-ENTER则会插入一带有焦点框的对象,即使它没有被选中。
2.        Press ESC at any time to close the Members list.
任意时刻按下ESC可关闭成员列表。
When you select an item from the Members list, but before you insert it, you will get Quick Info on the item and any code comments for the item. See Supplying Code Comments for more information.
To turn List Members off by default, clear Auto list members from the General property page for the desired language. See Modifying IntelliSense Options for more information.
The List Members display may be have many entries. You can go to the first element of the list or to the last element by using CTRL-Page Up and CTRL-Page Down while in the List Members display.

审判者

一賤你就笑

精华
0
帖子
11365
威望
0 点
积分
15620 点
种子
0 点
注册时间
2005-10-26
最后登录
2021-12-20
 楼主| 发表于 2012-7-15 09:19  ·  上海 | 显示全部楼层
E文地下没中文的就是还没翻出来.  因为不理解它在说什么东西.

求败者

猎人生涯冬眠中

精华
1
帖子
26293
威望
1 点
积分
27340 点
种子
5 点
注册时间
2005-4-12
最后登录
2022-11-11
发表于 2012-7-15 09:22  ·  河北 | 显示全部楼层
坚强の牛奶糖 发表于 2012-7-15 09:16
来的好 小刀就等你啦
你看这里http://msdn.microsoft.com/en-us/library/exbffbc2(v=vs.71).aspx
唔不懂程 ...

看了眼,好像就是叫你怎么使用VS的吧
VS你肯定知道的
貌似就是简单介绍了下功能而已
这个说我可能说的不太清楚

你没编过程的话
这么理解:就好像你要设计一辆汽车,你输入汽车,按下空格就会出来个下拉框,让你选择这个汽车的属性,神马 轮子的种类的啦,发动机的型号啦,驱动方式啦,这样
能理解吗??

审判者

一賤你就笑

精华
0
帖子
11365
威望
0 点
积分
15620 点
种子
0 点
注册时间
2005-10-26
最后登录
2021-12-20
 楼主| 发表于 2012-7-15 09:22  ·  上海 | 显示全部楼层
雷斩刀 发表于 2012-7-15 09:13
首先说的不对不要见怪
这个挺好理解吧?
没有用过VS之类的编程工具吧

一个个来

先看        Type the character that will follow the member

什么意思?

求败者

猎人生涯冬眠中

精华
1
帖子
26293
威望
1 点
积分
27340 点
种子
5 点
注册时间
2005-4-12
最后登录
2022-11-11
发表于 2012-7-15 09:24  ·  河北 | 显示全部楼层
本帖最后由 雷斩刀 于 2012-7-15 09:25 编辑
坚强の牛奶糖 发表于 2012-7-15 09:19
唔主要是要翻段东西给人家看,但是编程不是我的菜,小刀你大致看看我弄的有大问题么:


前面应该没问题,后面最后几句那个Ctrl+Enter我还真么试过囧
应该没什么问题吧
我英语也是半瓶子醋而已

要不然你稍等,我在VS里确认下看看功能建对不对

话说MSDN有中文版的吧??

审判者

一賤你就笑

精华
0
帖子
11365
威望
0 点
积分
15620 点
种子
0 点
注册时间
2005-10-26
最后登录
2021-12-20
 楼主| 发表于 2012-7-15 09:25  ·  上海 | 显示全部楼层
这里的member是指一个成员对象是么?

这半句话就是意思是 “在某个成员对象之后输入某个字符" ?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|A9VG电玩部落 川公网安备 51019002005286号

GMT+8, 2025-9-25 14:00 , Processed in 0.198129 second(s), 13 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部