当前位置:网站首页>July Huaqing learning-1
July Huaqing learning-1
2022-07-05 12:00:00 【huashuideyu】
C Language Output input 
for example
scanf(“%2d,%*3d,%2d”)
There are only two characters before and after , And the middle three are gone
a = " "
scanf(“%s”,a)
print(“%d”,a)
So that is 0 Corresponding 32
Spaces are valid characters in character types
Remove garbage characters
#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 Input cannot use spaces ,gets() You can use spaces ;
puts() Can wrap lines automatically

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.

边栏推荐
猜你喜欢

Multi table operation - sub query

splunk配置163邮箱告警

12. (map data) cesium city building map

Network five whip
![[pytorch pre training model modification, addition and deletion of specific layers]](/img/cb/aa0b1116ec9b98e3ee5725aa58f4fe.png)
[pytorch pre training model modification, addition and deletion of specific layers]

【PyTorch预训练模型修改、增删特定层】

Uniapp + unicloud + Unipay realize wechat applet payment function

How to clear floating?

Mmclassification training custom data

13.(地图数据篇)百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换
随机推荐
Codeforces Round #804 (Div. 2)
《看完就懂系列》15个方法教你玩转字符串
2048 game logic
【上采样方式-OpenCV插值】
pytorch-多层感知机MLP
1. Laravel creation project of PHP
Sentinel sentinel mechanism of master automatic election in redis master-slave
【load dataset】
【TFLite, ONNX, CoreML, TensorRT Export】
Simply solve the problem that the node in the redis cluster cannot read data (error) moved
你做自动化测试为什么总是失败?
Mmclassification training custom data
Riddle 1
Principle of persistence mechanism of redis
[configuration method of win11 multi-user simultaneous login remote desktop]
15 methods in "understand series after reading" teach you to play with strings
程序员内卷和保持行业竞争力
Open3d mesh (surface) coloring
Yolov 5 Target Detection Neural Network - Loss Function Calculation Principle
Implementation of array hash function in PHP