By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,569 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,569 IT Pros & Developers. It's quick & easy.

An example with lots of errors

P: n/a
Hello dear experts,
New to programming and while surfing the net to learn some examples,
this C++ (maybe C, but source file name's extension is "cpp") game
sample gave a lot of errors with the latest Dev C++ compiler. Maybe
there are headers which do not exist or something wrong about
"declerations"???

Where's the fault and possible reasons? With seeing that kind of
errors even at the beginning of C++ programming, i become very
pessimistic.

Link of example:
http://www.programmersheaven.com/d/click.aspx?ID=F53718

And here is the error screenshot reported by Dev C++ :
http://img48.imageshack.us/img48/292...examplevq7.jpg

Jul 11 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On 2007-07-11 22:17, Alf P. Steinbach wrote:
* kimiraikkonen:
>Hello dear experts,
New to programming and while surfing the net to learn some examples,
this C++ (maybe C, but source file name's extension is "cpp") game
sample gave a lot of errors with the latest Dev C++ compiler. Maybe
there are headers which do not exist or something wrong about
"declerations"???
If you want to learn C++ don't go grabbing the first stuff you find from
the net and look at that. It will not be very useful since a) it's
probably badly written, and b) probably uses non-standard header-files
and other dependencies which will make it harder both to compile and
understand. Get yourself a good book instead and look at the examples
and exercises there, you'll gain more from it.
See the compiler's error messages.

>Where's the fault and possible reasons? With seeing that kind of
errors even at the beginning of C++ programming, i become very
pessimistic.

Link of example:
http://www.programmersheaven.com/d/click.aspx?ID=F53718

This is a text only group. Don't push zip files on us.

>And here is the error screenshot reported by Dev C++ :
http://img48.imageshack.us/img48/292...examplevq7.jpg

This is a text only group. Don't push jpeg files on us.
A bit hash I think, all he did was post URLs, if you don't want to open
them, fine, but don't act as if he attached the stuff.

--
Erik Wikström
Jul 11 '07 #2

P: n/a
kimiraikkonen wrote:
On Jul 11, 11:17 pm, "Alf P. Steinbach" <a...@start.nowrote:
>* kimiraikkonen:
Hello dear experts,
New to programming and while surfing the net to learn some examples,
this C++ (maybe C, but source file name's extension is "cpp") game
sample gave a lot of errors with the latest Dev C++ compiler. Maybe
there are headers which do not exist or something wrong about
"declerations"???

See the compiler's error messages.
Where's the fault and possible reasons? With seeing that kind of
errors even at the beginning of C++ programming, i become very
pessimistic.
Link of example:
http://www.programmersheaven.com/d/click.aspx?ID=F53718

This is a text only group. Don't push zip files on us.
And here is the error screenshot reported by Dev C++ :
http://img48.imageshack.us/img48/292...examplevq7.jpg

This is a text only group. Don't push jpeg files on us. Learn how to
use your compiler from a command interpreter, capture the output, or,
find equivalent functionality in your chosen IDE.

The text-code based message have got too long to post here, as i
thought to be kind by giving the exact zip link if you appreciate.

Can't you give some help about possible reasons or faults just by
looking at the screenshot or the zip contained source code?
The code is not written in standard C++, the topic of this NG. It is not
written in C either. It seems to be written in an old dialect of C or C++,
relying on a bunch of nonstandard libraries, and to compile it, you
probably need some old compiler, for which this code was written. I suggest
you give it up. Surely, the game isn't that great, and it's a terrible
example to learn C++ from.

--
rbh
Jul 11 '07 #3

P: n/a
Erik and Robert,
Thanks for the comments. However, on net there are a lot of
"suspicous" tutorials or code examples about C++ as you've seen.

So, which resource or which book is the most necessary to begin
learning C++ step by step?

I appreciate to your directions and experiences from now.

Regards.

Jul 11 '07 #4

P: n/a
On 2007-07-11 23:39, kimiraikkonen wrote:
Erik and Robert,
Thanks for the comments. However, on net there are a lot of
"suspicous" tutorials or code examples about C++ as you've seen.

So, which resource or which book is the most necessary to begin
learning C++ step by step?
Accelerated C++ by Koenig and Moo is often recommended, also there's the
book Thinking in C++ by Bruce Eckel (hope I spelled that right) which is
available for free on his site (google and you shall find). Also I like
www.cplusplus.com and www.cppreference.com as references though there
are probably better around if you are willing to pay.

--
Erik Wikström
Jul 12 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.