📜  c++ -> - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:47.265000             🧑  作者: Mango

代码示例1
struct car {
    int year
      int vin; 
}

struct car myCar;
p_myCar = &myCar;

myCar.year = 1995;
// '->' allows you to use the '.' with pointers
p_myCar->vin = 1234567;