コード例 #1
0
ファイル: main.cpp プロジェクト: bithium/qibuild
int main() {
  std::cout << "Hello, world" << std::endl;
  std::cout << "The answer is: "
            << get_answer_to_the_question_of_life_universe_and_everything()
            << std::endl;
  return 0;
}
コード例 #2
0
ファイル: main.cpp プロジェクト: Giessen/qibuild
int main() {
  std::cout << "Hello, world" << std::endl;
  std::cout << "The answer is: "
            << get_answer_to_the_question_of_life_universe_and_everything()
            << std::endl;
  try {
    kaboom();
  }
  catch (std::exception &e) {
    std::cout << "I just saved the world!" << std::endl;
    std::cout << "Error was: " << e.what() << std::endl;
  }
  return 0;
}