当前位置:网站首页>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.
边栏推荐
- 【使用TensorRT通过ONNX部署Pytorch项目】
- 查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
- SET XACT_ ABORT ON
- Is investment and finance suitable for girls? What financial products can girls buy?
- ABAP table lookup program
- 【Win11 多用户同时登录远程桌面配置方法】
- Linux安装部署LAMP(Apache+MySQL+PHP)
- Halcon template matching actual code (I)
- Pytorch linear regression
- 1 plug-in to handle advertisements in web pages
猜你喜欢
[pytorch modifies the pre training model: there is little difference between the measured loading pre training model and the random initialization of the model]
abap查表程序
Network five whip
Hiengine: comparable to the local cloud native memory database engine
多表操作-自关联查询
splunk配置163邮箱告警
pytorch-权重衰退(weight decay)和丢弃法(dropout)
13. (map data) conversion between Baidu coordinate (bd09), national survey of China coordinate (Mars coordinate, gcj02), and WGS84 coordinate system
11.(地图数据篇)OSM数据如何下载使用
Matlab label2idx function (convert the label matrix into a cell array with linear index)
随机推荐
Redis集群的重定向
Complete activity switching according to sliding
Network five whip
liunx禁ping 详解traceroute的不同用法
【yolov5.yaml解析】
Codeforces Round #804 (Div. 2)
Web API configuration custom route
XML parsing
【Win11 多用户同时登录远程桌面配置方法】
SET XACT_ ABORT ON
11.(地图数据篇)OSM数据如何下载使用
自动化测试生命周期
全网最全的新型数据库、多维表格平台盘点 Notion、FlowUs、Airtable、SeaTable、维格表 Vika、飞书多维表格、黑帕云、织信 Informat、语雀
HiEngine:可媲美本地的云原生内存数据库引擎
一类恒等式的应用(范德蒙德卷积与超几何函数)
pytorch-softmax回归
abap查表程序
Ncp1342 chip substitute pn8213 65W gallium nitride charger scheme
pytorch-多层感知机MLP
Vscode shortcut key