level 3
印度墓迪
楼主
#include<stdio.h>
#include<conio.h>
#include<string.h>
#define N 80
void fun(char *s,char t[])
{
int i,j=0;
for(i=0;i<(int)strlen(s);i++)
if(i%2&&s[i]%2==0)
t[j++]=s[i];
t[i]='\0';
}
main()
{
char s[N],t[N];
printf("\nplease enther string s:");
gets(s);
fun(s,t);
printf("\nThe result is:%s\n",t);
system("pause");
}
上面这个程序是试卷里照着录进去的,程序没有问题
运行结果什么 BD烫烫烫~~~
debug里是这个
'34.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
34.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
这什么鬼,怎么弄啊~~
2020年03月09日 11点03分
1
#include<conio.h>
#include<string.h>
#define N 80
void fun(char *s,char t[])
{
int i,j=0;
for(i=0;i<(int)strlen(s);i++)
if(i%2&&s[i]%2==0)
t[j++]=s[i];
t[i]='\0';
}
main()
{
char s[N],t[N];
printf("\nplease enther string s:");
gets(s);
fun(s,t);
printf("\nThe result is:%s\n",t);
system("pause");
}
上面这个程序是试卷里照着录进去的,程序没有问题
运行结果什么 BD烫烫烫~~~
debug里是这个
'34.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
34.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
这什么鬼,怎么弄啊~~