Suppose I want the user himself to enter the data into a vector. How should I go about doing it? cin wouldn't work, neither does cin.get.
Example:
Also, there was a warning on using alphabet.size() over there while the program is as incomplete as it is.Code:#include <iostream>
#include <vector>
using namespace std;
void main (void)
{
vector<char>alphabet;
//user inputs data...but how? fill in please =)
for(int i = 0; i < alphabet.size(); i++)
{
cout << alphabet[i];
}
cout << endl;
system("pause");
}
Warning C4018: '<' : signed/unsigned mismatch