C++问题 关于字符串的程序

[复制链接]
查看11 | 回复2 | 2009-6-10 16:09:50 | 显示全部楼层 |阅读模式
#include #include "string.h"void main(){
char x[100],y[100];
int i,j,xlen,ylen;
cin>>x;
cin>>y;
xlen=strlen(x);
//算出字符串x和y的长度
ylen=strlen(y);
j=0;
for(i=0;iusing namespace std;void main(){string s;string s1;getline(cin,s);getline(cin,s1);int num =0;for(int i=0;i < s.siz...
回复

使用道具 举报

千问 | 2009-6-10 16:09:50 | 显示全部楼层
voidmain(){
unsigned char l,indicate=0;
for(l=0;l<30;l++)
{
for(m=0,m<;m++)
{
if(x[m]!=y[l])
{
i...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行