~$ 存档

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

#答案:http://www.cnblogs.com/tinaluo/articles/6288355.html

1 编写程序:double a=2.3434555667788,设置精度为10位并输出
C++中float类型的精度为________位,double类型的精度为________位
3 unsigned a=-1,cout<<a,结果为________
4
char a=-1;
int b=a;
cout<<b;//b=______
5 如何返回unsigned int的最大值(编译器定义的)(#limits)?
答案: cout<<numeric_limits<unsigned>::max(); 
6 char *p="luotian",如何输出该字符串的首地址.#C++操作
答案:
char *p="luotian"; 
cout<<static_cast<void *>(p);
   
   
   
   
   
   
   
   
   
   
   
   
   
   
posted on 2017-01-16 02:34  LuoTian  阅读(163)  评论(0)    收藏  举报