摘要: 1. do not need exception message try { // } catch (...) { // } 2. need exception message try { // } catch (const std::exception& e) // reference to th 阅读全文
posted @ 2022-12-22 18:18 shendawei 阅读(34) 评论(0) 推荐(0)
摘要: 1. initial // https://en.cppreference.com/w/c/language/array_initialization 2. get max or min element // array int a[6] = { 1, 45, 54, 71, 76, 12 }; a 阅读全文
posted @ 2022-12-22 14:39 shendawei 阅读(80) 评论(0) 推荐(0)
摘要: 1. get the unicode of a character // python code = ord(u"印") print(code, type(code)) """ Result: 21360 <class 'int'> """ 阅读全文
posted @ 2022-12-22 10:45 shendawei 阅读(17) 评论(0) 推荐(0)