PDA

View Full Version : C or C++ book?



the zack
October 8th, 2006, 03:57
I have a couple of questions. I think it would be a good idea if i bought a book about c or c++ so I could start programming possibly in the PSP. Should I buy a C or C++ book? how do I get the examples in the books to work for the PSP? I did some of the psp tutorials but i want to buy a book for programming, to get some good experience. have any suggestions for books that I would find at my local barnes and noble? I saw a book called learn C++ in 24 hours that looks pretty good...

weirdelf
October 8th, 2006, 09:55
you can download previously published books at http://www.freeprogrammingresources.com/cppbooks.html
or just google "c++ book"

ACID
October 8th, 2006, 09:56
Great link weirdelf

yaustar
October 8th, 2006, 13:39
Free C++ Ebooks:
Thinking in C++: http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html
Thinking Like a Computer Scientist: http://www.ibiblio.org/obp/thinkCS/cpp/english/

To buy:
Beginning C++ Game Development: http://www.amazon.com/Beginning-C++-Game-Programming-Development/dp/1592002056

The C Programming Language: http://www.amazon.com/C-Programming-Language-2nd/dp/0131103628

train2335
October 8th, 2006, 22:44
I started with C++ Without Fear. It was coded by a top coder at Microsoft and he explains things very well. I recommend it!

gunntims0103
October 8th, 2006, 22:49
yea i was thinking of buying a book myself. do they really sell them at barnes and nobles???........ i gotta check that out.......... maybe pic up a copy of the lua programming book as well

gamehunter101
October 8th, 2006, 22:59
http://newdata.box.sk/bx/c/

give that one a try

bronxbomber92
October 8th, 2006, 23:02
PM me for some good links ;)

the zack
October 9th, 2006, 14:58
you know what is pissing me off? I am trying to make helloworld with my new C++ book but when I compile it it just exits right out of it before I can even see it. here is the code:

#include <iostream>

int main()
{
std::cout << "aloaldafgd\n";
return 0;
}

weirdelf
October 9th, 2006, 17:56
Is that the whole script?

ACID
October 9th, 2006, 17:58
you know what is pissing me off? I am trying to make helloworld with my new C++ book but when I compile it it just exits right out of it before I can even see it. here is the code:

#include <iostream>

int main()
{
std::cout << "aloaldafgd\n";
return 0;
}
Wheres the rest of the code:

gunntims0103
October 9th, 2006, 18:34
i need some brushing up for some codes on lua any e-books/sites that someone could direct me too......actually i might just head to barnes and nobles and pick up a copy of LUA the programming launguage and c/c+ for dummies

gamehunter101
October 9th, 2006, 18:46
#include <iostream>

int main()
{
std::cout << "aloaldafgd\n";
return 0;
}

its not really an error,go to cmd and just browse to where the exe is,to make life easier replace reture 0 with

while (1);

the zack
October 9th, 2006, 19:42
thank you gamehunter101 you solved my problem!

yaustar
October 9th, 2006, 19:42
#include <iostream>

int main(int arg, char ** argv)
{
std::cout << "Hello World" << std::endl;
char temp;
std::cin >> temp;
return 0;
}

This waits for input before closing. Without cin, the app will print "aloaldafgd" and close hence you just see it 'flash'.

gamehunter101
October 9th, 2006, 19:55
This waits for input before closing. Without cin, the app will print "aloaldafgd" and close hence you just see it 'flash'.

thanks for that one

the zack
October 11th, 2006, 21:21
Hey I need a little help on something. I am trying to make a program (that I will actually use in real life) where you input a word and it would return a corresponding word, for example: "hello" would returrn "hi to you too", and in the same program if you input for example "nice hat" it would return "thanks i got it at target". I tried to make an if statement for it but I just doen know where to start. can somebody start me out on a template of some kind they could write out?

I am using this for debate class, I have a laptop, so if I write the case name "coast guard" then it would return various arguements to use against the case. i also want to be able to ask other questions to the program, so it can narrow down its outputs.

yaustar
October 11th, 2006, 23:10
Depending on your level of programming, it will be very tough to do. You will need to at least implement a text parser to analyse the key words such as verbs and nouns. These can be written in a seperate file as a list that can be loaded in at the start of the program.

Then you have to create a system for the reply which should be able to construct a (legal) sentence based on keywords from the input.

Not easy.