jagomart
digital resources
picture1_Cs101 L26


 163x       Filetype PDF       File size 3.09 MB       Source: www.cdeep.iitb.ac.in


File: Cs101 L26
cs 101 computer programming and utilization puru with cs101 tas and staff course webpage https www cse iitb ac in cs101 lecture 26 wrap up cs101 autumn 2019 cse iit ...

icon picture PDF Filetype PDF | Posted on 03 Feb 2023 | 2 years ago
Partial capture of text on file.
                                   CS 101:
                Computer Programming and 
                                 Utilization
                                       Puru
                                        with
                                CS101 TAs and Staff
                Course webpage: https://www.cse.iitb.ac.in/~cs101/
                            Lecture 26: Wrap up 
                               CS101 Autumn 2019 @ CSE IIT Bombay
  The C++ Standard Library
   •  Comes with every C++ distribution
   •  Contains many functions and classes that you are likely to need in 
      day to day programming
   •  The classes have been optimized and debugged thoroughly
   •  If you use them, you may be able to write programs with very little 
      work
   •  Highly recommended that you use functions and classes form the 
      standard library whenever possible
   •  Files, Strings, Maps, Vectors, Sets, Lists, 
      Queues …
                             CS101 Autumn 2019 @ CSE IIT Bombay            2
  Key building blocks the library
   • Generalized entities available as template classes
      –member variables and functions
   • C++ support for object oriented programming
      –constructors, copy constructors, destructors, operator 
         overloading, templates …
      –Dynamic memory management
                           CS101 Autumn 2019 @ CSE IIT Bombay          3
  heap memory to be handle carefully
   int* iptr;
   iptr = new int;
   *iptr = …;
   delete iptr;
   *iptr = ...;   // dangling reference!
   // memory leak                // memory leak 
   int *iptr;                    {  int *iptr;
   iptr = new int;                   iptr = new int;
   iptr = new int;               }
                           CS101 Autumn 2019 @ CSE IIT Bombay          4
The words contained in this file might help you see if this file matches what you are looking for:

...Cs computer programming and utilization puru with tas staff course webpage https www cse iitb ac in lecture wrap up autumn iit bombay the c standard library comes every distribution contains many functions classes that you are likely to need day have been optimized debugged thoroughly if use them may be able write programs very little work highly recommended form whenever possible files strings maps vectors sets lists queues key building blocks generalized entities available as template member variables support for object oriented constructors copy destructors operator overloading templates dynamic memory management heap handle carefully int iptr new delete dangling reference leak...

no reviews yet
Please Login to review.