C/C++????????????
???????????? ???????[ 2014/11/13 13:49:30 ] ????????C++ ???? ???????
???????????????????????????????????????????????飬????????????顣??????????????“#”?????
???????????????????????
???????壺#define
?????????????#include
????????????#if??#elif??#ifndef??#ifdef??#endif??#undef
??????????????#error
????#line???
????????????#pragma
????????
??????????????????????滻?????“??”?????滻????滻????????????????????????????????????????????????塣???????????壬???????????????????п??
???????岻??????棬?????????????檔
??????????????????????????????????????????????????楨????????????????????????
??????????????е?#??????????????????????????????????????????÷???#????????????????????磺
#include<iostream>
using namespace std;
#define STR(n)"abcd"#n
int main()
{
cout<<STR(6)<<endl;
system("pause");
return 0;
}
?????????????
????##???????????????????????????????????##????????????????????????磺
#include<iostream>
using namespace std;
#define STR(a??b??c) a##b##c
int main()
{
cout<<STR(1??2??3)<<endl;
system("pause");
return 0;
}
?????????????
???????????
????#include<?????>??????????????????????????????#include"?????"???????????????·??????????????????????????
??????????#include<iostream.h>??#include<iostream>????????iostream.h??C?????????(??)????????汾????????????????????iostream?C++?????????????????????????????
??????????????е?????????????????????????????
????????????
??????????????????????????С????????????
????#undef????????????????????壬 ???????????#undef ???滻??
??????????????
????#error???????????????????????????????????????????????#error??????????????????: #error ?????????
#ifndef __cplusplus
#error this is not a C++ complier.
#endif
#include<iostream>
using namespace std;
int main()
{
system("pause");
return 0;
}
??????
???·???
??????????????????
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