herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (Atom)
熱門文章
-
11!=?
-
計算你上學期加權平均
-
計算你的BMI
-
輸出字串20次
-
int a[]={21, 23, 57, 13 ,17, 6}; float average; average=?
-
猜數字
-
1. 利用遞迴input n算2^n 2. 用C算GCD(3333,456)
-
C字串練習 字串 char word[]="You win!"; 輸出為: You win! You win You wi You w You You Yo Y 給進階使用者: gets () 是個危險的函式!
-
解釋memset, memcpy
39 則留言:
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[100];
gets(name);
int x=strlen(name);
for (int i=x-1; i>=0; i--)
{
cout<<name[i];
}
cout<<endl;
system("Pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="哈囉哈囉";
gets(name);
//puts(name);
int x=strlen(name);
//cout<<sizeof(name)<<endl;
//cout<<x<<endl;
for(int i=x-1;i>=0;i--)
cout<<name[i];
cout<<endl;
//strcat(name,name2);
//puts(name);
//cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="哈囉哈囉";
gets(name);
//puts(name);
int x=strlen(name);
//cout<<sizeof(name)<<endl;
//cout<<x<<endl;
for(int i=x-1;i>=0;i--)
cout<<name[i];
cout<<endl;
//strcat(name,name2);
//puts(name);
//cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
gets(name);
int x=strlen(name);
for (int i=x-1; i>=0; i--)
cout<<name[i];
cout<<endl;
puts(name);
cout<<strlen(name)<<endl;
system("Pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[]="1234567890";
puts(name);
int x=strlen(name);
for (int i=x-1;i>=0;i--)
cout<<name[i];
cout<<"\n";
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[]="1234567890";
puts(name);
int x=strlen(name);
for (int i=x-1;i>=0;i--)
cout<<name[i];
cout<<"\n";
system("pause");
return 0;
}
b#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[]="1234567890";
puts(name);
int x=strlen(name);
for (int i=x-1;i>=0;i--)
cout<<name[i];
cout<<"\n";
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[]="1234567890";
puts(name);
int x=strlen(name);
for (int i=x-1;i>=0;i--)
cout<<name[i];
cout<<"\n";
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
gets(name);
int x=strlen(name);
for (int i=x-1; i>=0; i--)
cout<<name[i];
cout<<endl;
puts(name);
cout<<strlen(name)<<endl;
system("Pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
gets(name);
int x=strlen(name);
for (int i=x-1; i>=0; i--)
cout<<name[i];
cout<<endl;
puts(name);
cout<<strlen(name)<<endl;
system("Pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[]="1234567890";
puts(name);
int x=strlen(name);
for (int i=x-1;i>=0;i--)
cout<<name[i];
cout<<"\n";
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[]="1234567890";
puts(name);
int x=strlen(name);
for (int i=x-1;i>=0;i--)
cout<<name[i];
cout<<"\n";
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
gets(name);
int x=strlen(name);
for (int i=x-1; i>=0; i--)
cout<<name[i];
cout<<endl;
puts(name);
cout<<strlen(name)<<endl;
system("Pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
gets(name);
int x=strlen(name);
for (int i=x-1; i>=0; i--)
cout<<name[i];
cout<<endl;
puts(name);
cout<<strlen(name)<<endl;
system("Pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
gets(name);
int x=strlen(name);
for (int i=x-1; i>=0; i--)
cout<<name[i];
cout<<endl;
puts(name);
cout<<strlen(name)<<endl;
system("Pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="狗尾續貂";
gets(name);
// puts(name);
int x=strlen(name);
// cout<<sizeof(name)<<endl;
// cout<<x<<endl;
for (int i=x-1; i>=0; i--)
cout<<name[i];
cout<<endl;
// strcat(name, name2);
// puts(name);
// cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="YOYOYO";
gets(name);
// puts(name);
int x=strlen(name);
// cout<<sizeof(name)<<endl;
// cout<<x<<endl;
for (int i=x-1; i>=0; i--)
cout<<name[i];
cout<<endl;
// strcat(name, name2);
// puts(name);
// cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="狗尾續貂";
gets(name);
// puts(name);
int x=strlen(name);
// cout<<sizeof(name)<<endl;
// cout<<x<<endl;
for (int i=x-1; i>=0; i--)
cout<<name[i];
cout<<endl;
// strcat(name, name2);
// puts(name);
// cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="狗尾續貂";
gets(name);
// puts(name);
int x=strlen(name);
// cout<<sizeof(name)<<endl;
// cout<<x<<endl;
for (int i=x-1; i>=0; i--)
cout<<name[i];
cout<<endl;
// strcat(name, name2);
// puts(name);
// cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
gets(name);
int x=strlen(name);
for (int i=x-1;
; i--)
{
cout<<name[i];
}
cout<<endl;
system("Pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
gets(name);
int x=strlen(name);
for (int i=x-1; i>=0; i--)
{
cout<<name[i];
}
cout<<endl;
system("Pause");
return 0;
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
gets (name);
int x=strlen(name);
for (int i=x-1;i>=0;i--)
{
cout<<name[i];
}
cout<<endl;
system("Pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="狗尾續貂";
gets(name);
// puts(name);
int x=strlen(name);
// cout<<sizeof(name)<<endl;
// cout<<x<<endl;
for (int i=x-1; i>=0; i--)
cout<<name[i];
cout<<endl;
// strcat(name, name2);
// puts(name);
// cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[]="1234567890";
puts(name);
int x=strlen(name);
for (int i=x-1;i>=0;i--)
cout<<name[i];
cout<<"\n";
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="狗尾續貂";
gets(name);
//puts(name);
int x =strlen(name);
//cout<<sizeof(name)<<endl;
//cout<<x<<endl;
for (int i=x-1;i>=0;i--)
cout<<name[i];
cout<<endl;
strcat(name,name2);
//puts(name);
//cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="恭喜發財";
gets(name);
//puts(name);
int x=strlen(name);
//cout<<sizeof(name)<<endl;
//cout<<x<<endl;
for(int i=x-1;i>=0;i--)
cout<<name[i];
cout<<endl;
//strcat(name,name2);
//puts(name);
//cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
gets(name);
int x=strlen(name);
for(int i=x-1;i>=0;i--)
cout<<name[i];
cout<<endl;
system("Pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="不讓你睡";
gets(name);
//puts(name);
int x=strlen(name);
//cout<<sizeof(name)<<endl;
//cout<<x<<endl;
for(int i=x-1;i>=0;i--)
cout<<name[i];
cout<<endl;
//strcat(name,name2);
//puts(name);
//cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="老師好帥";
gets(name);
//puts(name);
int x=strlen(name);
//cout<<sizeof(name)<<endl;
//cout<<x<<endl;
for(int i=x-1;i>=0;i--)
cout<<name[i];
cout<<endl;
//strcat(name,name2);
//puts(name);
//cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
gets(name);
int x=strlen(name);
for (int i=x-1; i>=0; i--)
{
cout<<name[i];
}
cout<<endl;
system("Pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="EA SPORT";
gets(name);
//puts(name);
int x=strlen(name);
//cout<<sizeof(name)<<endl;
//cout<<x<<endl;
for(int i=x-1;i>=0;i--)
cout<<name[i];
cout<<endl;
//strcat(name,name2);
//puts(name);
//cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="狗尾續貂";
gets(name);
//puts(name);
int x =strlen(name);
//cout<<sizeof(name)<<endl;
//cout<<x<<endl;
for (int i=x-1;i>=0;i--)
cout<<name[i];
cout<<endl;
strcat(name,name2);
//puts(name);
//cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="狗尾續貂";
gets(name);
//puts(name);
int x =strlen(name);
//cout<<sizeof(name)<<endl;
//cout<<x<<endl;
for (int i=x-1;i>=0;i--)
cout<<name[i];
cout<<endl;
strcat(name,name2);
//puts(name);
//cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="狗尾續貂";
gets(name);
//puts(name);
int x =strlen(name);
//cout<<sizeof(name)<<endl;
//cout<<x<<endl;
for (int i=x-1;i>=0;i--)
cout<<name[i];
cout<<endl;
strcat(name,name2);
//puts(name);
//cout<<strlen(name)<<endl;
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
gets(name);
int x=strlen(name);
for (int i=x-1; i>=0; i--)
cout<<name[i];
cout<<endl;
puts(name);
cout<<strlen(name)<<endl;
system("Pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[]="鄭至華";
gets(name);
//puts(name);
int x=strlen(name);
//cout<<sizeof(name)<<endl;
//cout<<x<<endl;
for(int i=x-1;i>=0;i--)
cout<<name[i];
cout<<endl;
//strcat(name,name2);
//puts(name);
//cout<<strlen(name)<<endl;
system("pause");
return 0;
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[10];
gets(name);
int x =strlen(name);
for (int i=x-1;i>=0;i--)
cout<<name[i];
cout<<endl;
strcat(name,name2);
system("pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[100];
char name2[100];
gets(name);
int x=strlen(name);
for (int i=x-1; i>=0; i--)
{
cout<<name[i];
}
cout<<endl;
system("Pause");
return 0;
}
#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main()
{
char name[10];
gets(name);
int x =strlen(name);
for (int i=x-1;i>=0;i--)
cout<<name[i];
cout<<endl;
strcat(name,name2);
system("pause");
return 0;
}
張貼留言