1050: [编程入门]结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEN 100 //最大长度 typedef struct stu { char id[10]; char name[…… 题解列表 2021年03月01日 0 点赞 0 评论 524 浏览 评分:0.0
求平方和 c语言 摘要:解题思路:没有啥思路用手就行。注意事项:注意学好数学反复复习不然你还要去百度差真丢脸。参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d"…… 题解列表 2021年03月01日 0 点赞 0 评论 796 浏览 评分:0.0
编程入门]打印图案 c语言 摘要:解题思路:没啥思路有手就行。注意事项:注意下面是五个米。参考代码:#include<stdio.h>void main(){ printf(" *\n"); printf(" * *\n"); pr…… 题解列表 2021年03月01日 0 点赞 1 评论 429 浏览 评分:6.0
helloworeld没有啥有手就可以 摘要:解题思路:没有思路用手打就可以。注意事项:注意看题目。参考代码:#include<stdio.h>void main(){ printf("**************************"); …… 题解列表 2021年03月01日 0 点赞 0 评论 531 浏览 评分:9.0
打印图案 摘要:#include <stdio.h>void main(){ printf(" *\n"); printf(" * *\n"); printf("*****\n");}…… 题解列表 2021年03月01日 0 点赞 2 评论 1281 浏览 评分:8.7
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>typedef struct date{ int year,month,day;}D;int main(){ D d; int tot…… 题解列表 2021年03月01日 0 点赞 0 评论 869 浏览 评分:0.0
Hello World! 摘要:#include <stdio.h>void main(){ printf("**************************\n"); printf("Hello World!\n"…… 题解列表 2021年03月01日 0 点赞 0 评论 551 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define LEN 100int main(){ char str[LEN]={'\0'},result[LEN]…… 题解列表 2021年03月01日 0 点赞 0 评论 502 浏览 评分:0.0
定义数组时下标为变量导致错误 注意事项:定义数组时下标不能为未知的变量:第一遍写的代码将a[n][n]定义在对n取值之前,答案出现问题。因为在定义数组时下标不能为未知的变量,因为在本题中是在全局定义中定义了数组,而编译器在编译时会提前在主存中为数组分配空间,但是因为分配空间数量不确定,导致出错。 题解列表 2021年03月01日 0 点赞 0 评论 1123 浏览 评分:0.0
1046: [编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define LEN 100 //最大长度 int main(){ int arr[LEN]; int m,n; //输入长度、…… 题解列表 2021年03月01日 0 点赞 0 评论 797 浏览 评分:0.0