cin, getline skipping input
Reference: https://rainflys.tistory.com/75 Code Reference: https://www.cprogramming.com/tutorial/lesson6.html Reference 2: https://jhnyang.tistory.com/107 여기에도 정말 잘 설명되어있다. #include using namespace std; int main() { int x; // A normal integer int *p; // A pointer to an integer p = &x; // Read it, "assign the address of x to p" cin>> x; // Put a value in x, we could also use *p here cin.ignore();..
c++
2020. 9. 3. 12:25