Here is the code, I use Codeblocks, miwGW compiler
#include <iostream>
#include <string.h>
using namespace std;
int main()
{
int L; char sir[100];
cin>>L;
cin.getline(sir,100);
return 0;
}
After reading the L value , the execution just stop and I can't read anymore the char variable, "sir". Why ?