C++ How to Program (Not C, but eh) by Deitel & Deitel. DarkVirus recommended that to me about a year ago. I have an old version of the book, and some other C books if you'd want to (probably not though) buy from me. :PWhat other C books do you have?
<TehServer> !eBooks 0134436989 [Prentice Hall PTR] (Bil Lewis) Threads Primer - A Guide to Multithreaded Programming.pdfeBooks = lame.
Multithreading. Hm.
Multithreaded programming in C (on Linux) is easy++. On Windows, it's painful.We went over advantages/disadvantages of C and C++ in the last thread I made in this forum, which is why I kept the book.
Incidentally, if his goal is to program a Gaim plugin, I don't recommend learning C++. It's better to learn C anyway.
A book that I'd recommend is Programming Pearls. I forget the author, but can dig it up if necessary. It doesn't teach you the language, but it does teach you some nice tricks about how to program well.
I liked C for Dummies, both vols. Good times! :DGross, I hate * For Dummies.
eBooks = lame.
if(like(eBook) == true) {
eBook.buy;
}else{
eBook.trash;
}
Code: [Select]if(like(eBook) == true) {
eBook.buy;
}else{
eBook.trash;
}
c:\Documents and Settings\robp.MINNOW\My Documents\Visual Studio Projects\Testbed\Testbed\Testbed.cpp(27) : warning C4551: function call missing argument list
c:\Documents and Settings\robp.MINNOW\My Documents\Visual Studio Projects\Testbed\Testbed\Testbed.cpp(29) : warning C4551: function call missing argument list
QuoteeBooks = lame.
eBooks = free.
Books = expensive.Code: [Select]if(like(eBook) == true) {
eBook.buy;
}else{
eBook.trash;
}
You know C, I'm sure you can figure out what that means.
See if its worth anything first, before going out and buying it.
Go to your local library, mine has tons of programming books.The one down the block from me has a pretty poor selection of programming books, but the one on the rich side of town has tons of em.
You shouldn't use "true" in C, it's not standard. TRUE is better.Of course that's C++.
MyndFyre, I'm sure you're well aware that you need to create an eBook class. =)Which I already had, otherwise I would have had a plethora of other errors during compilation.
int main(void);
bool like(const book* );
class book {
public:
void buy(void) { }
void trash(void) { }
};
bool like(const book* pbook) {
return true;
}
int main()
{
book eBook;
if ( like(&eBook) == true ) {
eBook.buy;
} else {
eBook.trash;
}
return 0;
}
c:\Documents and Settings\robp.MINNOW\My Documents\Visual Studio Projects\Testbed\Testbed\Testbed.cpp(27) : warning C4551: function call missing argument list
c:\Documents and Settings\robp.MINNOW\My Documents\Visual Studio Projects\Testbed\Testbed\Testbed.cpp(29) : warning C4551: function call missing argument list
You not only checked it on a different operating system, you checked it on a different compiler. If you want to check somebody's code, you ought to at least use the same technology they're using :-PI'll refer you to ISO/IEC 9899:TC2 (http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf) section 6.5.2.2: Function Calls. Specifically:
1 The expression that denotes the called function78) shall have type pointer to function(Subscript 78):
returning void or returning an object type other than an array type.
Most often, this is the result of converting an identifier that is a function designator.Also:
A postfix expression followed by parentheses () containing a possibly empty, comma-separated
list of expressions is a function call. The postfix expression denotes the called
function. The list of expressions specifies the arguments to the function.
I assumed those were variables, in which case, I don't think it'll have any warnings. Of course, it won't do anything either..That would be silly; buy and trash are verbs. They should be functions. :P
Its neither C nor C++. Its pseudo-C. You lose.What, do you live in a city of 5 people that doesn't have a bookstore? No wonder you use dial-up.
On a side note, I'd prefer a physical book too, asuming I had a million dollars (those things are not cheap, and I am broke), and a rocket (it takes a while to get to the store, whereas I can download a book in about a half hour (for big ones)).
Its neither C nor C++. Its pseudo-C. You lose.
On a side note, I'd prefer a physical book too, asuming I had a million dollars (those things are not cheap, and I am broke), and a rocket (it takes a while to get to the store, whereas I can download a book in about a half hour (for big ones)).
I also perfer physical books, I find myself keeping my attention more easily when I'm reading something that's inked on paper as opposed to illuminated on my screen. :)Not to mention it's MUCH easier on the eyes, and you can sit with your legs kicked back and a lemonade in your other hand.
I don't have a job right now, actually. But $100 is only 12 hours' pay at minimum wage. Most books aren't even that much, even.
I don't have a job right now, actually. But $100 is only 12 hours' pay at minimum wage. Most books aren't even that much, even.Well... you smell. (That was the best retort I could come up with)
Lies, you can take them everywhere. I was reading Hp6 in the crapper! (actually, i wasn't. I don't unsanitize my books, eww)I don't have a job right now, actually. But $100 is only 12 hours' pay at minimum wage. Most books aren't even that much, even.
even even, huh? Hehe, just kidding.
Books are a wonderful investment to something you take interest to. You can take them nearly anywhere!
A positive thing I have to say about physical books, when I went on vacation to Teneesee, I took my VB Language Reference book with me. When I finally got back home, I did a whole bunch of crazy stuff I learned while down there. Couldn't take an eBook very well.Well, you suck so yeah. :P
@deadly: I don't like lemonade, nor for some reason feel comfortable reading in a chair, nor can I hold a book in one hand without droping it/feeling weird.