当前位置:网站首页>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];}
}
}边栏推荐
- Common functions for PHP to process strings
- Data governance: 3 characteristics, 4 transcendence and 3 28 principles of master data
- Grayscale upgrade tidb operator
- 数据治理:误区梳理篇
- IP lab, the first weekly recheck
- Notes on software development
- It's hard to find a job when the industry is in recession
- Binary tree creation & traversal
- Chinese Remainder Theorem (Sun Tzu theorem) principle and template code
- MFC 给列表控件发送左键单击、双击、以及右键单击消息
猜你喜欢

C language custom type: struct

Learn Arduino with examples

22. Empty the table

Artcube information of "designer universe": Guangzhou implements the community designer system to achieve "great improvement" of urban quality | national economic and Information Center
![[t31zl intelligent video application processor data]](/img/67/b77c1de990d9b8868f8df5e55b0227.png)
[t31zl intelligent video application processor data]

NFT smart contract release, blind box, public offering technology practice -- contract
![[research materials] 2022 enterprise wechat Ecosystem Research Report - Download attached](/img/35/898a8086bc35462b0fcb9e6b58b86b.jpg)
[research materials] 2022 enterprise wechat Ecosystem Research Report - Download attached

Document 2 Feb 12 16:54

Pangolin Library: control panel, control components, shortcut key settings
![[redis] Introduction to NoSQL database and redis](/img/95/229d7a08e94245f2733b8c59201cff.png)
[redis] Introduction to NoSQL database and redis
随机推荐
esRally国内安装使用避坑指南-全网最新
Step by step guide to setting NFT as an ens profile Avatar
"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
It's hard to find a job when the industry is in recession
National economic information center "APEC industry +": economic data released at the night of the Spring Festival | observation of stable strategy industry fund
Asia Pacific Financial Media | female pattern ladyvision: forced the hotel to upgrade security. The drunk woman died in the guest room, and the hotel was sentenced not to pay compensation | APEC secur
ESP系列引脚說明圖匯總
C language - bit segment
数据治理:误区梳理篇
Esrally domestic installation and use pit avoidance Guide - the latest in the whole network
[factorial inverse], [linear inverse], [combinatorial counting] Niu Mei's mathematical problems
Hcip day 16
数据治理:主数据的3特征、4超越和3二八原则
What is the use of entering the critical point? How to realize STM32 single chip microcomputer?
Artcube information of "designer universe": Guangzhou implements the community designer system to achieve "great improvement" of urban quality | national economic and Information Center
Oracle time display adjustment
数据治理:数据质量篇
Circuit breaker: use of hystrix
将 NFT 设置为 ENS 个人资料头像的分步指南
A Closer Look at How Fine-tuning Changes BERT