当前位置:网站首页>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.
边栏推荐
- ABAP table lookup program
- 13.(地图数据篇)百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换
- 15 methods in "understand series after reading" teach you to play with strings
- 《看完就懂系列》15个方法教你玩转字符串
- [yolov3 loss function]
- 12.(地图数据篇)cesium城市建筑物贴图
- Intern position selection and simplified career development planning in Internet companies
- pytorch-多层感知机MLP
- [upsampling method opencv interpolation]
- 12. (map data) cesium city building map
猜你喜欢
随机推荐
Open3d mesh (surface) coloring
[pytorch modifies the pre training model: there is little difference between the measured loading pre training model and the random initialization of the model]
[mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]
【pytorch 修改预训练模型:实测加载预训练模型与模型随机初始化差别不大】
Use and install RkNN toolkit Lite2 on itop-3568 development board NPU
【PyTorch预训练模型修改、增删特定层】
15 methods in "understand series after reading" teach you to play with strings
Project summary notes series wstax kt session2 code analysis
Application of a class of identities (vandermond convolution and hypergeometric functions)
2022年国内云管平台厂商哪家好?为什么?
【云原生 | Kubernetes篇】Ingress案例实战(十三)
Principle of redis cluster mode
【L1、L2、smooth L1三类损失函数】
12.(地图数据篇)cesium城市建筑物贴图
Pytorch weight decay and dropout
[upsampling method opencv interpolation]
1. Laravel creation project of PHP
Acid transaction theory
Sentinel sentinel mechanism of master automatic election in redis master-slave
1 plug-in to handle advertisements in web pages