码迷,mamicode.com
首页 >  
搜索关键字:visaul stdio    ( 10042个结果
请输入我是猪不然我就关闭你的电脑
请输入我是猪不然我就关闭你的电脑 在学习C语言的时候可能是枯燥无味,但是C语言也可以给我们带来一些小快乐哦!就比如说下面这个代码,你可以试着运行着玩玩,让自己体会到C语言的小快乐。😁😁😁 #include<stdio.h> #include<stdlib.h> #include<string. ...
分类:其他好文   时间:2020-12-08 12:57:51    阅读次数:17
分支循环语句(2)
题1:给三个数字排序 #include<stdio.h> int main() { int a; int b; int c; //a最大,b次之,c最小 if(a<b) { int tmp=a; a=b; b=tmp; } if(a<c) { int tmp=a; a=c; c=tmp; } if( ...
分类:其他好文   时间:2020-12-08 12:27:50    阅读次数:7
输出水仙花数的几类题
1、使用函数输出水仙花数 #include <stdio.h>int narcissistic( int number );void PrintN( int m, int n );int main(){ int m, n; scanf("%d %d", &m, &n); if ( narcissis ...
分类:其他好文   时间:2020-12-07 12:30:18    阅读次数:6
黄金分割法求区间
#include <stdio.h> #include <math.h> double a, b;//定义全局变量,传递区间值,可尝试指针 double get_num(double m) { double f; f = m * m + 7 * m - 9; return f; } double s ...
分类:其他好文   时间:2020-12-04 11:42:12    阅读次数:18
c语言题目:汉诺塔问题
#include <stdio.h>int main(){ void hanoi(int n,char one, char two,char three); int m; scanf("%d",&m); printf("move %d diskes:\n",m); hanoi(m,'A','B',' ...
分类:编程语言   时间:2020-12-03 12:14:56    阅读次数:7
实验4
1.不能,因为单个函数无法返回两个变量。 2.略 static变量用的是上次结算的值 3.代码 1 #include <stdio.h> 2 3 #define N 1000 4 int fun(int n,int m,int bb[N]) { 5 int i,j,k=0,flag; 6 7 for ...
分类:其他好文   时间:2020-12-03 12:03:49    阅读次数:5
SDUST数据结构 - chap8 查找
选择题: 函数题: 6-1 二分查找: 裁判测试程序样例: #include <stdio.h> #include <stdlib.h> #define MAXSIZE 10 #define NotFound 0 typedef int ElementType; typedef int Positi ...
分类:其他好文   时间:2020-12-03 12:00:44    阅读次数:5
实验4
任务1 可是使用数组变量和指针变量 任务2 //2.1 #include<stdio.h> long long fac(int n); int main(){ int i,n; printf("Enter n:"); scanf("%d",&n); for(i=1;i<=n;i++) printf( ...
分类:其他好文   时间:2020-12-03 11:47:34    阅读次数:4
C原始指针2--创建交换值函数进一步理解
1 #include <stdio.h> 2 int k = 222, t = 9; 3 void swap(int *a, int *b); 4 5 main() { 6 swap(&k, &t); 7 printf("\nkkkkkk=%d\nttttttttt=%d", k, t); 8 } ...
分类:其他好文   时间:2020-12-02 12:36:50    阅读次数:8
实验4
#include <math.h> #include <stdio.h> void solve(double a, double b, double c); int main() { double a, b, c; printf("Enter a, b, c: "); while(scanf("%l ...
分类:其他好文   时间:2020-12-02 12:36:07    阅读次数:9
10042条   上一页 1 ... 29 30 31 32 33 ... 1005 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!