Now I am on my way to making a little command prompt program where it types out the alphabet and removes the vowels as a test. BUT, here's the thing, no errors nothing but it doesn't work.
Anyway here is the code if anyone can tell me what is wrong :-/

#include <iostream>
#include <string>

using namespace std;

int main( void )
{
    string word1 =  "A";
    string word2 =  "B";
    string word3 =  "C";
    string word4 =  "D";
    string word5 =  "E";
    string word6 =  "F";
    string word7 =  "G";
    string word8 =  "H";
    string word9 =  "I";
    string word10 = "J";
    string word11 = "K";
    string word12 = "L";
    string word13 = "M";
    string word14 = "N";
    string word15 = "O";
    string word16 = "P";
    string word17 = "Q";
    string word18 = "R";
    string word19 = "S";
    string word20 = "T";
    string word21 = "U";
    string word22 = "V";
    string word23 = "W";
    string word24 = "X";
    string word25 = "Y";
    string word26 = "Z";
    
    string phrase = word1 + " " + word2 + " " + word3 + " " + word4 + " " + word5 + " " + word6 + " " + word7 + " " + word8 + " " + word9 + " " + word10 + " " + word11 + " " + word12 + " " + word13 + " " + word14 + " " + word15 + " " + word16 + " " + word17 + " " + word18 + " " + word19 + " " + word20 + " " + word21 + " " + word22 + " " + word23 + " " + word24 + " " + word25 + " " + word26;
    cout << phrase << "\n\n";
    cout << "The alphabet has..." << phrase.size() << " letters in it.\n\n"; 
 
for (int i = 0; i < phrase.size(); i++)
cout << "The letter at position " << i << " is: " << phrase[i] << endl;


if(phrase.empty())
cout << "\n No more letters.\n";

 return 0;

}

It's probably disappearing before you can see the output.

Add cin.get(); at line 45, that will hold it open until you press [ENTER].

I hope this is a work in progress, I don't see anything that would even come close to skipping the vowels.

Yeh it is don't worry. =]

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.