摘要: //链表的创建并输出#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>struct student{ char name[20]; int num; struct student* pnext;};int count; 阅读全文
posted @ 2019-12-18 19:19 哈哈,呵呵,嘿嘿 阅读(159) 评论(0) 推荐(0)
摘要: //包含结构体的结构#include<stdlib.h>#include<stdio.h>struct date{ int year; int month; int day;};struct student{ char name[20]; int num; char sex; struct date 阅读全文
posted @ 2019-12-16 19:28 哈哈,呵呵,嘿嘿 阅读(223) 评论(0) 推荐(0)
摘要: //定义一个标识符位max的函数#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>int MAX(int a, int b){ if (a > b){ return a; } else return b;}int ma 阅读全文
posted @ 2019-12-11 21:41 哈哈,呵呵,嘿嘿 阅读(312) 评论(0) 推荐(0)
摘要: //找数组的最大值和最小值,将数组转换#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>int main(){ int arr [2][3]; int arr2[3][2]; int max, min; int i, 阅读全文
posted @ 2019-12-08 19:26 哈哈,呵呵,嘿嘿 阅读(277) 评论(0) 推荐(0)
摘要: #define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>int main(){ int a; int b; int tmp; int i; printf("input a and b:"); scanf("%d%d", &a 阅读全文
posted @ 2019-12-07 18:56 哈哈,呵呵,嘿嘿 阅读(192) 评论(0) 推荐(0)
摘要: #define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>#include<time.h>#define MAX_ROW 9#define MAX_COL 9#define MAX_COUNT 10int Menu(){//打 阅读全文
posted @ 2019-12-06 15:17 哈哈,呵呵,嘿嘿 阅读(228) 评论(0) 推荐(0)
摘要: #include<stdlib.h>//两个int(32位)整数m和n的二进制表达中,有多少个位(bit)不同?#include<stdio.h>int main(){ int a = 1999; int b = 2299; int i; int count = 0; for (i = 0; i < 阅读全文
posted @ 2019-12-06 15:12 哈哈,呵呵,嘿嘿 阅读(190) 评论(0) 推荐(0)
摘要: 在计算机科学中,指针式编程语言中的一个对象,利用地址,他的值是直接指向存在电脑存储器的另一个地方的的值。可以通过地址找到所需要的变量单元,可以说,地址指向该变量单元。将地址形象化的称为指针。指针其实是一组类型的统称。。指针也是一个变量,存放着单元地址。 在出本的认识中我学习到了指针和计算机的内存有着 阅读全文
posted @ 2019-12-06 15:06 哈哈,呵呵,嘿嘿 阅读(210) 评论(0) 推荐(0)
摘要: //关系运算符与关系表达式//>大于 ,>=大于等于,<小于//<=小于等于,==等于,!=不等于#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ int english; int chinese; printf("input e 阅读全文
posted @ 2019-12-05 14:54 哈哈,呵呵,嘿嘿 阅读(139) 评论(0) 推荐(0)
摘要: #include<stdio.h>struct student{//利用指针变量输出结构体数组 int num; char *name; char sex; float score;}stu[3] = { { 101, "zhao lei", 'M', 45 }, { 102, "sun hui", 阅读全文
posted @ 2019-12-03 20:35 哈哈,呵呵,嘿嘿 阅读(546) 评论(0) 推荐(0)