jagomart
digital resources
picture1_Programming Pdf 183595 | Lecture20


 166x       Filetype PDF       File size 1.53 MB       Source: www.cse.iitb.ac.in


File: Programming Pdf 183595 | Lecture20
cs 101 computer programming and utilization puru with cs101 tas and staff course webpage https www cse iitb ac in cs101 lecture 20 c and object oriented programming cs101 autumn ...

icon picture PDF Filetype PDF | Posted on 31 Jan 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 20:C++ and object oriented programming
                               CS101 Autumn 2019 @ CSE IIT Bombay
          Object Oriented Programming
      A methodology for designing programs
                            CS101 Autumn 2019 @ CSE IIT Bombay          2
  The C++ structure
   •  Member variables
      − Basic facility provided in C++ to conveniently gather together 
        information associated with an entity
      − Inherited from the C language
   •  Member functions
      − New feature introduced in C++
      − Actions/operations that effect the entity
   − User defined data type with variables and functions
                            CS101 Autumn 2019 @ CSE IIT Bombay            3
  Nested structures (structure is a data type!)
     struct Point{ 
        double x,y; 
     };
     struct Disk{ 
        Point center;    // contains Point
        double radius;
     };
     Disk d;
     d.radius = 10;
     d.center = {15, 20}; 
     // sets the x {member of center member of d
                            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 c object oriented autumn iit bombay a methodology for designing programs the structure member variables basic facility provided to conveniently gather together information associated an entity inherited from language functions new feature introduced actions operations that effect user defined data type nested structures is struct point double x y disk center contains radius d sets of...

no reviews yet
Please Login to review.