当前位置:网站首页>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;
}
边栏推荐
猜你喜欢

Centos8 install redis

Learn fpga---ram IP core and key parameters from the bottom structure

Common NPM install errors

Gazebo model modification

Pycharm shortcut key

01. 正则表达式概述
一个完整的性能测试流程

C language final experiment report (student achievement management system) source code

Usage of case, casez and casex statements in Verilog

多线程进阶篇
随机推荐
Prototype and prototype chain in JS
Use of observer mode and status mode in actual work
Inner member of class 5: inner class
One sentence introduction to Trojan horse
[untitled]
PHP knowledge points
Beauty of Refactoring: when multithreaded batch processing task lifts the beam - Universal scaffold
Using C language pure for loop to implement ilovey
Px4 control mode summary
接口中方法详解
How to use unmarshaljson
1.9 - Cache
46. full arrangement -dfs double hundred code
C语言:练习题三
Problems related to pinduoduo store search, why can't new products be found on the shelves
uniapp 微信小程序返回上一页并刷新
Combat simulation system data
Zibll子比主题V6.4.1wordpress 开心版源码下载_破解原版/直接使用/无需教程
How does Altium designer hide some temporarily unnecessary classes, such as GND
Spin official tutorial