cin.get(cin.rdbuf()->in_avail()+1);
what does this code mean?, i am using this code for devc++ to pause at runtime and closes if u hit enter.
It gets all of the characters from std::cin that are currently in it, and then an extra one (for the enter).
Topic archived. No new replies allowed.