c语言问题(英文描述)在线等,高分,急

[复制链接]
查看11 | 回复3 | 2013-6-3 09:45:38 | 显示全部楼层 |阅读模式
你这个应该是acm上的题吧。楼上的程序没有问题,不过输出格式不满足题目的要求,稍微给改了一下,当所有的输入结束后将结果一起输出。#include#includeusing std::vector ; const int MAX=1100;char sa[MAX],sb[MAX];vector vec ;int ok(char a[],char b[]){
int i;
for(i=0;a&&b&&a==b;i++);
return a==0;}int main(){
int n=10,m...
回复

使用道具 举报

千问 | 2013-6-3 09:45:38 | 显示全部楼层
#include#include#includeconst int MAX=1100;char sa[MAX],sb[MAX];int ok(char a[],char b[]){int i;for(i=0;a&&b&&a==b;i++);return a==0;}in...
回复

使用道具 举报

千问 | 2013-6-3 09:45:38 | 显示全部楼层
貌似string.h库里有一个子串查询的函数。忘了是什么名字了!...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行