当前位置:网站首页>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 - Auto Association query
- 【使用TensorRT通过ONNX部署Pytorch项目】
- Time tools
- pytorch-线性回归
- XML parsing
- C # implements WinForm DataGridView control to support overlay data binding
- How can China Africa diamond accessory stones be inlaid to be safe and beautiful?
- 自动化测试生命周期
- Pytorch softmax regression
- 一类恒等式的应用(范德蒙德卷积与超几何函数)
猜你喜欢

codeforces每日5题(均1700)-第五天

12. (map data) cesium city building map

【 YOLOv3中Loss部分计算】

Principle of persistence mechanism of redis

redis主从中的Master自动选举之Sentinel哨兵机制

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

Sentinel sentinel mechanism of master automatic election in redis master-slave

11.(地图数据篇)OSM数据如何下载使用

redis的持久化机制原理

《增长黑客》阅读笔记
随机推荐
[singleshotmultiboxdetector (SSD, single step multi frame target detection)]
【TFLite, ONNX, CoreML, TensorRT Export】
【主流Nivida显卡深度学习/强化学习/AI算力汇总】
leetcode:1200. Minimum absolute difference
Reading notes of growth hacker
Shell script file traversal STR to array string splicing
Wireless WiFi learning 8-channel transmitting remote control module
[yolov5.yaml parsing]
11.(地图数据篇)OSM数据如何下载使用
Yolov5 target detection neural network -- calculation principle of loss function
【SingleShotMultiBoxDetector(SSD,单步多框目标检测)】
Matlab boundarymask function (find the boundary of the divided area)
Dynamic SQL of ibatis
pytorch-权重衰退(weight decay)和丢弃法(dropout)
Unity xlua monoproxy mono proxy class
liunx禁ping 详解traceroute的不同用法
Multi table operation - Auto Association query
Principle and performance analysis of lepton lossless compression
手机 CPU 架构类型了解
Proof of the thinking of Hanoi Tower problem