Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can not find my error ? Help

 
G. Graz
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can not get my CharacterCount class to work correctly anyone have any ideas what I am missing ? Thank you for the help !




 
Henry Wong
author
Marshal
Pie
Posts: 21003
77
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the class compile? If not, what is the compile error? If yes, then what is the class supposed to do, and what does it do?

Henry
 
G. Graz
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it does compile , This program reads a given text, outputs the text as is, and prints the number of lines and the number of times each letter appears in the text. An uppercase letter and a
lowercase letter are treated as being the same; that is,
they are tallied together.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Greg Grazioli:
Yes it does compile , This program reads a given text, outputs the text as is, and prints the number of lines and the number of times each letter appears in the text. An uppercase letter and a
lowercase letter are treated as being the same; that is,
they are tallied together.


Is that what it actually does or what it is supposed to do ? If it is what it is supposed to do, then tell us what it actually is doing.
 
camilo lopes
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see try {} and catch{} is required. See examples below:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic