Hot answers tagged

6 votes

Mathematical expression evaluator (C++)

For a beginner this already quite advanced and well-written code. Improving custom exceptions It's great that you have custom exceptions that derive from ...
  • 35.7k
5 votes
Accepted

Processing lines of a file with various space-separated fields of strings, hex addresses, and integer addresses

I think you would benefit from re-interpreting this input as having "only one format", with one mandatory field and three other optional fields. A regex can capture this better than your ...
  • 53.6k
2 votes

Parse a text file, and map to an out-of-scope POJO

Your questions: SonarQube is wrong and you are right. That is the correct way to skip a line. You can use @SuppressWarnings to get rid of the warnings, or you can ...
  • 6,416

Only top scored, non community-wiki answers of a minimum length are eligible