URGENT ARRAY HELP! REALLY NEED HELP TONIGHT!

Hi, can someone explain to me why I am not getting any output from my program??

#include <iostream>

using namespace std;

int main ()
{
int arraySize; // used to store size of array chosen
bool arrayCheckA=false;
bool arrayCheckB=false;
bool arrayCheckC=false;
bool arrayCheckD=false;

cout << "This is an array manipulation program" << endl << endl;

cout << "Enter the size of the array ";
cin >> arraySize; // will become the size of the array count
char custumeArray[arraySize];

cout << endl << endl << "Enter any " << arraySize << " Characters, Digits, Special Symbols : ";

for(int i = 0; i<arraySize; i++)
{
cin >> custumeArray[i]; // used to create the array
}
cout << endl << endl << endl;
cout << "The array contains the following ";

for(int i=0; i<arraySize; i++)
{
cout << custumeArray[i];
}
cout<<endl;

for (int i=0; i<arraySize; i++)
{
if(isupper(custumeArray[i])){
cout << custumeArray[i] << " is a Capital Letter" << endl;
arrayCheckA=true;
}
}
if (arrayCheckA==false){
cout << "There are No Capital Letters in the Array" << "\n\n\n";
}

for (int i=0; i<arraySize; i++)
{
if(islower(custumeArray[i])){
cout << custumeArray[i] << " is a Small Letter" << endl;
arrayCheckB=true;
}
}
if (arrayCheckB==false){
cout << "The are No Small Letters" << endl;
}

for (int i=0; i<arraySize; i++)
{
if (isdigit(custumeArray[i])){
cout << custumeArray[i] << "is a Digit" << endl;
arrayCheckC=true;
}
}
if (arrayCheckC==false){
cout << "The are No Digits in the Array" << endl;
}

for (int i=0; i<arraySize; i++)
{
if ((custumeArray[i])){
cout << custumeArray[i] << " is a Special Symbol" << endl;
arrayCheckD=true;
}
}
if (arrayCheckD==false){
cout << "There are No Special Symbols" << endl;
}


return 0;
}

Last edited on
closed account (48T7M4Gy)
So which part of the following output isn't what you're getting?
Have you got your monitor turned on? :)


This is an array manipulation program

Enter the size of the array 3
Enter any 3 Characters, Digits, Special Symbols : de3



The array contains the following de3
There are No Capital Letters in the Array


d is a Small Letter
e is a Small Letter
3is a Digit
d is a Special Symbol
e is a Special Symbol
3 is a Special Symbol
 
Exit code: 0 (normal program termination)
Last edited on
Topic archived. No new replies allowed.