Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C++ pointers

Status
Not open for further replies.

Niclass

Programmer
Jul 11, 2000
4
CH
Hello from Switzerland... Is there anybody that can tell me what is a <b>pointer</b> and how do I have to use it... I have programmed in Java but there's no pointers! Thanks a lot!
 
Dear Niclass,<br><br>Well you sure picked one heck of a topic. Pointers go back to 'C' and are considered by many to be the most difficult topic in C/C++. Some books will devote an entire chapter to the explanation and discussion of pointers. Since I have never written a book I am probably not qualified to explain pointers to you or anyone else, but since you asked I will give it a whirl.<br><br>Ok... I started to explain... I had four paragraphs and had barely scratched the surface... it would just take too much time to give you a thorough explanation. I really suggest getting a book or two.<br><br>-pete<br>
 
Hi<br>I will give short information about pointers.<br>Pointers are address. You can ask, why we are using pointers in case of values. If we use pointers our program will be faster becouse we can access to address directly else when we compile our codes, the machine language will give addresses for each values ( this takes extra time of processor ) <br><br>This is the summary of the pointers. But you should read C, C++ books to get more informations. And you should care when you use pointers.<br><br>best regards.<br><br><br><br><br><br><br>&nbsp;&nbsp;<br><br>&nbsp;&nbsp;
 
um, why numerous reasons, all a pointer does is point to an address in memory, you can create dynamic arrays using this(linked list, binary tree , so forth), you can create function pointers to change which function to use. so forth. In java this may confuse you because Java has no pointers, the only way you can reference an object, is through it's name, and has no real concept of pointer to memory addresses. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
 
Dear Niclass,<br><br>Having been disappointed with my earlier post I decided to do a little research. A simple search on yahoo for the phrase &quot;C++ Pointers&quot; turned up this link on the first page:<br><br><A HREF=" TARGET="_new"> will get you started.<br><br>Also Yahoo seems to have a new results list design. It looks good and they are still not using CSS.<br><br>Good luck<br>-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top