Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. blazero

    TCP/IP?

    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.
  2. blazero

    What should i start with

    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.
  3. blazero

    Differences between C and C++: Can Anyone Explain?

    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.
  4. blazero

    Differences between C and C++: Can Anyone Explain?

    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.
  5. blazero

    Need guidance in learning graphic output

    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.
  6. blazero

    Tic-Tac-Toe. Artificial Intelligence?

    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.
  7. blazero

    Need guidance in learning graphic output

    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...
  8. blazero

    find "\n" in simple string

    Heh? I don't understand your method. Personally, I would have used: ... char harb2[ ]=&quot; Find the end&quot; &quot;\n&quot; &quot;Then you will see &quot;\n&quot;; int nCount=0; int harbLen=sizeof harb2 / sizeof harb2[0]; for(int i=0;i<harbLen && harb2[ i ] != 0;i++) if(harb2[ i ] ==...
  9. blazero

    Problems with Constructors

    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 &quot;box&quot; class: class box { double length; double width; double height; double volume()...

Part and Inventory Search

Back
Top