g*e
2 楼
我没怎么写过大程序,
经常看到别人的代码里有很多下划线带头的记号,然后跟着变量定义什么的,求问这是
什么意思?
比如这个_in _out ___inout
SOCKET accept(
__in SOCKET s,
__out struct sockaddr *addr,
__inout int *addrlen
);
经常看到别人的代码里有很多下划线带头的记号,然后跟着变量定义什么的,求问这是
什么意思?
比如这个_in _out ___inout
SOCKET accept(
__in SOCKET s,
__out struct sockaddr *addr,
__inout int *addrlen
);
h*a
3 楼
一Cape, 二楼只有1br.想用 wall 隔成2-3 bedroom. 想改record. 所以得申请permit,
这种那里申请, 多少钱?
这种那里申请, 多少钱?
i*e
4 楼
還沒買,打算入一個便宜一點的二手Synology,比如211j 2-bay,不包括硬盤
一百多塊錢。希望所有數據在兩個硬盤互相備份,這個型號支持RAID吧?RAID怎麽
設比較好捏?是不是RAID 1?
一百多塊錢。希望所有數據在兩個硬盤互相備份,這個型號支持RAID吧?RAID怎麽
設比較好捏?是不是RAID 1?
l*s
5 楼
zojirushi
J*9
6 楼
no special meaning. you can use _ anywhere in a variable:
common use:
1) easier reading: data_type instead of datatype
2) typedef struct _my_struct_ {
int a;
int b;
} My_Struct;
3) #ifdef _FILE_HEAD_H_
common use:
1) easier reading: data_type instead of datatype
2) typedef struct _my_struct_ {
int a;
int b;
} My_Struct;
3) #ifdef _FILE_HEAD_H_
c*n
8 楼
2bay你不raid 1 难道还raid 0啊亲。。。。
d*2
10 楼
然后没有master bedroom?
j*j
12 楼
"_"好像表示和汇编有关系的,具体怎么说的,记不太清了,好像是能可在汇编中执行还是
啥的...
啥的...
z*e
13 楼
大牛说搞raid是折腾自己
J*9
14 楼
Sorry. did not read your example carefully.
In the following example
SOCKET accept(
__in SOCKET s,
__out struct sockaddr *addr,
__inout int *addrlen
);
__in: pass by value or read only
__out: write only
__inout: R/W
I bet this is just for better codes reading.
somewhere, there must be something like this
#define __in
#define __out
#define __inout
compiler will throw them away, but this is very friendly for codes readers.
【在 g*********e 的大作中提到】
:
: 你这里是变量名里加_
: 但我看到的代码里是 先来一个 _aaa 然后再定义变量啊 难道这个_aaa也是变量?
In the following example
SOCKET accept(
__in SOCKET s,
__out struct sockaddr *addr,
__inout int *addrlen
);
__in: pass by value or read only
__out: write only
__inout: R/W
I bet this is just for better codes reading.
somewhere, there must be something like this
#define __in
#define __out
#define __inout
compiler will throw them away, but this is very friendly for codes readers.
【在 g*********e 的大作中提到】
:
: 你这里是变量名里加_
: 但我看到的代码里是 先来一个 _aaa 然后再定义变量啊 难道这个_aaa也是变量?
n*5
20 楼
in some convention, it means private variable.
public Class A {
private String _state;
}
public Class A {
private String _state;
}
相关阅读
PBO已经在新蛋上停售了想搞个旧的dell ultrashap 2407wfp给LD做2nd monitor,这个有什么不好么?请问知道怎么给笔记本电脑BIOS放电吗?问个pogoplug 装mldonkey的问题HP 8560w和Dell M4600二选一04年的T42终于坏了Newegg business- $50 off $250 又来了sata connectors连接功放和扬声器的线需要插头吗?笔记本休眠情况下背来背去,是不是容易让硬盘坏?OCZ 240GB $200 AMIR求推荐一个ultra slim 的 laptop (转载)x201 内存升级求助为什么我的网卡只有100MB的选项?帮忙看看买那一个, 谢谢wrt54gl 有必要升级到 e3000吗电脑起不来了windows7怎么远程关机?usb 3.0接口的U盘有没有必要现在还有好用的免费 dynamic DNS 吗