当前位置:网站首页>7月华清学习-1
7月华清学习-1
2022-07-05 11:53:00 【huashuideyu】
C语言 输出输入
例如
scanf(“%2d,%*3d,%2d”)
只有前后的两个字符,而中间三个就没了
a = " "
scanf(“%s”,a)
print(“%d”,a)
那么就是0对应的32
空格在字符型中是有效字符
去掉垃圾字符
#include <stdio.h>
int main(int argc, char *argv[])
{
int a;
char x;
printf(“>”);
scanf(“%d”,&a);
//getchar();
scanf(" %c",&x);
pr intf(“%d :%c : %d\n”,a ,x,x);
return 0;
scanf输入不能用空格,gets()可以用空格;
puts()可以自动换行
man sqrt
NAME
sqrt, sqrtf, sqrtl - square root function
SYNOPSIS
#include <math.h>
double sqrt(double x);
float sqrtf(float x);
long double sqrtl(long double x);
Link with -lm.
边栏推荐
- Ncp1342 chip substitute pn8213 65W gallium nitride charger scheme
- 1 plug-in to handle advertisements in web pages
- 11.(地图数据篇)OSM数据如何下载使用
- pytorch-权重衰退(weight decay)和丢弃法(dropout)
- Pytorch MLP
- Check the debug port information in rancher and do idea remote JVM debug
- 1. Laravel creation project of PHP
- 查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
- 【PyTorch预训练模型修改、增删特定层】
- 1.php的laravel创建项目
猜你喜欢
Redis master-slave mode
liunx禁ping 详解traceroute的不同用法
《增长黑客》阅读笔记
Yolov5 target detection neural network -- calculation principle of loss function
[upsampling method opencv interpolation]
13.(地图数据篇)百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换
XML parsing
【上采样方式-OpenCV插值】
[crawler] bugs encountered by wasm
[configuration method of win11 multi-user simultaneous login remote desktop]
随机推荐
[untitled]
How can China Africa diamond accessory stones be inlaid to be safe and beautiful?
JS for loop number exception
多表操作-子查询
Redis master-slave mode
redis主从中的Master自动选举之Sentinel哨兵机制
JS for循环 循环次数异常
[mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]
Linux安装部署LAMP(Apache+MySQL+PHP)
[singleshotmultiboxdetector (SSD, single step multi frame target detection)]
Dynamic SQL of ibatis
How to make your products as expensive as possible
15 methods in "understand series after reading" teach you to play with strings
【PyTorch预训练模型修改、增删特定层】
871. Minimum Number of Refueling Stops
Check the debug port information in rancher and do idea remote JVM debug
汉诺塔问题思路的证明
[upsampling method opencv interpolation]
【ijkplayer】when i compile file “compile-ffmpeg.sh“ ,it show error “No such file or directory“.
1. Laravel creation project of PHP