CS6311 PDS2 LAB Manual, Programming and Data Structures II Laboratory Manual – CSE 3rd SEM Anna University

0

CS6311 PDS2 LAB Manual

Anna University Regulation 2013 CSE CS6311 PDS2 LAB Manual for all experiments are provided below. Download link for CSE 3rd SEM CS6311 Programming and Data Structures II Laboratory Manual is listed down for students to make perfect utilization and score maximum marks with our study materials.

Anna University Regulation 2013 Computer Science & Engineering (CSE) 3rd SEM CS6311 PDS2 LAB-Programming and Data Structures II Laboratory Manual

EX NO: 1     SIMPLE C++ PROGRAM

AIM:

To implement a simple C++ program to display the name and number

ALGORITHM:

Step 1: Include the header files

Step 2: Declare the class as person with data members name and number

Step 3: Create an object for the class person

Step 4: Get the name and number as input

Step 5: Access the data member using object and display the output.

PROGRAM:

#include

#include

using namespace std;

class person

{

public: string name; int number;

};

int main()

{

person obj;

cout<<“Enter the Name :”;

cin>>obj.name; cout<<“Enter the Number :”;

cin>>obj.number;

cout << obj.name << “: ” << obj.number << endl;

getch();

return 0;

}

SAMPLE OUTPUT:

Enter the Name: Byron

Enter the Number: 100

Byron: 100

RESULT:

Thus the simple C++ program to display the name and number is implemented successfully.

CS6311 PDS2 Lab Manual with all experiments  Download Here

If you require any other notes/study materials, you can comment in the below section.

Related Links

For CS6311 PDS2 Lab Syllabus – Click here

Search Terms

Anna University 3rd SEM CSE PDS2 LAB Manual

CS6311 Programming and Data Structures II Laboratory Manual free download

Anna University CSE PDS2 LAB Manual Regulation 2013

CS6311 Manual, PDS2 LAB experiment wise Manual – CSE 3rd Semester

Share.

Comments are closed.