大连交通大学五年制C语言试卷十 考试笔记 摘要:5.执行语句for(i=1;i++<4;);后变量i的值是(5 )。【解析】:当i=4时,i<4即:4<4不成立,但i++仍执行,i=i+1=4, 不执行循环体。7.static int x=10;v…… 文章列表 2023年03月23日 0 点赞 0 评论 322 浏览 评分:9.9
编程时注意 摘要:华氏度到摄氏度#include<bits/stdc++.h>using namespace std;int main(){ double a,b; cin>>a; printf("%…… 文章列表 2023年03月22日 0 点赞 0 评论 495 浏览 评分:9.9
2021年9月全国计算机等级考试真题(二级C语言) 考试笔记 摘要:1、1)填空题,有的空 末尾写了';'分号,有的没有,这是一个坑! 2)填空,其它题目有与答案一样的表达式,能复制就复制过来 改改,自己多敲一个空格都导致答案错! 3)…… 文章列表 2023年03月22日 0 点赞 1 评论 793 浏览 评分:9.9
题目 1038: [编程入门]宏定义练习之三角形面积 摘要:#include #include #define S(a,b,c) t = (a+b+c)/2; int main() { int a,b,c; float t,area; scanf…… 文章列表 2023年03月21日 0 点赞 0 评论 268 浏览 评分:9.9
题目 1463: 蓝桥杯基础练习VIP-Sine之舞 摘要:#include<iostream> using namespace std; void Anprint(int N) { for(int i=0;i<N;i++) { cou…… 文章列表 2023年03月21日 0 点赞 0 评论 187 浏览 评分:0.0
题目 1051: [编程入门]结构体之成绩统计2 摘要:#include<stdio.h> #define num 100 typedef struct stu{ char sno[10]; char name[20]; …… 文章列表 2023年03月21日 0 点赞 0 评论 251 浏览 评分:9.9
我的我的我的知识点 摘要:1,用gets(s)输入时 s是用char来说明的字符;11111111111111111111111111111111111111111111111111111111111111111111…… 文章列表 2023年03月19日 0 点赞 0 评论 219 浏览 评分:0.0
水仙花数判断 摘要:#include<stdio.h>#include<math.h>int main(){ int n ,a,b,c; //a,b,c 用来存放每个位的值 scanf("%d",&n);…… 文章列表 2023年03月18日 0 点赞 0 评论 215 浏览 评分:0.0
数字三角形 动态规划 摘要:```cpp 动态规划 dp[i][j]=max(dp[i-1][j],d[i-1][j] 实际上就是记录走过的路以达到优化算法的目的 基础思想 记录每一目的地的最优路径 #include …… 文章列表 2023年03月12日 0 点赞 0 评论 265 浏览 评分:9.9