/*
* @author Damian Bloch
* Chapter08 Project02
* Program is to let the user enter a string and
* will output the sting in all uppercase letters.
*/
#include <cctype>
#include <iostream>
#include <string>
usingnamespace std;
char str1[80];
int main ()
{
string input;
string output;
cout << "Enter a string of characters: ";
cin >> input >> cin.get(str1, 80);
cout << endl;
for(int i=0 ; i < input.size() ; ++i)
{
input[i] = toupper(input[i]);
}
cout << "The uppercase letters are: " << input << "\n";
return 0;
}
I need help with this code.
im trying to get the cin.get working where the user is allowed to enter an 80 character string and I have no idea on how to do that.