Chp~21 - C+ PROGRAMMING Chapter 21 Whats Next The Standard...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
C++ PROGRAMMING Chapter 21 Whats Next The Standard Libraries String Listing 21.1. strlen(). strcpy() and strncpy() Listing 21.2. Using strcpy. Listing 21.3. Using strncpy(). strcat() and strncat() Listing 21.4. Using strcat() and strncat(). Other String Functions Time and Date Listing 21.5. Using ctime(). stdlib Listing 21.6. Using atoi() and related functions. qsort() Listing 21.7. Using qsort(). Other Libraries Bit Twiddling Operator AND Operator OR Operator Exclusive OR The Complement Operator Setting Bits Clearing Bits Flipping Bits Bit Fields Listing 21.8. Using bit fields . Style Indenting , Braces , Long Lines switch Statements , Program Text Identifier Names , Spelling and Capitalization of Names Comments , Access , Class Definitions include Files , assert() , const Next Steps Where to Get Help and Advice Required Reading Magazines Staying in Touch Summary , , Quiz , Exercises
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Chapter 21 Whats Next Congratulations! You are nearly done with a full three-week intensive introduction to C+ +. By now you should have a solid understanding of C++, but in modern programming there is always more to learn. This chapter will fill in some missing details and then set the course for continued study. ToChapter you will learn What the standard libraries are. How to manipulate individual bits and use them as flags. What the next steps are in learning to use C++ effectively. The Standard Libraries Every implementation of C++ includes the standard libraries, and most include additional libraries as well. Libraries are sets of functions that can be linked into your code. You've already used a number of standard library functions and classes, most notably from the iostreams library. To use a library, you typically include a header file in your source code, much as you did by writing #include <iostream.h> in many of the examples in this guide. The angle brackets around the filename are a signal to the compiler to look in the directory where you keep the header files for your compiler's standard libraries. There are dozens of libraries, covering everything from file manipulation to setting the date and time to math functions. ToChapter I will review just a few of the most popular functions and classes in the standard library that have not yet been covered in this guide. String The most popular library is almost certainly the string library, with perhaps the function strlen() called most often. strlen() returns the length of a null-terminated string. Listing 21.1 illustrates its use. Listing 21.1. strlen(). 1:
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/13/2012 for the course CS 131 taught by Professor Clayton during the Spring '08 term at Bethune Cookman.

Page1 / 25

Chp~21 - C+ PROGRAMMING Chapter 21 Whats Next The Standard...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online