QEEE Session on
"Input and Output Streams - Interfaces, Packages and Vectors, Files - OOP Stream"
2nd, 3rd and 4th August 2016
QEEE Session on "Input and Output Streams - Interfaces, Packages and Vectors, Files - OOP Stream" was organized by IIT Madras on 2nd, 3rd and 4th August 2016 under D2S (Direct to Student) Program. The session was an interactive educational experience through distinct learning modules where live classes through video conferencing were conducted by IIT professors. The session was conducted by Dr. Rupesh Kumar Nasre, IIT Madras. 32 students from CSE and 7 students from IT branches attended the session, organized at Dronacharya Group of Institutions, Greater Noida and coordinated by Dr. Aditi Paul and Mr. Jitendra Kumar Chauhan.
The session aimed at enhancing the knowledge of students in Object Oriented Programming (OOP) to a higher level.
Day 1: 2nd August 2016
Dr. Rupesh Nasre started the first day session on 2nd August 2016 on "Stream Input Output" and its application in file handling. The idea of defining user defined stream and stream classes from the base class was explained in the session. He also explained the importance of formatting input and output of files in C++. The stream class hierarchy was explained by Dr. Nasre in which he showed how the stream classes are inherited in C++ and how they are invoked in a program. He also mentioned the strength of C++ in comparison to other scripting languages through examples. He continued his lecture by defining the properties of cin>> and cout<< objects used in C++. He also illustrated their functionalities by writing program code.
The session ended with queries and doubts clearing sessions.
Day 2: 3rd August 2016
The second session started on 3rd August, 2016 with the continuation of cin>> and cout<< operators and how they can be overloaded. In this session Dr. Nasre showed how the insertion and extraction operators can be cascaded. For this he wrote program code and executed it to show how cascading can simplify program code. He further explained the possible mistakes that should be avoided with stream extraction operators >> and <<. Next he discussed about the get() and put() functions and getline() functions for character input and output with example code. The syntax for these functions was also explained with proper example.
This session ended with queries from various colleges.
Day 3: 4th August 2016
The third session started on 4th August 2016 with "Stream Manipulator". Dr. Nasre explained various member functions for stream manipulation with their proper format. In this section he explained how to format the output strings of files using different types of manipulators like seek(), setw(), setfill(), setf() etc. Next, he discussed how to format numbers such as floating point using justification and padding with example codes. Dr. Nasre continued his lecture by describing how to handle file. He focused on the operation of file pointers in different mode like read pointer and write pointer and explained how complicated is file handling operation.
The session came to an end with the doubt clearing and queries from different colleges. The students from DGI also raised queries and got their doubt cleared by Dr. Nasre.
The three-day QEEE session was very interactive and fruitful for the students. It explored those portions of the topic which is important and useful for a C++ programmer. Students and Local faculty coordinators benefited a lot from the session.