Catherine_zhilin

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

2018年11月12日

摘要: (1)产生50个随机数 (2)按一行10个数的形式输出: 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 /* run this program using the console pauser or add your own getch, system 阅读全文
posted @ 2018-11-12 13:40 kkkshiki 阅读(169) 评论(0) 推荐(0)

摘要: 求1+2!+3!+.......+n! 代码; 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 /* run this program using the console pauser or add your own getch, system("pau 阅读全文
posted @ 2018-11-12 13:27 kkkshiki 阅读(927) 评论(0) 推荐(0)

摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 5 void main(){ 6 int i; 7 scanf("%d",&i); 8 switch(i){ 9 case 1:printf("i=%d*\n",i);break; 10 case 2:pr 阅读全文
posted @ 2018-11-12 12:44 kkkshiki 阅读(223) 评论(0) 推荐(0)

摘要: 1.void和int表示的是主函数的返回值,void返回的是空值,int返回的是一个整型数值。用的是int main,在程序结束时必须写上return 0(或者任何一个整数);而用的是void main就不需要return返回语句。 2.void main 和 int main的区别就是有无返回值在 阅读全文
posted @ 2018-11-12 12:34 kkkshiki 阅读(5334) 评论(0) 推荐(1)

摘要: 新建项目: 所需建文件如下:(参考最近一次jsf文档) 1.新建四个以.xhml后缀结尾的文件名,以及一个xml的配置文件。 2.在mybeans包中建立2个jsf受管bean:一个用于存放功能函数,一个用于将inputtext中的中文输入与读取(虽然现在读取仍然为乱码) 代码内容: 在end.xh 阅读全文
posted @ 2018-11-12 10:46 kkkshiki 阅读(286) 评论(0) 推荐(0)