I am stuck with array and function at the same time :S
i am supposed to design a program that prompt the user for a word
"that is easy". i should count the number of times the letters entered appears in the word, "easy as well". this is when start giving problem
"and then continues prompting for a new letters. the program should list the letters found. it give me a hint to use a boolean array size 26 to track whether a letter has been found.
//declare Header Files
#include <iostream>
#include <string>
#include <cctype>
usingnamespace std;
//start main function
int main ()
{
//declare variables
string word, sentence;
char ch, letter;
int i,counter;
cout << "\nPlease enter a word: ";
cin >> word;
cout<<"The word contains "<<word.length()<<" characters."<<endl;
i have no idea how to use the array with funtion
help plz
Rofl I just came on the thread yesterday, and thought this forum was dead, but from looking at these replies it seems not that much dead, although the cummunity is a bit empty.
Oh and for the "thanks for no help" keep it to yourself, whenever I am in that same situation I try to figure it out on my own know that no one is obligated to help you.