C++ basic salient points that I made mistakes on

  1. int main(int argv, char* argc[]), argc[0] is always the program's name that you run
  2. switch() statement doesn't accept std::string. One way to solve this is to use enum, see here: link

你可能感兴趣的:(C++ basic salient points that I made mistakes on)