C++ Programming HOW-TO
Total Page:16
File Type:pdf, Size:1020Kb
C++ Programming HOW−TO C++ Programming HOW−TO Table of Contents C++ Programming HOW−TO...........................................................................................................................1 Al Dev (Alavoor Vasudevan) alavoor@yahoo.com...............................................................................1 1. Introduction..........................................................................................................................................1 2. String Class Varieties ..........................................................................................................................1 3. Best C++ compilers for MS Windows 2000/NT/95/98/ME/XP .........................................................1 4. Download String .................................................................................................................................1 5. How Can I trust Al Dev's String Class ?? ...........................................................................................1 6. Usage of String class............................................................................................................................1 7. String.h file..........................................................................................................................................1 8. Renaming the String class....................................................................................................................2 9. File Class..............................................................................................................................................2 10. C++ Zap (Delete) function ................................................................................................................2 11. Pointers are problems ........................................................................................................................2 12. Usage of my_malloc and my_free ....................................................................................................2 13. Debug files.........................................................................................................................................2 14. Java like API......................................................................................................................................2 15. IDE tools for C++ .............................................................................................................................2 16. C++ Online Textbooks and Docs ......................................................................................................2 17. C++ Coding Standards.......................................................................................................................2 18. C++ Online Docs...............................................................................................................................2 19. Memory Tools....................................................................................................................................2 20. Related URLs.....................................................................................................................................2 21. C++ Scripting Languages..................................................................................................................2 22. Templates...........................................................................................................................................3 23. STL References .................................................................................................................................3 24. Threads in C++..................................................................................................................................3 25. C++ Utilities......................................................................................................................................3 26. Other Formats of this Document........................................................................................................3 27. Copyright...........................................................................................................................................3 28. Appendix A String Program Files ....................................................................................................3 1. Introduction..........................................................................................................................................3 1.1 C++ v/s Java.......................................................................................................................................4 1.2 Which one Ada95, "C", "C++" or Java ??.........................................................................................4 1.3 Problems facing the current C++ compilers......................................................................................5 1.4 COOP − C++ Object Oriented Programming−language...................................................................6 2. String Class Varieties .........................................................................................................................7 2.1 Multiple Inheritance − Sample Custom String class ........................................................................7 3. Best C++ compilers for MS Windows 2000/NT/95/98/ME/XP ........................................................8 4. Download String ................................................................................................................................9 5. How Can I trust Al Dev's String Class ?? ..........................................................................................9 6. Usage of String class............................................................................................................................9 6.1 Operators..........................................................................................................................................10 6.2 Functions..........................................................................................................................................11 7. String.h file........................................................................................................................................11 7.1 StringBuffer.h..................................................................................................................................17 7.2 StringTokenizer.h.............................................................................................................................18 8. Renaming the String class..................................................................................................................19 8.1 Case 1: Simple rename.....................................................................................................................19 i C++ Programming HOW−TO Table of Contents 8.2 Case 2: Resolve conflict...................................................................................................................19 9. File Class............................................................................................................................................20 10. C++ Zap (Delete) function .............................................................................................................20 11. Pointers are problems .....................................................................................................................21 12. Usage of my_malloc and my_free .................................................................................................22 12.1 Garbage Collector for C++ ..........................................................................................................24 13. Debug files.......................................................................................................................................24 14. Java like API....................................................................................................................................24 15. IDE tools for C++ ..........................................................................................................................24 16. C++ Online Textbooks and Docs ...................................................................................................25 17. C++ Coding Standards.....................................................................................................................25 18. C++ Online Docs.............................................................................................................................27 18.1 C++ Tutorials.................................................................................................................................28 18.2 Useful links....................................................................................................................................28 18.3 C++ Quick−Reference...................................................................................................................28 18.4 C++ Usenet Newsgroups...............................................................................................................28 19. Memory Tools..................................................................................................................................28 20. Related URLs...................................................................................................................................29