C/C++ :: How To Cout The String Characters Themselves
May 11, 2014Iam working with arrays and i cant get to the write solution to cout the characters.
the Question is : Write a program that inputs a character string from the user as an input (using cin.get())and store it in myStr[ ] array.Assume that the length of the input string is less than 100 characters and the string may contain lower case, upper case, and/or symbols.The program should then print the number of lower case, upper case, digits, and symbols along with the characters themselves.
my code :
#include <iostream>
#include <string>
#include<iomanip>
using namespace std;
int main() {
int ctr1=0, ctr2=0, i=0, ctr3=0;
[Code] ...
What i have now, how can i cout the uppercase characters and the lower case characters and the symbol characters !