Okay this works:
Code:
#include <iostream>
#include <vector>
#include <stdlib.h>
#include <fstream>
using namespace std;
typedef vector<char*> CV;
CV CharacterVector;
ofstream fout;
int main(void)
{
fout.open("crap.db");
int Number = 0;
for( ; ; )
{
CharacterVector.push_back(new char[50]);
cout << "enter a character array "<< endl;
cin.getline(CharacterVector[Number], 50);
if (!stricmp(CharacterVector[Number], "0"))
{
cout << "You have chosen to quit" << endl;
break;
}
else
{
fout << CharacterVector[Number] << endl;
Number++;
}
}
fout.close();
return 0;
}
Thanks lightatdawn for trying to help even though you said hell to me
Moi...I AM a novice programmer for all intensive purposes, pointing that out doesn't do any good...ever...