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 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
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
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.
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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$) {
}
...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
| |