i have a problem with input char to my program
#include <iostream>
using namespace std;
int main()
{
int choise;
char word[81];
cin >> choise;
cout << "enter the word:" << endl;
cin.getline(word, 81);
return 0;
}
the visual studio open the input to "choise" but skip on cin.getline (it the same if i replace it with gets_s).
i tried to write cin.get(); before the "getline"... but then the program not get's the first char (if i put 'aa' it get 'a') what can i do? thanks