- 博客(3)
- 收藏
- 关注
原创 c++ trap: the character array & string
#include #include int main(){ using namespace std; char charr1[20]; char charr2[20] = "jaguar"; string str1; string str2 = "panther"; cout cin >> charr1;
2013-09-30 21:09:53 665
原创 C++ Knowledge: The separate type for address
#include int main(){ using namespace std; int hand[4] = {1,2,3,4}; int things[] = {1,5,3,8}; int i, num = sizeof(things) / sizeof(int); cout cout cout
2013-09-29 22:01:45 355
原创 the trap: c++'s array
#include int main(){ using namespace std; int yam[3]; yam[0] = 7; yam[1] = 8; // why it can't report the warnning? when yam[3] is existed? yam[3] = 6; //
2013-09-29 21:03:17 425
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人