C/C++????????????
???????????? ???????[ 2014/11/13 13:49:30 ] ????????C++ ???? ???????
????#line???
????????#line???_LINE_??_FILE_????????????????????????????????????
???????????#line number [ filename ]??????????????????к?????????
#include<iostream>
using namespace std;
#line 100 "a.cpp"
int main()
{
cout<<__LINE__<<' '<<__FILE__<<endl;
system("pause");
return 0;
}
???????н????
??????????????
?????????е??????????У?#Pragma ??????????????????????????趨????????????????????????????Щ??????????#pragma???????????????????????????????????C??C++????????????????£??????????????????е?????????????壬????????????????????е?????????????????????????
????????????: #pragma Para??????Para ???????
????message ??????????????????????????????????
????#pragma message("??????")
????code_seg?????????ó????к?????????????Σ?????????????????????????????
????#pragma code_seg(["section-name"[??"section-class"]])
????#pragma once??
?????????????????????????????????????????????Σ???????????д?????????????????C++?е???塣
????#pragma hdrstop??????????????????????????????????????????
????#pragma resource??
????#pragma resource "winform.dfm"
?????????winform.dfm????е???????????winform.dfm?а?????????????塣
????#pragma warning??????????????
??????????????3???
int main()
{
float f=3.6;
int i=f;
cout<<i<<endl;
system("pause");
return 0;
}
?????????????????????
????1>ClCompile:
????1>f.cpp
????1>c:usersgaohongchendesktop4555f.cpp(12): warning C4305: “?????”: ??“double”??“float”???
????1>c:usersgaohongchendesktop4555f.cpp(13): warning C4244: “?????”: ??“float”?????“int”????????????
??????????????????????
????#pragma warning(disable:4305)
???????????????????????
????1>ClCompile:
????1>f.cpp
????1>c:usersgaohongchendesktop4555f.cpp(13): warning C4244: “?????”: ??“float”?????“int”????????????
??????????????????????
????#pragma warning(error:4244)
????????????????????????
????1>ClCompile:
????1>f.cpp
????1>c:usersgaohongchendesktop4555f.cpp(12): warning C4305: “?????”: ??“double”??“float”???
????1>c:usersgaohongchendesktop4555f.cpp(13): error C4244: “?????”: ??“float”?????“int”????????????
????#pragma comment???????????????????????????????????????С?
?????????lib????????????????????????????????磺
????#pragma comment(lib??"wsock32.lib")
????#pragma disable??????????????????????????Ч???ú??????ù????н???????ж???????C51????y??
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11