C/C++????????
???????????? ???????[ 2015/12/25 10:44:52 ] ??????????????????? .NET
???????????????
?????????ó?????????????????????????
#include <iostream>
#include <string>
using namespace std;
typedef void (*FP)(char* s);
void f1(char* s){cout<<s;}
void f2(char* s){cout<<s;}
void f3(char* s){cout<<s;}
int main(int argc??char* argv[])
{
void* a[]={f1??f2??f3}; //????????????飬????a???????????
a[0]("Hello World! "); //?????????????鯔?????±?????????ú???
FP f[]={f1??f2??f3}; //??????????????????飬?????f????????????
f[0]("Hello World! "); //?????????????????????±??????????к??????????
return 0;
}
???????????
??????1?????????????????????壬?????????????????????????????????????????????????????????????????????????????????????????У?????????????????????????????????????????????????????????????????????????????????????????????????????ν???????????????????????????????????????????????????
??????2?????Hello World????
????int main(int argc??char* argv[])
????{
????printf("Hello World! ");
????return 0;
????}
???????????????????????
//??????????
void PrintfText()
{
printf("Hello World! ");
}
//???????????????"???ú???"
void CallPrintfText(void (*callfuct)())
{
callfuct();
}
//??main???????????????
int main(int argc??char* argv[])
{
CallPrintfText(PrintfText);
return 0;
}
??????????ε????????
//??????λ??????
void PrintfText(char* s)
{
printf(s);
}
//?????????λ????????"???ú???"
void CallPrintfText(void (*callfuct)(char*)??char* s)
{
callfuct(s);
}
//??main???????????ε???????
int main(int argc??char* argv[])
{
CallPrintfText(PrintfText??"Hello World! ");
return 0;
}
??????????????????????????????μ????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
??C++????????????C++ lvalue??rvalueC++11????????C++???????????????C++?е?????????????????C++?????????C++???Windows????λ??C/C++???????????????????JAVA??C??C++??????????c++??python???????????????????????????????C++???????C++?е????????C++????????????????C++ ???????????????C++?????????????????????C++????????????
???·???
??????????????????
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????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????