Explanation of arrow and dot operator pertaining to different situations in C++

I understand the arrow operator to mean dereference a pointer to struct/object and get member for example:

int test;
test = one->two;

one being the object/struct pointer and two being the member, in this case an integer. Essentially the same as:

int test;
test = (*one).two;

However what if two was a pointer to an int? How would you retrieve the integer value stored at the address pointed to by two?





Need Your Help

How to get array from JSON?

php javascript jquery

I am trying to fetch data from MySQL table that have 2 columns, Temperature and Value. I want to store these values to JSON and then to pass to the client side script. My PHP code is:

How to generate additional Properties.Settings.Default in wpf?

c# wpf

I have the question about Properties.Settings.Default generation. By default there are only defaultInstance is generating in Settings.Designer.cs . How to add Properties.Settings.Default.WindowStat...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.