Loading

cpp tips

1. 使用 {} 初始化可以 自动检查窄化

int x{2.7}; //会报错
posted @ 2024-05-17 19:36  big_shark  阅读(11)  评论(0)    收藏  举报