I am trying to use getline to read in a string but its not working
Code:#include <cstdlib> #include <iostream> using namespace std; /* * */ int main(int argc, char** argv) { char *first, last; string s; cout << "Enter your first anames: "; cin.getline(first,255); cout << "Your initials are " << first ; return 0; }