Jump to content


the perfect book


8 replies to this topic

#1 donkeyman

    New Member

  • Members
  • PipPip
  • 28 posts

Posted 27 January 2007 - 05:23 PM

Hi, you may have seen my other post i admit i acted like a noob but i still want to make a x to bsp converter, but not right now maybee in a year or so. Now i am looking on a book on c++ game programing, a book that is aimed for compleat noobs to c++ (note i have some programing knowldge from a basic language called dbpro). I have searched on amazon and have found lots of book on game programing in c++ but they all asume you have c++ programing knowledge but i have bearly any. I no what things are like an arrow a fuction and so on but not general c++, If any one could help me find any book i would really really be thankfull for it. I am also sorry for my bad grammer i am from denmark.

Thanks!
donkeyman

#2 geon

    Senior Member

  • Members
  • PipPipPipPip
  • 812 posts

Posted 27 January 2007 - 06:00 PM

If you have no knowledge in C++, any beginners book should be fine. I am sure you can find some in your local library, or university library.

#3 Nils Pipenbrinck

    Senior Member

  • Members
  • PipPipPipPip
  • 597 posts

Posted 27 January 2007 - 06:34 PM

I suggest you start with c and first get the basics down..

You'll need to learn how to use a compiler, how to declare variables do stuff ect. Everything you'll learn in C can be used in C++ as well, so it's not wasted time. C however is much simpler than C++. And there is less stuff that might confuse you.

A good and very easy introduction can be found here:

http://www.scit.wlv.ac.uk/cbook/


You also need a C or C++ compiler to translate your sourcecodes to programs. Since you start from scratch I would suggest to not use MS Visual studio or GCC for the first steps. These compilers are great, but gcc is not easy to use and visual studio will overburden you with all it's buttons, windows, configurations, options ect.

A easy to use C-compiler that I suggest for beginners is lcc. You'll get it here:

http://www.q-softwar...ub/lccwin32.exe

It's a small download and the compiler/IDE is dead easy to use. You don't even need to create projects or anything like that to execute C-code. I think that's what you need for the first couple of weeks. (Heck, LCC is 10 times better than the state of the art compilers I had when I started..)

Play around with simple single file C-programs, learn the basics and once you've mastered that stuff and don't wonder what your code does you're ready for the move to c++ and a more complex development environment.

Nils

#4 donkeyman

    New Member

  • Members
  • PipPip
  • 28 posts

Posted 27 January 2007 - 07:32 PM

thanks evrey one for your help, looking at begginers books i seem to think i no it all but im not sure if i do. Like for example in the basic language i programed in an array was just like a varible that containd more varibls is this the same in c++ or not, also in c++ can i make a varible as easy as putting something like

health=100

to make a varible called health that has a value of 100 and to edit it i would have to only put

health=health-50

so im taking away 50 from the value of 100

I whant a book especially on object oriantated programing but there probly isnt any for begginers, but im still gonna look for one.

As far as i no directx is like a set of commands but not, to use theas commands i need to include them in my code such as

#include directdraw.h

or on thoas lines.

Does any one have any recomendations for a good book or mabee even one on object oriantated programing i really wanna start learning, for a complier i have devc++ but i also found a cheep version of visual studio on ebay should i get it it might come usefull later in my programing since i heard it one of the best.

Thnaks alot evrey one!
Donkeyman

#5 Nils Pipenbrinck

    Senior Member

  • Members
  • PipPipPipPip
  • 597 posts

Posted 28 January 2007 - 12:10 AM

If you think you already have the basics down:

can you write a c or c++ program that reads a list of numbers from a file and writes another file with the same numbers, but with all duplicate entries removed (e.g. all unique numbers)?

You have to know how to solve such simple problems before you start to work on something more complex. Otherwise you'll run into such a problem after a day or two and you can't solve it.

#6 monjardin

    Senior Member

  • Members
  • PipPipPipPip
  • 1033 posts

Posted 28 January 2007 - 06:16 AM

I'm not sure what "cheap version" of Visual Studio you found, but VC++ Express is available for free from Microsoft here. If you choose to use it instead of LCC, then make sure you explicitly follow all of the instructions on that MSDN page.
monjardin's JwN Meter (1,2,3,4,5,6):
|----|----|----|----|----|----|----|----|----|----|
*

#7 donkeyman

    New Member

  • Members
  • PipPip
  • 28 posts

Posted 28 January 2007 - 09:01 AM

Quote

If you think you already have the basics down:

can you write a c or c++ program that reads a list of numbers from a file and writes another file with the same numbers, but with all duplicate entries removed (e.g. all unique numbers)?

You have to know how to solve such simple problems before you start to work on something more complex. Otherwise you'll run into such a problem after a day or two and you can't solve it.

yea good piont i mean like i no what an array is but not how to use it im gonna look for some more books on amazon today hopefully i will thind something, is it worth the time learning c first if i learn c++ then it will be the same but with more features. In LCC can i make files like a dll.

Thanks!
Donkeyman

#8 donkeyman

    New Member

  • Members
  • PipPip
  • 28 posts

Posted 28 January 2007 - 04:08 PM

I think ive found it a begginers book to c++ in has good reviews and it assumes you have no knowledge of c++ sound just for me, heres the link to the page on amazon

http://www.amazon.co...ie=UTF8&s=books

#9 Mask

    New Member

  • Members
  • Pip
  • 4 posts

Posted 04 February 2007 - 09:31 AM

donkeyman said:

I think ive found it a begginers book to c++ in has good reviews and it assumes you have no knowledge of c++ sound just for me, heres the link to the page on amazon

http://www.amazon.co...ie=UTF8&s=books

Interesting, I looked through the preview of the book, and it looks exactly like what I need to begin my self-education in programming. I'll have t osee if I can get it in any of the books stores around town. (or at the very least, the library)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users