🧙‍♂️
The Science of Deduction
The Science of Deduction
The Science of Deduction
  • 🧙‍♂️Ryan Fu's Home Page
  • C++ Primer
  • Accepted RFCs
  • Related to computer vision
    • 👾Tricks for Image Datasets
  • Index
    • 🍳工程伦理2组-相关案例资料整理分析
由 GitBook 提供支持
在本页

这有帮助吗?

C++ Primer

Primer

1. "显式"(explicit)和"隐式"(implicit)

  • 隐式类型转换:编译器自动进行的类型转换,无需明确指定类型;

    int x = 10;
    double y = x;  // 隐式将整数转换为浮点数
  • 显式类型转换:指定转换类型,避免隐式类型转换,可以在构造函数前使用 explicit ;

    explicit TrieNode(std::map<char, std::shared_ptr<const TrieNode>> children) : children_(std::move(children)) {}

上一页Ryan Fu's Home Page下一页Tricks for Image Datasets

最后更新于8个月前

这有帮助吗?