当前位置:网站首页>Force buckle ------ replace blank space
Force buckle ------ replace blank space
2022-06-30 06:27:00 【qq_ thirty-seven million seven hundred and sixty thousand seven】

char* replaceSpace(char* s){
int len =strlen(s);
char* s1=(char*)calloc(2000,sizeof(char));
int count=0;
for(int a=0;a<len;a++){
if(s[a]!=' '){
s1[count++]=s[a];
}
else{
s1[count++]='%';
s1[count++]='2';
s1[count++]='0';
}
}
s1[count]='\0';
return s1;
}
边栏推荐
猜你喜欢

Application of redis client list in practice

One sentence introduction to Trojan horse

Win10 /11 开热点无法上网问题

HuaWei满级大牛首次分享出这份598页网络协议全彩手册

Develop stylelint rules from zero (plug-ins)

1.3 - 码制
![[wechat applet: single or multiple styles, background color, rounded corners]](/img/01/0381915591b0d3c13afbba4d50952d.png)
[wechat applet: single or multiple styles, background color, rounded corners]

Jgaurora A8 configuration file

Master slave synchronization of MySQL database to realize read-write separation

Usage of case, casez and casex statements in Verilog
随机推荐
我做功能测试这么多年的心得
图像处理7-图像增强
Switch must be better than if Else fast
Wuenda coursera deep learning course
ROS multi machine
Combat simulation system data
Common NPM install errors
Problems related to pinduoduo store search, why can't new products be found on the shelves
ES6 array
File operation io-part1
01. regular expression overview
HCIA day 1
Arrangement of in-depth learning materials
Subnet division and subnet summary
ES6扩展运算符(...)
Four ways to create multithreads
文件操作IO-Part1
Pycharm shortcut key
JS prototype chain object function relationship
ES6 array traversal and Es5 array traversal