Hey, I haven't been here a while, but I need some advice on a C++ book on TCP/IP, since I found nothing in my searches. Also, what would serve as a foundation for it? I'm currently learning MFC and need to know what's next before TCP/IP and internet ports and the like. Thanks.
I began with C, but it was because my local library had few C++ books, but soon afterwards I switched over to C++. Bad idea to begin with a language that is completely different from C++, as it's easy to mix them together.
The way I learned C, it allowed the use of a void type for main(). Only in C++ have I got warning errors for non-int main() functions. main() being of the int type has its uses, but most of the time it simply returns 0, so again I wonder why so many compilers force main() as int.
I spent a small amount of time learning C before going into C++, and would like to know why main() has to be int now when it was void before. It seems pointless, as no OS can use the return value for anything good.
I know this question may sound stupid, but it's purely human to wonder.
Ahh, MFC includes graphic output? Thanks for the info, as I thought MFC was just more hardcore C++ that displays no clue of what it is doing, other than text. Thanks, now I don't have to stray for too long to attain a C++ book.
I am no expert, but if you use a array of class objects to form a grid, then you can have bool isX/isO variables within the class, and check for diagonals and straight lines to defend. Offense wouldn't be too different.
I'm no longer a C++ beginner, I consider the classes point the end of it, but I've been wondering how you output graphics and a good book on the concept using C++. My current, Beginning C++ the complete language, by Ivor Horton, seems to keep away from graphic output. Any suggestions on easily...
Heh? I don't understand your method. Personally, I would have used:
...
char harb2[ ]=" Find the end" "\n" "Then you will see "\n";
int nCount=0;
int harbLen=sizeof harb2 / sizeof harb2[0];
for(int i=0;i<harbLen && harb2[ i ] != 0;i++)
if(harb2[ i ] ==...
I'm a newb to C++, but am experienced enough to know that something isn't right when constructors cause distortion in variable values.
I am just trying out constructors with a simple "box" class:
class box {
double length;
double width;
double height;
double volume()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.