摘要: #include "stdio.h"#include "malloc.h" #include "stdlib.h"#include "string.h"typedef struct{ int no; char name[10]; char sex;}Student;typedef struct No 阅读全文
posted @ 2017-03-31 14:40 Doublekai 阅读(381) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h" #define MAX_SIZE 11 #include "stdlib.h" #include "malloc.h" #include "string.h" typedef struct { int id; char name[10]; char sex; float math_score; flo... 阅读全文
posted @ 2017-03-15 19:01 Doublekai 阅读(487) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h" struct { char name[10]; long nume; char sex[6]}; char live[30]; float score; }stur; main() { printf("请输入您的名字和学号:\n"); ... 阅读全文
posted @ 2017-01-08 20:51 Doublekai 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 在这里*p和下面的*p是不同的,int *p指的是定义一个指针变量p指向a的地址。 输出*p意思是指向指针变量所指向的数据对象。 指针变量指向的是&a,数据对象是a。 阅读全文
posted @ 2016-12-27 16:20 Doublekai 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 输出结果是10并没有hello word;return将不会执行下面的语句。 阅读全文
posted @ 2016-12-09 09:34 Doublekai 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1 import java.io.*; //输入函数包 2 public class hello{ 3 public static void main(String args[]){ 4 String s=""; 5 int sum1,sum2,sum3; 6 sum1=(int)(Math.ran 阅读全文
posted @ 2016-11-22 16:50 Doublekai 阅读(1688) 评论(0) 推荐(0) 编辑
摘要: 写一些java与c语言的差别 在c语言中比较两个数的大小需要if在java中插入了很多函数,Math.max Math.min 等很多数学函数。 阅读全文
posted @ 2016-11-21 23:00 Doublekai 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 安徽机电职业技术学院实验报告 实验四 分支程序设计(if语句) 班级 软件3161 日期 2016.11.3 备注 学号 1103163004 姓名 王凯 成绩 1.(1)从键盘任意输入四个int类型的整数,要求将其中的最大数输出。 #include "stdio.h" main() { int a 阅读全文
posted @ 2016-11-09 20:26 Doublekai 阅读(444) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h" #include "math.h" main() { int a; float meet,b; printf("请输入车型!\n1.大众\n2.奇瑞\n3.捷达\n"); scanf("%d",&a); system("cls"); printf("请输入公里数!"); scanf("%f",&meet... 阅读全文
posted @ 2016-10-30 11:05 Doublekai 阅读(346) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h" #include "stdlib.h" #include "time.h" main() { int a,b,c,x,d,f=0,g=0; srand((unsigned)time(NULL)); a=rand()%1000+1; b=rand()%1000+1; printf("请选择... 阅读全文
posted @ 2016-10-30 11:01 Doublekai 阅读(283) 评论(0) 推荐(0) 编辑