I do not understand pointers. Where can I learn more about them?
我不明白指针。我在哪里可以了解更多相关信息?
8 个解决方案
#1
Richard Buckland's lecture about pointers is highly recommendable.
Richard Buckland关于指针的讲座非常值得推荐。
#2
The best way to understand pointers is to write assembly, I found.
我发现,理解指针的最好方法是编写程序集。
#4
I personally like the quite straightforward cplusplus.com tutorial on pointers.
我个人喜欢关于指针的非常简单的cplusplus.com教程。
#5
My C language bible is "C-The complete Reference" by Schildt. Chapter 5 is all about pointers.
我的C语言圣经是Schildt的“C-The Complete Reference”。第5章是关于指针的。
If you just think of the pointer as being the address of something - like the address in a letter telling you how to find the house - then you will be most of the way there.
如果你只是把指针想象成某个东西的地址 - 就像一封信中告诉你如何找到房子的地址 - 那么你将会在那里大部分时间。
#6
Deitel & Deitel C how to program C++ version of the book preview on Google Books
Deitel&Deitel C如何在Google Books上编写图书预览的C ++版本
#7
Pointers on C (Paperback) by Kenneth Reek (Author)
C(平装)上的指针作者Kenneth Reek(作者)
#8
Lot's of great references suggested. I'd just like to add one thing:
很多很好的参考建议。我只想补充一点:
Play with them!
和他们一起玩!
Once you understand them on the theoretical level from the books, articles, lectures, videos above then you should set yourself to some task that that will allow you to make mistakes, find those mistakes and fix mistakes.
一旦你从上面的书籍,文章,讲座,视频理论层面理解它们,那么你应该把自己设定为一个可以让你犯错误,发现错误并修复错误的任务。
Think about implementing something like a linked list (double or singly linked), binary tree, or similar data structure. Then write some code to insert and remove values from your structure. In completing the task you'll definitely feel more comfortable with them, and get some experience debugging pointer problems.
考虑实现类似链表(双链接或单链接),二叉树或类似数据结构的东西。然后编写一些代码来插入和删除结构中的值。在完成任务时,您肯定会对它们感到更舒服,并获得一些调试指针问题的经验。
#1
Richard Buckland's lecture about pointers is highly recommendable.
Richard Buckland关于指针的讲座非常值得推荐。
#2
The best way to understand pointers is to write assembly, I found.
我发现,理解指针的最好方法是编写程序集。
#3
#4
I personally like the quite straightforward cplusplus.com tutorial on pointers.
我个人喜欢关于指针的非常简单的cplusplus.com教程。
#5
My C language bible is "C-The complete Reference" by Schildt. Chapter 5 is all about pointers.
我的C语言圣经是Schildt的“C-The Complete Reference”。第5章是关于指针的。
If you just think of the pointer as being the address of something - like the address in a letter telling you how to find the house - then you will be most of the way there.
如果你只是把指针想象成某个东西的地址 - 就像一封信中告诉你如何找到房子的地址 - 那么你将会在那里大部分时间。
#6
Deitel & Deitel C how to program C++ version of the book preview on Google Books
Deitel&Deitel C如何在Google Books上编写图书预览的C ++版本
#7
Pointers on C (Paperback) by Kenneth Reek (Author)
C(平装)上的指针作者Kenneth Reek(作者)
#8
Lot's of great references suggested. I'd just like to add one thing:
很多很好的参考建议。我只想补充一点:
Play with them!
和他们一起玩!
Once you understand them on the theoretical level from the books, articles, lectures, videos above then you should set yourself to some task that that will allow you to make mistakes, find those mistakes and fix mistakes.
一旦你从上面的书籍,文章,讲座,视频理论层面理解它们,那么你应该把自己设定为一个可以让你犯错误,发现错误并修复错误的任务。
Think about implementing something like a linked list (double or singly linked), binary tree, or similar data structure. Then write some code to insert and remove values from your structure. In completing the task you'll definitely feel more comfortable with them, and get some experience debugging pointer problems.
考虑实现类似链表(双链接或单链接),二叉树或类似数据结构的东西。然后编写一些代码来插入和删除结构中的值。在完成任务时,您肯定会对它们感到更舒服,并获得一些调试指针问题的经验。