码迷,mamicode.com
首页 >  
搜索关键字:visaul stdio    ( 10042个结果
交换值 最基础
交换值#include<stdio.h>intmain(){inta=1;intb=2;intc=0;printf("交换前a=%db=%d\n",a,b);c=a;a=b;b=c;printf("交换后a=%db=%d\n",a,b);return0;}
分类:其他好文   时间:2020-11-23 12:28:40    阅读次数:4
【底层原理】C/C++内存对齐详解
什么是内存对齐还是用一个例子带出这个问题,看下面的小程序,理论上,32位系统下,int占4byte,char占一个byte,那么将它们放到一个结构体中应该占4+1=5byte;但是实际上,通过运行程序得到的结果是8byte,这就是内存对齐所导致的。//32位系统#include<stdio.h>struct{intx;chary;}s;intmain(){printf("%d\n",s
分类:编程语言   时间:2020-11-23 12:26:53    阅读次数:7
实验3
实验任务4#include<stdio.h> #include<math.h> int main() { int n,a,b,i,s; printf("Enter a number:"); scanf("%d",&n); while(n){ i=0; s=0; while(n!=0){ a=n%10 ...
分类:其他好文   时间:2020-11-23 12:22:09    阅读次数:3
实验二
#include "stdafx.h" #include <stdio.h> int main(int argc, char* argv[]) { char a,b,c,d,e; scanf("%c%c%c%c%c",&a,&b,&c,&d,&e); putchar(a); putchar(b); ...
分类:其他好文   时间:2020-11-23 12:14:20    阅读次数:5
实验三
#include <math.h> #include <stdio.h> int main() { float a,b,c,x1,x2; float delta,real,imag; printf("Enter a,b,c"); while(scanf("%f%f%f",&a,&b,&c) !=EO ...
分类:其他好文   时间:2020-11-23 11:57:34    阅读次数:4
ATM管理系统(极简版)
#一、说明 **1.**该系统只具备面向用户的基本功能(如开户、销户、存款、取款、转账、余额查询功能); **2.**该系统用C语言实现。 #二、ATM系统模块化代码 头文件& 全局变量 #include <stdio.h> #include <stdlib.h> #include <string. ...
分类:其他好文   时间:2020-11-21 12:43:16    阅读次数:45
实验三
任务一 #include<stdio.h> #include<math.h> int main(){ float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a ...
分类:其他好文   时间:2020-11-21 12:42:08    阅读次数:28
实验333333333333333333
#include<math.h> #include<stdio.h> int main(){ float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a, &b ...
分类:其他好文   时间:2020-11-21 12:32:15    阅读次数:7
实验3
#include <math.h> #include <stdio.h> int main() { float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a, ...
分类:其他好文   时间:2020-11-21 12:31:36    阅读次数:8
printf scanf 格式
1:printf函数是一个标准库函数,它的函数原型在头文件“stdio.h”中。但作为一个特例,不要求在使用 printf 函数之前必须包含stdio.h文件。printf函数调用的一般形式为,printf(“格式控制字符串”, 输出表列)其中格式控制字符串用于指定输出格式。格式控制串可由格式字符串 ...
分类:其他好文   时间:2020-11-21 11:52:28    阅读次数:2
10042条   上一页 1 ... 32 33 34 35 36 ... 1005 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!