当前位置:网站首页>Char to leading 0
Char to leading 0
2022-07-06 08:12:00 【. dye】
void qu0(char a[])
{ ll n,j=0,m;
char b[10000]={'\0'};
if(strlen(a)>=2&&a[0]=='0')
{ n=strlen(a);
for(int i=0;i<n;i++){ if(a[i]!='0'){m=i;break;}}
for(int i=m;i<n;i++){b[j++]=a[i];}
memset(a,0,sizeof(a));
for(int i=0;i<j;i++){a[i]=b[i];}
}
}
边栏推荐
- Data governance: misunderstanding sorting
- 使用 TiUP 升级 TiDB
- WebRTC系列-H.264预估码率计算
- Machine learning - decision tree
- Tidb backup and recovery introduction
- NFT smart contract release, blind box, public offering technology practice -- jigsaw puzzle
- Pangolin Library: control panel, control components, shortcut key settings
- Redis list detailed explanation of character types yyds dry goods inventory
- 2.10transfrom attribute
- 灰度升级 TiDB Operator
猜你喜欢
Wireshark grabs packets to understand its word TCP segment
"Designer universe" APEC design +: the list of winners of the Paris Design Award in France was recently announced. The winners of "Changsha world center Damei mansion" were awarded by the national eco
Uibehavior, a comprehensive exploration of ugui source code
Easy to use tcp-udp_ Debug tool download and use
08- [istio] istio gateway, virtual service and the relationship between them
Sanzi chess (C language)
Codeforces Global Round 19(A~D)
将 NFT 设置为 ENS 个人资料头像的分步指南
珠海金山面试复盘
ROS learning (IX): referencing custom message types in header files
随机推荐
Pyqt5 development tips - obtain Manhattan distance between coordinates
File upload of DVWA range
All the ArrayList knowledge you want to know is here
Migrate data from SQL files to tidb
升级 TiDB Operator
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
hcip--mpls
Migrate data from a tidb cluster to another tidb cluster
49. Sound card driven article collection
esRally国内安装使用避坑指南-全网最新
[Yugong series] February 2022 U3D full stack class 011 unity section 1 mind map
Résumé des diagrammes de description des broches de la série ESP
Golang DNS write casually
使用 TiDB Lightning 恢复 S3 兼容存储上的备份数据
"Designer universe" Guangdong responds to the opinions of the national development and Reform Commission. Primary school students incarnate as small community designers | national economic and Informa
数据治理:微服务架构下的数据治理
"Designer universe": "benefit dimension" APEC public welfare + 2022 the latest slogan and the new platform will be launched soon | Asia Pacific Financial Media
[factorial inverse], [linear inverse], [combinatorial counting] Niu Mei's mathematical problems
Data governance: 3 characteristics, 4 transcendence and 3 28 principles of master data
数据治理:数据质量篇