题解列表
反置数(c语言)正确%90的看!
摘要:```c
#include
int reverse_num(int);
int main()
{
int a, b;
scanf("%d%d", &a, &b);
a = ……
字符串中间和后边*号删除--简单易懂(c语言代码)
摘要:```c
#include
#include
int fun(char* a)
{
while (*a == '*')
{
a++;//找到第一个字母……
字符串比较(c实现strcmp)
摘要:```c
#include
int my_strcmp(char*, char*);
int main()
{
char str1[100] = { 0 }, str2[100] = ……
最长字符串(c语言代码 简单易理解 有详细注释)
摘要:```c
#include
#include
int main()
{
char str[500] = { 0 };//用来存放输入的字符串
gets(str);
int ……
字符串输入输出函数(c语言)输出格式有大坑!
摘要:```c
#include
void GetReal(char*);
void GetString(char*);
int main()
{
char real[1000] = ……
c语言字符串去掉空格
摘要:```c
#include
#include
void f(char a[100]);
int main()
{
char a[100],b[100],c[100],d[100];
……
2864: 单词替换
摘要:解题思路:1.读入一行字符串s、待替换单词a和替换单词b。2.使用stringstream将字符串s分割成单词,并依次判断每个单词是否为待替换单词a,若是,则输出替换单词b;否则输出原单词。3.输出替……