Hello There, Guest! RegisterLogin with Facebook
Login with Facebook

New Anna University Nov / Dec 2016 Examination Important Questions
New Anna University (UG / PG) Nov/Dec 2016 and Jan 2017 Theory , Practical Exam Timetable
>>> Anna University Sixth Semester Question Bank Collection (R2013) ECE,MECH,CSE,IT,EEE,CIVIL,EIE
>>> Anna University November/December 2015 Examination Question Papers
>>> Anna University Study Materials for all Departments
>>> Anna University Question Papers : April May June 2015 Question Papers | Nov Dec 2014 and Jan 2015 Question Papers

Register or Login to Submit Study Materials , Shoutbox and also to access Many Features !!

Vidyarthiplus Shop :: Handwritten Premium Lecture Notes
Share your Study Materials with us
Share your Study Materials with us : Click Here

DEBUGGING C++ Contest - 25th August
#1


   
   

This is a program in c++ which is implemented using some of the concepts of oops.Anyhow, it is not predicting the proper output.Hence, check whether there are some bugs and if you find any bugs clear it and repost the code with explanation.

  There are some bugs in the basic concepts of oops.Identify it and clear it.

Attachment your code here.

.txt   debug.txt (Size: 606 bytes / Downloads: 63)


Fear is a reaction,but courage is a destination


Reply
#2

#include<iostream.h>
#include<conio.h>
class a
{
private:
char name;
public:
void sample();
void welcome();
};
void a:Confusedample()
{
cout<<"THIS IS THE PROGRAM TO IMPLEMENT OOPS CONCEPTs";
}
void a::welcome()
{
cout<<"WELCOME TO OOPS";
}
class b
{
private:
char name1;
public:
void getdata()
{
cout<<"ENTER YOUR NAME";
cin>> name1;
}
void putdata()
{
cout<<"NAME="<<name1;
}
};
class c
{
private:
char name2;
name2=strcpy(name2,name1);
public:
void show data()
{
cout<<"NAME="<<name2;
}
};

In dis prgm , while acesing the member function outside the class syntax error.

Next, strcpy (name2,name1) is d crt one. bcs variable is initialised as name 2 .But in dis prgm it showed wrong syntax

Last one is class terminated incorrectly
I hve edited the program above



Reply
#3


No main function in the Program and some basic errors in this programs are corrected The Debugged C++ program is here :
.txt   Debugged C++ Program.txt (Size: 766 bytes / Downloads: 48)

Got the Materials You Searched for?If no then Post a Request here : Request Zone 


Reply

Subscribe


Recommend on Google