User Profile
Collapse
-
oh the problem is: create a program that will allow the user to input two words and determine if the second word is an anagram of the first word. example: first word is program, the second word is gram. the output should be, the second word is an anagram of the first word. but if i put ggram as a second word, the output should be, the second word is not an anagram of the first word. get it? -
the strings are not suppose to be equal, it's intended to be if(!strcmp(&fir st[ctr],&second[ctr2])), and how can we know if it's less than or equal, we're using char, not int.. we need to make the strcmp run so that it can read the if statements....Leave a comment:
-
How to remove one character on a string? HELP!
Code:#include<iostream.h> #include<conio.h> #include<stdio.h> #include<string.h> void main() { clrscr(); char first[10], second[10]; int ctr,ctr2,ctr3,len1,len2,word=0,count=0,larger=0; int tae1,tae2; cout<<"Enter the first word:"; scanf("%s",&first); cout<<"Enter the second
No activity results to display
Show More
Leave a comment: