Its the newest book ive found :P .
And :( i cant get getline to work
i type cin.getline(string)
and getline( cin, string)
and it says no matching functions for call to some gibberish83424ujrfh candidates are more giberish getline std giberuish
Nvm looked it up and copy pasted code and it worked but my code looked the same :( dont no why it didnt work :PCode:#include <iostream>
#include <string>
#include <windows.h>
using namespace std;
int main()
{
string theWord = ""; // do not need an array at all
cout << "Enter a word to print 1 character at a time: ";
cin.getline (theWord);
for ( int i = 0; i < theWord.size(); i++ ) {
cout << theWord[ i ] << "";
Sleep(40);
}
return 0;
}