c++ 属性

- -最近非常怀念c++的属性 上网一搜结果 哎不支持,只能用c++进行扩展汗死死死
“__declspec”是Microsoft c++中专用的关键字,它配合着一些属性可以对标准C++进行扩充。这些属性有:
align、allocate、deprecated、dllexport、dllimport、 naked、noinline、noreturn、nothrow、novtable、selectany、thread、property和uuid。
Code

int main(int argc, char* argv[])
{
KeyValuePair
<int,int> c1;

c1.Old
=123;
cout
<<c1.Old;
}
posted @ 2009-07-24 10:20  苹果王子  阅读(774)  评论(1编辑  收藏  举报