当前位置:网站首页>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];}
}
}
边栏推荐
- From monomer structure to microservice architecture, introduction to microservices
- Hcip day 16
- NFT smart contract release, blind box, public offering technology practice -- contract
- CAD ARX 获取当前的视口设置
- [Yugong series] February 2022 U3D full stack class 011 unity section 1 mind map
- Mex related learning
- 远程存储访问授权
- Codeforces Global Round 19(A~D)
- matplotlib. Widgets are easy to use
- 1204 character deletion operation (2)
猜你喜欢
[cloud native] teach you how to build ferry open source work order system
ROS learning (IX): referencing custom message types in header files
The Vice Minister of the Ministry of industry and information technology of "APEC industry +" of the national economic and information technology center led a team to Sichuan to investigate the operat
Golang DNS 随便写写
22. Empty the table
[nonlinear control theory]9_ A series of lectures on nonlinear control theory
Interview Reply of Zhuhai Jinshan
Nft智能合约发行,盲盒,公开发售技术实战--合约篇
[Yugong series] February 2022 U3D full stack class 011 unity section 1 mind map
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
随机推荐
Oracle time display adjustment
CAD ARX 获取当前的视口设置
Helm install Minio
【T31ZL智能视频应用处理器资料】
Grayscale upgrade tidb operator
[redis] Introduction to NoSQL database and redis
1202 character lookup
Restore backup data on S3 compatible storage with br
File upload of DVWA range
Introduction to number theory (greatest common divisor, prime sieve, inverse element)
Webrtc series-h.264 estimated bit rate calculation
Document 2 Feb 12 16:54
08- [istio] istio gateway, virtual service and the relationship between them
Vit (vision transformer) principle and code elaboration
NFT smart contract release, blind box, public offering technology practice -- contract
数据治理:误区梳理篇
Tidb backup and recovery introduction
The Vice Minister of the Ministry of industry and information technology of "APEC industry +" of the national economic and information technology center led a team to Sichuan to investigate the operat
Artcube information of "designer universe": Guangzhou implements the community designer system to achieve "great improvement" of urban quality | national economic and Information Center
Use br to back up tidb cluster data to S3 compatible storage