Search found 1 match

by zahid0055
Tue Apr 03, 2012 12:58 pm
Forum: Volume 115 (11500-11599)
Topic: 11530 - SMS Typing
Replies: 41
Views: 16621

11530 help

Help me finding the error of my code
#include<stdio.h>
#include<string.h>
int main()
{
char s[101];
int t,i,j,count=0;
scanf("%d\n",&t);

for(i=0;i<t;i++)
{

gets(s);
int len=strlen(s);
for(j=0;j<len;j++)
{
if(s[j]==' '||s[j]=='a'||s[j]=='d'||s[j]=='g'||s[j]=='j'||s[j]=='m'||s[j]=='p'||s ...

Go to advanced search