今天在做ACM题目的时候,遇到了这么一个问题,还真别说,这个以前真的没用过,当时就傻掉了,还好这个世界有Google,通过搜索了解了输出这种格式的C语言实现方法。但是没有找到C++的实现方法,希望知道的人留个言告诉下撒!

 

[cpp] view plaincopy
 
  1. #include<stdio.h>  
  2. void main()  
  3. {  
  4.  int num;  
  5.  printf("Please input a number: ");  
  6.  scanf("%d",&num);  
  7.  printf("%08d\n",num);  
  8. }  

相关文章:

  • 2022-12-23
  • 2021-11-25
  • 2021-06-20
  • 2021-08-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案