摘要: 1 #include 2 using namespace std; 3 4 5 int main() 6 { 7 int i=0,&r=i; 8 auto a=r; 9 10 const int ci=i,&cr=ci;... 阅读全文
posted @ 2015-04-13 19:09 无敌烤皮蛋 阅读(96) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 4 int main() 5 { 6 int *p,val=24; 7 p=&val; 8 cout<<*p<<endl; 9 *p=42;10 cout<<val<<endl;11... 阅读全文
posted @ 2015-04-12 19:26 无敌烤皮蛋 阅读(74) 评论(0) 推荐(0)
摘要: 1 #include 2 3 int main()4 {5 std::cout<<'\x32'<<'\x4D'<<'\n'<<std::endl;6 std::cout<<'\x32'<<'\t'<<'\x4D'<<'\n'<<std::endl;7 return 0;8 } 阅读全文
posted @ 2015-04-11 11:54 无敌烤皮蛋 阅读(68) 评论(0) 推荐(0)
摘要: 1 #include 2 #include "Sales_item.h" 3 using namespace std; 4 5 int main() 6 { 7 Sales_item total; 8 if(cin>>total){ 9 Sale... 阅读全文
posted @ 2015-04-11 10:49 无敌烤皮蛋 阅读(101) 评论(0) 推荐(0)