User Profile

Collapse

Profile Sidebar

Collapse
mamabear
mamabear
Last Activity: Oct 7 '10, 05:27 PM
Joined: Jun 27 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mamabear
    replied to How to remove one character on a string? HELP!
    in C
    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?
    See more | Go to post

    Leave a comment:


  • mamabear
    replied to How to remove one character on a string? HELP!
    in C
    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....
    See more | Go to post

    Leave a comment:


  • mamabear
    started a topic How to remove one character on a string? HELP!
    in C

    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
    ...
    See more | Go to post
    Last edited by Niheel; Jun 27 '10, 04:57 PM. Reason: please use code tags to post code
No activity results to display
Show More
Working...