473,385 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

An example with lots of errors

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
4 1906
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: Alberto | last post by:
An OUTSTANDING example of a rebuttal. Worth a glance. Rather long, OBVIOUSLY feel fee to dismiss it entirely if not interested. But this habit of the rebuttals must go to a stop (forgive odd...
3
by: Gérard Talbot | last post by:
Hello all, When webfonts are used for purely cosmetic/ornemental reasons and on a large scale, I don't agree. When webfonts are used because Unicode support among browsers for a particular...
7
by: Rich Grise | last post by:
OK, I don't know if this is Off-Topic for the group(s), because "QT" isn't "Pure C++", and Slackware is a distro, but those guys are sharp. :-) And I've crossposted to sci.electroncs.design because...
5
by: Bruce | last post by:
I am getting a lot of link errors when compiling in the debug build but not release. I am compiling a CLR managed code class library. I believe the link errors are actually being caused by a...
318
by: jacob navia | last post by:
Rcently I posted code in this group, to help a user that asked to know how he could find out the size of a block allocated with malloc. As always when I post something, the same group of people...
25
by: meltedown | last post by:
This is supposed ot be an example: http://www.ajaxtutorial.net/index.php/2006/11/30/simple-ajax-using-prototype-part-2/ It says : This example is probably the simplest example you will ever...
3
by: d d | last post by:
I have a large object with many sub-objects. They may go down 4 or 5 levels and I'm not sure how best to code a method that does operations on that data. Here's an attempt to make it an isolated...
2
by: =?Utf-8?B?UmFuZHlz?= | last post by:
This just started when I updated to sp 1 working on a APS.net, Visual Studio 2008, c# Project. When I open a project, I get tons of Errors showing in the list 300+ if I double click on them I go...
2
by: =?Utf-8?B?UmFuZHlz?= | last post by:
This just started when I updated to sp 1 working on a APS.net, Visual Studio 2008, c# Project. When I open a project, I get tons of Errors showing in the list 300+ if I double click on them I go...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.