I have a random question, but how would you link a string into a char?
To explain the program, it reads from a standard input character by character. Then it rewrites the it to make the output characters from uppercase to all lowercase..

if you would like to see what i have written so far, here it is.

#include <fstream>
#include <iostream>
#include <string>
#include <cstdlib>
#include <cstdlib>
#include <cstddef>
#include <cstring>
#include <sstream>
#include <iomanip>
#include <cctype>
using namespace std;
int main ()
{
    const string word="This is a test of your word  analysis program. How many words did you find that begin with a vowel? WHAT ABOUT STARTING WITH AN S OR ENDING IN AN s? Mary said, I like C++.";
        char x;

    while (cin.get (x))
    {
        if (isupper (x))
            cout<< tolower(x);
        else if (ispunct (x))
            ;
        cout<<word<<endl;
    }
    return 0;

}

x = tolower(x); is how you convert the character in variable x to lower-case.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.