STL?г????C++??
???????????? ???????[ 2015/11/6 11:22:23 ] ????????.NET ???????????
????????????????????class???????????????????????????
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
template <typename T>
class testClass
{
public:
static const int a = 5;
static const long b = 3L;
static const char c = 'c';
static const double d = 100.1;
};
int main()
{
cout << testClass<int>::a << endl;
cout << testClass<int>::b << endl;
cout << testClass<int>::c << endl;
//????????????????????????趨?????????????????в????????????
cout << testClass<int>::d << endl;
system("pause");
return 0;
}
increment??++?????????????????????dereference??*?????
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class INT
{
friend ostream& operator<<(ostream& os?? const INT& i);
public:
INT(int i) :m_i(i) {};
//??????????
INT& operator++()
{
++(this->m_i);
return *this;
}
//????????????
const INT operator++(int)
{
INT temp = *this;
++(this->m_i);
return temp;
}
//??
int& operator*() const
{
return (int&)m_i;
//??????????????????int&????????e???const int?????????趨??
//return m_i;
}
private:
int m_i;
};
ostream& operator<<(ostream& os?? const INT& i)
{
os << '[' << i.m_i << ']' << endl;
return os;
}
int main()
{
INT I(5);
cout << I++;
cout << ++I;
cout << *I;
system("pause");
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 ??????