无法理解编译器消息 [英] can't understand the compiler messages

查看:61
本文介绍了无法理解编译器消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好吗?

我自己一直在学习C ++,但最近我遇到了一个真正的问题。我正在学习使用多态的双链表的基本用法

。但是,我有编译器错误,我不知道它们是什么意思。我在网上搜索了有关如何解决问题的任何信息。但我从来没有找到

一个。

现在我想知道是否有任何网站告诉人们如何获得
了解那些编译器错误意味着什么,以及一些关于

的一般提示如何解决那些编译错误。如果我至少可以运行这个

程序,我可以使用调试器,但在这一点上,我甚至不能使用

调试器。 />
我开始意识到自己学习C ++的困难,所以我正在考虑参加一些在线C ++课程,我可以交互式地获得
向C ++提出有关C ++的经验的问题。有人可以给我任何建议吗?

我没有把我写的实际源代码,因为那是

而不是长代码,我不知道是否放这样在这个新闻组中,有一件事情可以适用于
。但是,如果有人会考虑看看我的代码,并给我任何建议,我很乐意

把实际的代码放在让我头疼的问题上。 />
非常感谢你,祝你有个美好的一天。

解决方案



" forgetten field" ; < TT ******* @ yahoo.com>在消息中写道

news:87 ************************** @ posting.google.c om ...

你好吗?
我自己一直在学习C ++,但最近我遇到了一个真正的问题。我正在学习使用多态的双链表的基本用法。


这是一个有点奇怪的组合。您是否使用多态来实现链接?
实现链接?我不认为这是个好主意。

然而,我有编译错误,我无法理解他们的意思。我在网上搜索了解如何解决问题的任何线索。但是我从来没有找到过一个。
现在我想知道是否有任何网站告诉人们如何理解那些编译器错误的意思,以及一些一般性的提示
如何解决那些编译错误。如果我至少可以运行这个程序,我可以使用调试器,但此时,我甚至不能使用
调试器。


这个地方是我解决编译器问题最好的地方,发布可编辑的

生成错误的代码,这个小组会很快解决它。 />

每个编译器都不同,abd每个人的编码风格都不同

(包括他们所犯的典型错误)。这意味着两个程序员

可以使用相同的编译器,仍然可以看到完全不同的错误

消息。这真的是不接受编译器错误消息的问题

字面意思,没有注意到前两个之后的消息或

三,并逐渐学习解释错误消息对你来说意味着什么。

我开始意识到学习C ++的难度全部来自
我自己,


绝对。一本好书虽然有所帮助。

所以我正在考虑参加一些在线C ++课程,我可以用C ++的经验交互式地向C ++提问。有人可以给我任何建议吗?


我不知道任何互动的地方。但如果你准备放慢这个地方的速度,那么这个地方就好了。

我没有把我写的实际源代码放在那里因为那个是一个很长的代码,我不知道这样的东西是否适合这个新闻组。


长源代码不是一个好主意,虽然有些人会准备

来阅读它。最好的方法是减少代码,直到它尽可能小,但仍然可以编译,但仍然包含你不理解的部分。我并不重要的是代码将不再具有任何感觉。你甚至可以通过这个过程来学习一些东西。

但是如果有人会考虑看看我的代码并给我任何建议,我很乐意把它放到让我头疼的实际代码。
非常感谢,祝你有个美好的一天。




没问题。很少有人在第一次发布之前就麻烦地了解这个小组




john




" forgotten field" < TT ******* @ yahoo.com>在消息中写道

news:87 ************************** @ posting.google.c om ...

你好吗?
我自己一直在学习C ++,但最近我遇到了一个真正的问题。我正在学习使用多态的双链表的基本用法。


这是一个有点奇怪的组合。您是否使用多态来实现链接?
实现链接?我不认为这是个好主意。

然而,我有编译错误,我无法理解他们的意思。我在网上搜索了解如何解决问题的任何线索。但是我从来没有找到过一个。
现在我想知道是否有任何网站告诉人们如何理解那些编译器错误的意思,以及一些一般性的提示
如何解决那些编译错误。如果我至少可以运行这个程序,我可以使用调试器,但此时,我甚至不能使用
调试器。


这个地方是我解决编译器问题最好的地方,发布可编辑的

生成错误的代码,这个小组会很快解决它。 />

每个编译器都不同,abd每个人的编码风格都不同

(包括他们所犯的典型错误)。这意味着两个程序员

可以使用相同的编译器,仍然可以看到完全不同的错误

消息。这真的是不接受编译器错误消息的问题

字面意思,没有注意到前两个之后的消息或

三,并逐渐学习解释错误消息对你来说意味着什么。

我开始意识到学习C ++的难度全部来自
我自己,


绝对。一本好书虽然有所帮助。

所以我正在考虑参加一些在线C ++课程,我可以用C ++的经验交互式地向C ++提问。有人可以给我任何建议吗?


我不知道任何互动的地方。但如果你准备放慢这个地方的速度,那么这个地方就好了。

我没有把我写的实际源代码放在那里因为那个是一个很长的代码,我不知道这样的东西是否适合这个新闻组。


长源代码不是一个好主意,虽然有些人会准备

来阅读它。最好的方法是减少代码,直到它尽可能小,但仍然可以编译,但仍然包含你不理解的部分。我并不重要的是代码将不再具有任何感觉。你甚至可以通过这个过程来学习一些东西。

但是如果有人会考虑看看我的代码并给我任何建议,我很乐意把它放到让我头疼的实际代码。
非常感谢,祝你有个美好的一天。




没问题。很少有人在第一次发布之前就麻烦地了解这个小组




john


>最好的方法是减少代码,直到它尽可能小

,但仍然可以编译并且仍然包含你不理解的部分。



因为你实际编译时遇到了麻烦我应该说


最好的方法是减少代码,直到它变得很小

尽可能但仍然会产生错误消息,你不会理解。


john

Hi,how are you?
I have been studying C++ by myself, but recently I am having a real
problem. I am learning about the basic usage of a doubly linked list
using polymorphism. However, I have got the compiler errors which I
just can''t understand what they mean. I searched the webs for any
clues on how to solve the problems. But I''ve never been able to find
one.
Now I am wondering if there is any website which tells people how to
understand what those compiler errors mean, and some general tips on
how to solve those compiler errors. If I can at least get to run this
program, I can use a debugger, but at this point, I can''t even use a
debugger.
I am beginning to realize the difficulty of learning C++ all by
myself, so I am thinking about taking some online C++ lessons where I
can interactively ask questions on C++ with somebody who is
experienced in C++. Could anybody give me any suggestions?
I did not put the actual source code that I wrote because that is
rather a long code, and I did not know if putting such a thing would
be suitable in this newsgroup. However if anybody would consider
taking a look at my code, and give me any suggestion, I would gladly
put the actual code that is giving me a headache.
Thank you very much, and have a good day.

解决方案


"forgotten field" <tt*******@yahoo.com> wrote in message
news:87**************************@posting.google.c om...

Hi,how are you?
I have been studying C++ by myself, but recently I am having a real
problem. I am learning about the basic usage of a doubly linked list
using polymorphism.
That''s a slightly strange combination. Are you using polymorphism to
implement a linked link? I don''t think that''s a good idea.
However, I have got the compiler errors which I
just can''t understand what they mean. I searched the webs for any
clues on how to solve the problems. But I''ve never been able to find
one.
Now I am wondering if there is any website which tells people how to
understand what those compiler errors mean, and some general tips on
how to solve those compiler errors. If I can at least get to run this
program, I can use a debugger, but at this point, I can''t even use a
debugger.
This place is the best I know for solving compiler problems, post compilable
code that generates the error and this group will solve it pretty quick.

Every compiler is different, abd everyones coding style is different
(including the typical mistakes they make). This means that two programmers
can work with the same compiler and still see completely different error
messages. It''s really a matter of not taking the compiler error messages
literally, not paying any attention to the messages after to first two or
three, and gradually learning to interpret what the error messages mean for
you.
I am beginning to realize the difficulty of learning C++ all by
myself,
Absolutely. A good book helps though.
so I am thinking about taking some online C++ lessons where I
can interactively ask questions on C++ with somebody who is
experienced in C++. Could anybody give me any suggestions?
I don''t know of any interactive place. But if you''re prepared to slow down a
bit this place is as good as it gets.
I did not put the actual source code that I wrote because that is
rather a long code, and I did not know if putting such a thing would
be suitable in this newsgroup.
Long source code is not a good idea, although some people will be prepared
to read it. The best approach is to cut down the code until it is as small
as possible but still compilable and still contains the piece you don''t
understand. I doesn''t matter much that the code will no longer make any
sense. You may even learn something by going though this process.
However if anybody would consider
taking a look at my code, and give me any suggestion, I would gladly
put the actual code that is giving me a headache.
Thank you very much, and have a good day.



No problem. Very few people take the trouble to find out about this group
before posting for the first time.

john



"forgotten field" <tt*******@yahoo.com> wrote in message
news:87**************************@posting.google.c om...

Hi,how are you?
I have been studying C++ by myself, but recently I am having a real
problem. I am learning about the basic usage of a doubly linked list
using polymorphism.
That''s a slightly strange combination. Are you using polymorphism to
implement a linked link? I don''t think that''s a good idea.
However, I have got the compiler errors which I
just can''t understand what they mean. I searched the webs for any
clues on how to solve the problems. But I''ve never been able to find
one.
Now I am wondering if there is any website which tells people how to
understand what those compiler errors mean, and some general tips on
how to solve those compiler errors. If I can at least get to run this
program, I can use a debugger, but at this point, I can''t even use a
debugger.
This place is the best I know for solving compiler problems, post compilable
code that generates the error and this group will solve it pretty quick.

Every compiler is different, abd everyones coding style is different
(including the typical mistakes they make). This means that two programmers
can work with the same compiler and still see completely different error
messages. It''s really a matter of not taking the compiler error messages
literally, not paying any attention to the messages after to first two or
three, and gradually learning to interpret what the error messages mean for
you.
I am beginning to realize the difficulty of learning C++ all by
myself,
Absolutely. A good book helps though.
so I am thinking about taking some online C++ lessons where I
can interactively ask questions on C++ with somebody who is
experienced in C++. Could anybody give me any suggestions?
I don''t know of any interactive place. But if you''re prepared to slow down a
bit this place is as good as it gets.
I did not put the actual source code that I wrote because that is
rather a long code, and I did not know if putting such a thing would
be suitable in this newsgroup.
Long source code is not a good idea, although some people will be prepared
to read it. The best approach is to cut down the code until it is as small
as possible but still compilable and still contains the piece you don''t
understand. I doesn''t matter much that the code will no longer make any
sense. You may even learn something by going though this process.
However if anybody would consider
taking a look at my code, and give me any suggestion, I would gladly
put the actual code that is giving me a headache.
Thank you very much, and have a good day.



No problem. Very few people take the trouble to find out about this group
before posting for the first time.

john


> The best approach is to cut down the code until it is as small

as possible but still compilable and still contains the piece you don''t
understand.



Since you are having trouble actually compiling I should say

The best approach is to cut down the code until it is as small
as possible but still produces the error message you don''t
understand.

john


这篇关于无法理解编译器消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆