码迷,mamicode.com
首页 >  
搜索关键字:scanf    ( 10388个结果
实验三
#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
实验三
任务一 #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
scanf和printf的格式
scanf()函数是通用终端格式bai化输入函数,du它从标准输入设备(键盘)读取输zhi入的信息。可以读入任dao何固有类型的数据并自动把数值变换成适当的机内格式。其调用格式为:scanf(“<格式化字符串>”,<地址表>);scanf()函数返回成功赋值的数据项数,出错时则返回EOF; 其控制串 ...
分类:其他好文   时间:2020-11-21 12:39:38    阅读次数:12
实验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
CodeForces - Problem 1446 - Knapsack - 思维
CodeForces - Problem 1446 - Knapsack - 思维 对于所有物品按照重量从小到大排序,然后从后向前遍历: 对于重量已经超过了$\omega$的物品,将其忽略掉; 对于重量处于$[\lceil \frac{\omega}{2} \rceil,\omega]$的物品(如果 ...
分类:其他好文   时间:2020-11-21 12:04:37    阅读次数:5
printf与scanf格式
printf()函数的调用格式为:printf("<格式化字符串>",<参量表>);其中格式化字符串包括两部分内容:一部分是正常字符,这些字符将按原样输出;另一部分是格式控制字符,以"%"开始,后跟一个或几个控制字符,用来确定输出内容格式。 参量表是需要输出的一系列参数可以是常量、变量或表达式,其个 ...
分类:其他好文   时间:2020-11-21 11:53:47    阅读次数:3
printf scanf 格式
1:printf函数是一个标准库函数,它的函数原型在头文件“stdio.h”中。但作为一个特例,不要求在使用 printf 函数之前必须包含stdio.h文件。printf函数调用的一般形式为,printf(“格式控制字符串”, 输出表列)其中格式控制字符串用于指定输出格式。格式控制串可由格式字符串 ...
分类:其他好文   时间:2020-11-21 11:52:28    阅读次数:2
实验3??🌂叁三
一·#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 11:51:42    阅读次数:3
Effective C++的50条建议
2020年11月16日16:11:06 尽量用const和inline而不用#define 尽量用编译器而不用预处理。 尽量用<iostream>而不用<stdio.h> scanf和printf很有用,但不是类型安全的,而且没有扩展性。 on the other hand,①有些iostream的 ...
分类:编程语言   时间:2020-11-20 12:22:07    阅读次数:24
10388条   上一页 1 ... 14 15 16 17 18 ... 1039 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!