当前位置:网站首页>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.

边栏推荐
- 【L1、L2、smooth L1三类损失函数】
- 简单解决redis cluster中从节点读取不了数据(error) MOVED
- Hash tag usage in redis cluster
- 【PyTorch预训练模型修改、增删特定层】
- liunx禁ping 详解traceroute的不同用法
- Pytorch softmax regression
- 11.(地图数据篇)OSM数据如何下载使用
- The most comprehensive new database in the whole network, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, flying Book Multidimensional table, heipayun, Zhix
- How to get a token from tokenstream based on Lucene 3.5.0
- Network five whip
猜你喜欢

全网最全的新型数据库、多维表格平台盘点 Notion、FlowUs、Airtable、SeaTable、维格表 Vika、飞书多维表格、黑帕云、织信 Informat、语雀

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

【L1、L2、smooth L1三类损失函数】

互联网公司实习岗位选择与简易版职业发展规划
The survey shows that traditional data security tools cannot resist blackmail software attacks in 60% of cases

石油化工企业安全生产智能化管控系统平台建设思考和建议

无线WIFI学习型8路发射遥控模块

pytorch-多层感知机MLP

Yolov5 target detection neural network -- calculation principle of loss function

查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
随机推荐
Sentinel sentinel mechanism of master automatic election in redis master-slave
【pytorch 修改预训练模型:实测加载预训练模型与模型随机初始化差别不大】
【Win11 多用户同时登录远程桌面配置方法】
Reading notes of growth hacker
Uniapp + unicloud + Unipay realize wechat applet payment function
13. (map data) conversion between Baidu coordinate (bd09), national survey of China coordinate (Mars coordinate, gcj02), and WGS84 coordinate system
1 plug-in to handle advertisements in web pages
Simply solve the problem that the node in the redis cluster cannot read data (error) moved
网络五连鞭
Hiengine: comparable to the local cloud native memory database engine
Codeforces Round #804 (Div. 2)
Redis集群(主从)脑裂及解决方案
C # implements WinForm DataGridView control to support overlay data binding
SET XACT_ ABORT ON
简单解决redis cluster中从节点读取不了数据(error) MOVED
redis集群中hash tag 使用
Wireless WiFi learning 8-channel transmitting remote control module
leetcode:1200. Minimum absolute difference
全网最全的新型数据库、多维表格平台盘点 Notion、FlowUs、Airtable、SeaTable、维格表 Vika、飞书多维表格、黑帕云、织信 Informat、语雀
Install esxi 6.0 interactively