虫虫首页|资源下载|资源专辑|精品软件
登录|注册

struct

struct即结构体,亦被直接称为“结构”。实际编程时,经常需要用相关的不同类型的数据来描述一个数据对象。例如,描述学生的综合信息时,需要使用学生的学号、姓名、性别、成绩以及家庭住址等不同类型的数据。但是,用相关的不同类型的数据来描述一个数据对象会使编程极为不便。因此,C语言提供了一种称为结构体(struct)的数据类型,以描述需要不同类型数据的数据对象[1]。
  • 学生成绩查询系统

    学生成绩查询系统,运用结构体,struct ,sort ,Clrscr(),textcolor()函数,用for()循环语句,switch和ifelse作为条件测试语句。 程序实现了学生成绩查询功能,有20个我们班学生的数据信息,每个包含: 学号 — num [10](字符串)、姓名(拼音)— name[25](字符串)、 性别 — sex(字符,M或W)、年龄 — age(整型)、 三门课程成绩(高数、英语、计算机)— score [3 ](单精度)。设计一个系统: 定义及输出。用结构体类型数据及其赋初值的方法把学生的数据送到结构体数组中(第一个数据用自己的真实数据,其它数据自定,但注意要是合法数据),然后把它们输出显示;计算并排序。计算每个学生三门课程的总分(sum,单精度)及平均分(aver,单精度,输出一位小数),还有他们成绩的排名,将包括所有数据的结构体数组元素按总分从大到小的顺序排序打印出来; 运行程序,进入主界面!可输入1—输出所有学生的成绩,输入2—计算和排列学生的成绩,输入3—查询学生个人成绩,输入4—退出查询。 在进行学生个人成绩个人查询可以实现多次查询——进入学生个人查询,输入1回车实现多次查询。 运行环境为TURBOC ,WINDOWSXP。

    标签: 成绩查询系统

    上传时间: 2013-12-31

    上传用户:cx111111

  • 密码学界牛人Victor Shoup用C++编写数论类库。 NTL is a high-performance, portable C++ library providing data struct

    密码学界牛人Victor Shoup用C++编写数论类库。 NTL is a high-performance, portable C++ library providing data structures and algorithms for arbitrary length integers for vectors, matrices, and polynomials over the integers and over finite fields and for arbitrary precision floating point arithmetic. NTL provides high quality implementations of state-of-the-art algorithms for: * arbitrary length integer arithmetic and arbitrary precision floating point arithmetic * polynomial arithmetic over the integers and finite fields including basic arithmetic, polynomial factorization, irreducibility testing, computation of minimal polynomials, traces, norms, and more * lattice basis reduction, including very robust and fast implementations of Schnorr-Euchner, block Korkin-Zolotarev reduction, and the new Schnorr-Horner pruning heuristic for block Korkin-Zolotarev * basic linear algebra over the integers, finite fields, and arbitrary precision floating point numbers.

    标签: high-performance providing portable library

    上传时间: 2014-01-04

    上传用户:exxxds

  • 综合2叉树及B+树优点的能根据增删改而分裂或合并的完整程序(现在以8bit(BYTE key)为关键字,可扩充到64bit的double为key,用户数据包现在以float ton表示,可扩充到任意结

    综合2叉树及B+树优点的能根据增删改而分裂或合并的完整程序(现在以8bit(BYTE key)为关键字,可扩充到64bit的double为key,用户数据包现在以float ton表示,可扩充到任意结构struct)

    标签: key double float 8bit

    上传时间: 2017-02-19

    上传用户:498732662

  • structejbmysql开发工程源码

    struct\ejb\mysql开发工程源码

    标签: structejbmysql 工程 源码

    上传时间: 2013-12-25

    上传用户:kristycreasy

  • structejbmysql工程设计文档

    struct\ejb\mysql工程设计文档

    标签: structejbmysql 工程设计 文档

    上传时间: 2017-02-27

    上传用户:123啊

  • This GUI is an updated and enhanced version of the “structBrowser” utility submitted to MatLab Centr

    This GUI is an updated and enhanced version of the “structBrowser” utility submitted to MatLab Central in May 2003. It comes with new interface and an enhanced display. It uses Microsoft TreeView control to display and explore any kind of MatLab structures. The CRC Explorestruct was designed to expose the contents of the array struct to any depth and plot any of the components. This tool is very useful for programmers using structures in their code

    标签: structBrowser submitted enhanced updated

    上传时间: 2017-03-05

    上传用户:csgcd001

  • JAVA实现的中小型企业CRM客户关系管理系统

    JAVA实现的中小型企业CRM客户关系管理系统,为struct Spring Ibatis架构实现,企业应用或者学习的好系统

    标签: JAVA CRM 管理系统

    上传时间: 2017-03-20

    上传用户:lgnf

  • 顺序栈的出栈、入栈、求栈长等基本操作 #include <stdio.h> #include <stdlib.h> #define STACKSIZE 50 typed

    顺序栈的出栈、入栈、求栈长等基本操作 #include <stdio.h> #include <stdlib.h> #define STACKSIZE 50 typedef char DateType typedef struct

    标签: include STACKSIZE define stdlib

    上传时间: 2014-01-09

    上传用户:daguda

  • 移植uip-1.0到Atmega32 1)把 uip-1.0 的所有文件加入到工程

    移植uip-1.0到Atmega32 1)把 uip-1.0 的所有文件加入到工程,包括 uip 目录的文件(除uip-split.c)、unix 目录的文件、lib 目录的文件; 2)修改 uip/uip-neighbor.c 文件的 void uip_neighbor_add(uip_ipaddr_t ipaddr, struct uip_neighbor_addr *addr) 函数,一般注释掉 printf 语句即可,或者改为你自己的串口格式化打印实现。 3)uip 目录里的源文件除 uipopt.h 外一般都无需修改;uipopt.h 包含了 uip-conf.h ,所以大部分修改可以在 uip-conf.h 里进行。 uip-conf.h 里加入如下定义,可以减少编译的警告: #define notdef 0 #define UIP_CONF_IPV6 0 #define UIP_ARCH_ADD32 0 #define UIP_ARCH_CHKSUM 0 #define UIP_NEIGHBOR_CONF_ADDRTYPE 0 4)移植工作主要是 定时器中断程序 与 网络驱动 的编写

    标签: uip 1.0 Atmega 32

    上传时间: 2013-12-20

    上传用户:csgcd001

  • client socket include <sys/types.h> include <sys/socket.h> include <stdio.h> i

    client socket include <sys/types.h> include <sys/socket.h> include <stdio.h> include <netinet/in.h> include <arpa/inet.h> include <unistd.h> int main() { int sockfd int len struct sockaddr_in address int result char ch = A sockfd = socket(AF_INET, SOCK_STREAM, 0) address.sin_family = AF_INET address.sin_addr.s_addr = inet_addr("127.0.0.1") address.sin_port = 9734 len = sizeof(address) result = connect(sockfd, (struct sockaddr *)&address, len) if(result == -1) { perror("oops: client") exit(1) } write(sockfd, &ch, 1) read(sockfd, &ch, 1) printf("char from server = c\n", ch) close(sockfd) exit(0) }

    标签: include socket sys gt

    上传时间: 2017-07-29

    上传用户:wab1981