当前位置:网站首页>力扣------替换空格
力扣------替换空格
2022-06-30 06:25:00 【qq_37760746】

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;
}
边栏推荐
- Résoudre le problème de décompiler la compilation normale
- 反编译正常回编译出现问题自己解决办法
- Static routing job
- ES6 extended operator (...)
- Record a problem tracking of excessive load
- Golang's handwritten Web Framework
- 旋转标注工具roLabelImg
- Gazebo installation, uninstall and upgrade
- Intelligent question - horse racing question
- Picture.....
猜你喜欢

Centos8 install redis

Gazebo model modification

Jgaurora A8 configuration file

Static routing job

My experience in functional testing for so many years

Balanced binary tree judgment of Li Kou 110 -- classic problems

How does Altium designer hide some temporarily unnecessary classes, such as GND

New project folder based on PIO plug-in in vscode -- Interpretation

Swoole process model diagram

Image processing 7- image enhancement
随机推荐
Completabilefuture: from understanding to mastering, here are all you want to know
ES6 extended operator (...)
Mariadb数据库的安装与初始化
Intelligent question - horse racing question
1.6 - CPU组成
Using C language pure for loop to implement ilovey
Pycharm shortcut key
As function memo
CompletableFuture从了解到精通,你想知道的这里都有
RSA and AES
Strlen and sizeof, array length and string length, don't be silly
When to use redis
Unclear about glide loading picture
Feisheng: Based on the Chinese word breaker ik-2 ways to build custom hot word separators Showcase & pit arrangement Showtime
46. full arrangement -dfs double hundred code
Ten years' miscellaneous thoughts
MySQL summary
Cocos studio3.1 installation package win
Develop stylelint rules from zero (plug-ins)
General contents of learning reinforcement learning