C++????巶????
???????????? ???????[ 2015/3/19 14:15:11 ] ????????C++ ??????? ???? ????
???????????
template <class A?? int Asize>
class Arraymy{
public:
A PrintArry(){
for (int i=0 ; i<Asize; i++ )
{
cout<<"value ="<<myarry[i]<<endl;
ret=myarry[i];
}
return ret;
}
A IniArry(){
for (int i=0 ; i<Asize; i++ )
{ cout<<"input:"<<endl;
cin>>myarry[i];
ret=myarry[i];
}
return ret;
}
private:
A myarry[Asize];
A ret;
};
??????????????
int main(void){
//template 1:
compare < int > cmp(4??6);
int a=cmp.max();
int b=cmp.min();
cout<<"max = "<<a<<endl;
cout<<"min = "<<b<<endl;
//template 2:
outmy< int?? double > myo(6??5.5);
int c = myo.Big();
double d = myo.Comfux();
//template 3:
Arraymy< int?? 5 > mya;
a=mya.IniArry();
b=mya.PrintArry();
getchar();//getchar???????console???
getchar();//getchar???????console???
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 ??????