From 9e1c3a9abd2e5fe99b2b700fadc6eee1f472655b Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Mon, 8 Jun 2020 20:34:54 +0800 Subject: [PATCH] Reformat code and add cJSON_print function --- practical_exercises/10_day_practice/day9/异常例子/3.cpp | 6 +++--- practical_exercises/10_day_practice/day9/异常例子/9.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/practical_exercises/10_day_practice/day9/异常例子/3.cpp b/practical_exercises/10_day_practice/day9/异常例子/3.cpp index bad186e..3783762 100644 --- a/practical_exercises/10_day_practice/day9/异常例子/3.cpp +++ b/practical_exercises/10_day_practice/day9/异常例子/3.cpp @@ -3,11 +3,11 @@ using namespace std; void temperature(int t) { try{ - if(t==100) throw "е㣡"; - else if(t==0) throw "㣡"; + if(t==100) throw "It's at the boiling point."; + else if(t==0) throw "It reached the freezing point"; else cout<<"the temperature is OK..."<