摘要: 主要注意它们的优先级都很高,且都是左结合的,不同在于点操作符操作的是对象,箭头操作符操作的是指针,且都能被其对应的类型的数值右值赋值。 以下是例子: #include<iostream> using namespace std; struct Point{ double x,y; }; int ma 阅读全文
posted @ 2018-08-29 14:42 zengzhaocheng 阅读(1198) 评论(0) 推荐(0)