Jump to content

Can you Help me About This Machine Problem in C++

- - - - -

  • Please log in to reply
2 replies to this topic

#1
renren00

renren00

    Newbie

  • Members
  • PipPip
  • 10 posts
This is the machine problem.

Write a program that will identify word that the user inputs and determine how many times that word uses the certain letters, that the word contains. The program must not accept a numeric value and special characters except the "-" that is needed in compound words as input . And the letters will be in alphabetical order.

Example :

I enter the word "letters"

The program must show:

e = twice
l = once
r = once
s = once
t = twice

If I enter the word "add5@6" with number or special character in the input word
the program will say "Wrong input" and will require the user to input another word.



I would appreciate your help guys. comment your program here or send it to my e-mail ren_olgames00@yahoo.com

i dont know how to trap the number of characters that the user input. if i would know how to do it i think i can make the problem, that is my only problem i dont know how to trap the number of words vertically, if its horizontal its easy because i just, i can trap only i character >.<

please help me give me hints , thank u

Edited by renren00, 16 January 2012 - 09:16 PM.


#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
What do you have so far?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
renren00

renren00

    Newbie

  • Members
  • PipPip
  • 10 posts
i need to know how to determine the number of characters entered by the user in the word. if u will give some tip on how to do it i can start to make the program by using array and some loops using ascii codes of the characters.

I mean C not C++ sorry for the inconvenience.

---------- Post added at 01:31 PM ---------- Previous post was at 01:03 PM ----------

i have read hour 13 in sams teach yourself c in 24 hours, and it help me alot. ill post my codes later and pls feel free to comment and make some alteration for improvement.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users