Archive: 2021/3

const -> pointer

Const was used with Pointer. The first case: The address which Pointer contained is a Constant, Can’t be changed, but you can change the Data pointed to: 12345int daysInMonth = 30;int * const pDaysIn

dec、hex、oct

cout利用控制符dec、hex、oct分别输出dec、hex、out进制,具体哪个是哪个你查查字典吧~ 123456789101112131415void (){​ int a = 42;​ cout<<"a = "<<a<<endl;​ cout<<hex; //十六进制​ cout<<"a = "&l

post/posts

想开头好好把c++补一下,嗯就从现在开始吧,这个博客以后不仅仅是记录生活的了。