C Language
文章平均质量分 50
wei_qingu
这个作者很懒,什么都没留下…
展开
-
2021-07-20
A + B Problem(大数相加)输入输入的第一行包含一个整数 T(1<=T<=20),表示测试用例的数量。然后是 T 行,每行由两个正整数 A 和 B 组成。注意整数非常大,这意味着您不应该使用 32 位整数来处理它们。您可以假设每个整数的长度不会超过 1000。输出对于每个测试用例,您应该输出两行。第一行是“Case #:”,#表示测试用例的编号。第二行是等式“A + B = Sum”,Sum 表示 A + B 的结果。注意等式中有一些空格。在两个测试用例之间输出一个空行。Sa原创 2021-07-20 11:20:27 · 553 阅读 · 0 评论 -
可文件储存学生成绩管理系统
#include <stdio.h>#include <stdlib.h>#include <string.h>//需要用到strcmp函数 #define LEN 15//姓名和学号的最大字符数 #define N 50//最大学生人数int n = 0, t = 1; //n代表当前学生人数,t用来控制整个程序的执行,以及程序的退出;//函数声明void menu();//主菜单函数void help();//使用帮助void increase原创 2021-06-18 08:02:52 · 518 阅读 · 1 评论 -
学生成绩信息管理系统
学生成绩管理系统存储结构设计设计 学生结构体 。编程要求(1) 结构体设计1----------学生信息录入2---------- 学生信息浏览3---------- 学生信息查询4---------- 学生信息删除5---------- 学生成绩统计0---------- 退出系统功能和函数设计要求任务通过函数完成各个菜单模块的功能, 要求合理设计主函数和各个子函数, 合理设计各个函数之间的调用关系。编程要求主函数:显示主菜单。如果设计并编写登陆菜单,要求合理设计登.原创 2021-06-10 20:11:01 · 477 阅读 · 1 评论 -
连续赋值运算
a+=a-=a*a(自右向左)如果int a=2;a+=a-=aa;相当于:1.a-=aa;2.a+=a;然后相当于:1.a=a-aa;2.a=a+a;由于a初始化为du2:1.a=a-aa=2-2*2=-2;2.a=a+a=-2+(-2)==-4;所以zhi最后结果就是-4。扩展资料C语言中提供常用赋值运算符:等号运算符。计算赋值运算符右侧表达式的值。(“=”为赋值运算符)将赋值运算符右侧表达式的值赋给左侧的变量。将赋值运算符左侧的变量的值作为表达式的值。原创 2021-01-28 11:44:13 · 1044 阅读 · 0 评论 -
C Language problem
A Contesting Decisionproblem:Judging a programming contest is hard work, with demanding contestants, tedious decisions,and monotonous work. Not to mention the nutritional problems of spending 12 hours with only donuts, pizza, and soda for food. Still, it原创 2021-01-19 18:19:35 · 76 阅读 · 0 评论 -
C Language problem
Function Run Funproblem:We all love recursion! Don’t we?Consider a three-parameter recursive function w(a, b, c):if a <= 0 or b <= 0 or c <= 0, then w(a, b, c) returns:1if a > 20 or b > 20 or c > 20, then w(a, b, c) returns:w(20, 2原创 2021-01-18 19:56:32 · 62 阅读 · 0 评论 -
C Language problem
C Language problemSpecialized Four-Digit Numbersproblem:Find and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when represented in hexadecimal (base 16) notation and a原创 2021-01-18 19:57:34 · 66 阅读 · 0 评论