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))
    return 0;

10 Years
Discussion Span
Last Post by kittycat07us
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.