I want to input a string with VC, but it seems the getline function didn't work, when I run my program, the "cin" part was skipped. Here is my code
printf("Exercise 1\n");
printf("Please enter the sentence you want\n");
char str[256];
std::cin.getline(str, 256);
std::cout << str;
Here are my headers
#include <iostream>
#include <string>
#include <bitset>
I'm using VS2015 community, is there anything wrong with my compiler?