Skip to main content
Code Review

Return to Answer

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
added 4 characters in body
Source Link
Snowhawk
  • 6.8k
  • 1
  • 19
  • 37
constconstexpr int number_of_questions = 20;
string questions[number_of_questions];
const int number_of_questions = 20;
string questions[number_of_questions];
constexpr int number_of_questions = 20;
string questions[number_of_questions];
deleted 24 characters in body
Source Link
Snowhawk
  • 6.8k
  • 1
  • 19
  • 37

Make sure std::getline actually read the value. Don't writecommit the read in value to your destination array-in values until you've ensured all values were read correctly.

Since you never use exists, you can omit it and evaluate the temporary returnedevaluated from std::findthe expression.

Make sure std::getline actually read the value. Don't write the read in value to your destination array until you've ensured all values were read correctly.

Since you never use exists, you can omit it and evaluate the temporary returned from std::find.

Make sure std::getline actually read the value. Don't commit the read-in values until you've ensured all values were read correctly.

Since you never use exists, you can omit it and evaluate the temporary evaluated from the expression.

Source Link
Snowhawk
  • 6.8k
  • 1
  • 19
  • 37
Loading
lang-cpp

AltStyle によって変換されたページ (->オリジナル) /