Does sizeof(pointer) depend on the object type?

This question already has an answer here: The Definitive C++ Book Guide and List 1 answer Is the sizeof(some pointer) always equal to four? 16 answers Please explain why sizeof(B*) return 4? It returns 4 because size of a pointer variable is 4 in your system. What exactly pointer to object represents in memory? Objects reside in memory, and pointer to an object contains the starting

sizeof(指针)是否依赖于对象类型?

这个问题在这里已经有了答案: 最终的C ++图书指南和列表1的答案 sizeof(某个指针)总是等于四? 16个答案 请解释为什么sizeof(B *)返回4? 它返回4,因为系统中指针变量的大小是4。 内存中究竟指向对象的是什么? 对象驻留在内存中,指向对象的指针包含该对象的起始内存地址。 例如,如果您的B对象的大小为100字节,并且它放置在1024-1123(100字节)的内存位置,则指向该对象的指针将保存值'024(起始地

how to become an object oriented programmer

Possible Duplicate: The Definitive C++ Book Guide and List Hi guys, I am a software engineer and I work on C, but I want to become a good programmer in oop's especially in C++, I 've been reading on learning the c++ syntax. Can anyone please suggest me books or useful links or any small open source project that 'll help me become a good programmer in c++. The C++ Programming

如何成为面向对象的程序员

可能重复: 最终的C ++图书指南和列表 嗨,大家好, 我是一名软件工程师,我从事C语言工作,但是我想成为一名优秀的编程人员,特别是在C ++中,我一直在阅读学习C ++语法。 任何人都可以请建议我书籍或有用的链接或任何小型的开源项目,这将帮助我成为一名优秀的c ++程序员。 由其架构师编写的C ++编程语言是关于该语言的开创性着作。 http://en.wikipedia.org/wiki/The_C%2B%2B_Programming_Language 阅读21天内的C

Resources for learning C++ and C++ IDEs

Possible Duplicate: The Definitive C++ Book Guide and List Learning C++ Language Hello I am just starting to learn C++, does anyone have any suggestions for C++ learning resources, for example books and web sites. In addition, does anyone have any suggestions for IDEs? Many years ago I used Bruce Eckel's books - they were not a 100% perfect but they explained things well. And probab

学习C ++和C ++ IDE的资源

可能重复: 最终的C ++图书指南和列表 学习C ++语言 你好,我刚刚开始学习C ++,有没有人对C ++学习资源有任何建议,例如书籍和网站。 另外,有没有人有任何IDE的建议? 许多年前,我用布鲁斯埃克尔的书 - 他们不是100%完美的,但他们解释得很好。 他们现在最好的事情可能是免费在线提供。 http://www.ibiblio.org/pub/docs/books/eckel/ 你是否熟悉任何其他编程语言(如C等)? 如果你是,你应该马上开始把你的

How can I learn C++

Possible Duplicate: The Definitive C++ Book Guide and List I decided to learn C++, can you please help me on this? Which books to read and programs to use. Thanks to all guys! Nicola. When I took my first C++ class in school we went directly from "How to Program in C++ 5th edition". It wasn't bad as long as we had someone to explain the things we didn't understand.

我如何学习C ++

可能重复: 最终的C ++图书指南和列表 我决定学习C ++,你能帮我解决这个问题吗? 哪些书可供阅读和计划使用。 感谢所有人! 尼古拉。 当我在学校学习第一个C ++类时,我们直接从“How to Program in C ++ 5th edition”中学习。 只要我们有人解释我们不理解的事情,这并不坏。

Starting with C++ knowing the basics

Possible Duplicate: The Definitive C++ Book Guide and List I've been messing around with C# for some time now and I know how to work with variables, classes, parameters etc. I'm learning more everyday and I would like to start with C++. I've been looking around, but every book or course I find starts at the very basics of programming in general. Who knows some good C++ material

从C ++开始了解基础知识

可能重复: 最终的C ++图书指南和列表 我一直在用C#搞乱一段时间,我知道如何使用变量,类,参数等。我每天都在学习更多,我想从C ++开始。 我一直在环顾四周,但是我发现每一本书或课程都从一般的编程基础开始。 谁知道一些很好的C ++材料给那些已经知道基础知识的人? 提前致谢! 它被问了一百万次,但我想答案重申。 如果你知道一些编程,你需要加速C ++。 没有竞争。

Integer to Boolean strange syntax

This question already has an answer here: The Definitive C++ Book Guide and List 1 answer Have a read here: http://en.cppreference.com/w/cpp/language/operator_comparison The result of operator != is a bool. So the person is saying "compare the value in i with 0". If 'i' is not equal to 0, then the '!=' returns true. So in effect the value in b is "true if

整数到布尔奇怪的语法

这个问题在这里已经有了答案: 最终的C ++图书指南和列表1的答案 请在这里阅读:http://en.cppreference.com/w/cpp/language/operator_comparison 运算符!=的结果是一个布尔值。 所以这个人说“比较我的值和0”。 如果'i'不等于0,那么'!='返回true。 所以实际上,如果'我'是零而不是零“,那么b中的值就是”真“ 编辑:为了回应OP对此的评论,是的,如果您使用任何其他返回bool的操作符,您可

The * in C++ Initialisations

Possible Duplicate: The Definitive C++ Book Guide and List I'm new to C++ and have been playing around witha few examples, I was just wondering what the * meant when initialising a class. Normally in AS3 I would do this: MyClass myClass = new MyClass But I have seen this in c++ MyClass *myClass = new MyClass What is the star for, I;ve seen it used sometimes and not others. Thanks

*在C ++初始化中

可能重复: 最终的C ++图书指南和列表 我是C ++的新手,一直在玩几个例子,我只是想知道*初始化一个类时的含义。 通常在AS3中,我会这样做: MyClass myClass = new MyClass 但我在c ++中看到了这一点 MyClass *myClass = new MyClass 我的明星是什么,我看到它有时使用而不是其他。 谢谢! C ++中的星号意味着许多事情取决于它在程序中的位置。 在此特定实例中,它将myClass的含义修改为指向MyClass实例的指针

How to start Game Developing?

This question already has an answer here: The Definitive C++ Book Guide and List 1 answer I think one of the best ways to learn about game development is to jump straight into a game engine. One good game engine is Unreal Engine 3. It's free for non-commercial use and there's countless resources and tutorials. Take a look at these links: http://www.unrealengine.com/udk/ http://

如何开始游戏开发?

这个问题在这里已经有了答案: 最终的C ++图书指南和列表1的答案 我认为了解游戏开发的最好方法之一就是直接跳入游戏引擎。 一个好的游戏引擎是虚幻引擎3.它是免费的非商业用途,并有无数的资源和教程。 看看这些链接: http://www.unrealengine.com/udk/ http://gamedev.tutsplus.com/articles/how-to-learn/how-to-learn-udk-the-unreal-development-kit/

First Steps in Learning C++

Possible Duplicate: The Definitive C++ Book Guide and List I want to be a programmer; and I want to learn the basics of C++ . Can anyone give me any pointers on how to start? I'm currently a complete novice and have no programming experience. There are lots of tutorials available online. Just search for tutorial and C++. Here is one for instance: http://www.cprogramming.com/tutor

学习C ++的第一步

可能重复: 最终的C ++图书指南和列表 我想成为一名程序员; 我想学习C ++的基础知识。 任何人都可以给我任何指示如何开始? 我目前是一个完整的新手,没有编程经验。 网上有很多教程。 只需搜索教程和C ++。 这里是一个例如: http://www.cprogramming.com/tutorial/lesson1.html 另一种选择是投资一本书!

How to start object orient programming in C++?

Possible Duplicate: The Definitive C++ Book Guide and List Basically I am from C, Embedded C field. After working for 5 yrs in this field, I would like to start C++. Now, I have started learning C++. But the Class concept is not clicking in my head. Please suggest me how should I start Class concept or some good and simple website where I can start C++ easily. And please suggest me some

如何在C ++中启动面向对象编程?

可能重复: 最终的C ++图书指南和列表 基本上我来自C,嵌入式C领域。 在这个领域工作了5年后,我想开始C ++。 现在,我开始学习C ++。 但班级概念并没有点击我的脑海。 请建议我该如何启动Class概念或一些简单易用的网站,以便我可以轻松启动C ++。 请给我建议一些很好的C ++问题(我可以在这里找到一些C ++练习的网站)。 看看Definitive C ++ Book Guide。 既然你有C背景,我会推荐Koenig和Moo的“Accelerated C ++