When I compile my money class, I get an error message for each overloaded operator saying 'long int Money::total' is private within this context. Am I not representing my money object right?
...
Type: Posts; User: blackjs
When I compile my money class, I get an error message for each overloaded operator saying 'long int Money::total' is private within this context. Am I not representing my money object right?
...
I am suppose to creat a Money class that has the following methos with operators for:
Addition, Assignment(+=), Substraction, Minus equal, Multiplication, Times equal, division, divide equal,...
I'm trying to count the occurences of the letters of the alphabet in a string. With this code I get 1 for each letter.
can u help......thank you.
# include <iostream.h>
# include "string.h"
...
that is an implicit declaration of function int tolower
that makes each letter equal 2
I still don't get it, i want it so the user can enter a line of text.
I am trying to count the occurences of each letter of the alphabet for a line of text.
here is what i have so far.
your help is greatly appreciated.
# include <iostream.h>
# include...
I'm trying to write a program to count the number of each letter of the alphabet and count the words. I have the word count but don't know how to start my letter counts.
thanks in advance for your...
How do you check a line of text using the cin.getline function and count the occurences of each letter of the alphabet.
thanks for your help