Try not to use
using namespace std
Try not to useusing namespace std
.iostream
is a system header, so it should be surrounded by angle brackets as such:#include <iostream>
Quotes are only used for user headers.
system("PAUSE")
isn't very good to use for a number of reasons for a number of reasons, mostly relating to performance and portability.Here's one alternative that avoids these problems:
std::cin.get();
It'll ask for a character input (with Enter) instead of any key by itself, however.
iostream
is a system header, so it should be surrounded by angle brackets as such:#include <iostream>
Quotes are only used for user headers.
system("PAUSE")
isn't very good to use for a number of reasons, mostly relating to performance and portability.Here's one alternative that avoids these problems:
std::cin.get();
It'll ask for a character input (with Enter) instead of any key by itself, however.
iostream
is a system header, so it should be surrounded by angle brackets as such:#include <iostream>
Quotes are only used for user headers.
system("PAUSE")
isn't very good to use for a number of reasons, mostly relating to performance and portability.Here's one alternative that avoids these problems:
std::cin.get();
It'll ask for a character input (with Enter) instead of any key by itself, however.
iostream
is a system header, so it should be surrounded by ankleangle brackets as such:#include <iostream>
Quotes are only used for user headers.
system("PAUSE")
isn't very good to use for a number of reasons, mostly relating to performance and portability.Here's one alternative that avoids these problems:
std::cin.get();
It'll ask for a character input (with Enter) instead of any key by itself, however.
iostream
is a system header, so it should be surrounded by ankle brackets as such:#include <iostream>
Quotes are only used for user headers.
system("PAUSE")
isn't very good to use for a number of reasons, mostly relating to performance and portability.Here's one alternative that avoids these problems:
std::cin.get();
It'll ask for a character input (with Enter) instead of any key by itself, however.
iostream
is a system header, so it should be surrounded by angle brackets as such:#include <iostream>
Quotes are only used for user headers.
system("PAUSE")
isn't very good to use for a number of reasons, mostly relating to performance and portability.Here's one alternative that avoids these problems:
std::cin.get();
It'll ask for a character input (with Enter) instead of any key by itself, however.
iostream
is a system header, so it should be surrounded by ankle brackets as such:#include <iostream>
Quotes are only used for user headers.
system("PAUSE")
isn't very good to use for a number of reasons, mostly relating to performance and portability.Here's one alternative that avoids these problems:
std::cin.get();
It'll ask for a character input (with Enter) instead of any key by itself, however.