Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
cool j
lookin' for any job i can do from home
object oriented (c++)?
how do i determine if a shape was 2 dimensional or 3 dimensional
1 AnswerProgramming & Design1 decade agoWhat Does Each Of The Following C++ commands (under unix OS ) Do ?
Fork , exec , system , wait , kill , $g++,$gcc , need a brief example on each one plz if possible !!
1 AnswerProgramming & Design1 decade agoObject Oriented Question !?
i do not understand the use of composition or how to use it honestly i read the text book but things are still vague for me now here's the code i wrote for the home work i have 10 errors :(( :
#include<iostream>
using namespace std;
class Point
{
private :
int x,y;
public:
void set_x(int a)
{
x=a;
}
void set_y(int b)
{
y=b;
}
int get_x()
{
return x;
}
int get_y()
{
return y;
}
};
class Rectangle
{
private :
int length , width ; Point point1;Point point2;
public :
void set_point(Point& x,Point & y):point1(x),point2(y); //x=length , y=width;
{}
int move_point(int a,int b)
{
length =x+a;width=y+b;
return length*width;
}
};
void main()
{ int a,b;cin>>a>>b;
Rectangle r1;
r1.set_point(a,b);
cout<<r1.move_point(a,b)<<endl;
}
3 AnswersProgramming & Design1 decade agoobject oriented !!! could some one plz explain composition(classes) for me plz !!?
i been asked for a homework about composition and i actually don't get the idea !! could some one plz explain it ??
4 AnswersProgramming & Design1 decade agoHow Do i do this ..object oriented?
i was given this assignment for object oriented ,,,,
Write a complete program that declares the class Person in a header file, and implements it in a source file.
Your class should contain the following attributes:
o Name
o Social security number
o Age
o Gender
o Height.
Your class should have two constructors:
o A default constructor that initializes all data members to some predefined values
o A parameterized constructor that receives values for all data members to initialize them.
Your class should have set and get functions for all data members.
Your class should have a printData function to print all attributes values.
You should test your code by writing a main function that instantiates some objects of type Person and then use the member functions implemented previously.
Question is how do i " Write a complete program that declares the class Person in a header file, and implements it in a source file" ??
i did write the code had no probs but still dunno how to do it in a header file or so ^^^
1 AnswerProgramming & Design1 decade agowhat is wrong with this code ?
include <iostream.h>
#include<string>
using std:: string ;
class student
{
student()
{
Number=2007;
Name="Jill" ;
Average =70;
}
student(int n , string na , double avg )
{
Number = n;
Name = na;
Average=avg;
}
void st_no(int n)
{
if(n<=2005)
cout<<"Graduate"<<endl;
}
void printinformation()
{
cout<<"Number : " <<Number<<" " << "Name : " << Name<<" " << " Average : "<< Average << endl;
}
private :
int Number ; string Name; double Average;
};
void main ()
{ student o1;o1.student();
student o1(2003,"Saleem",75);
o1.printinformation();
o1.st_no(2003);
}
2 AnswersProgramming & Design1 decade agoupside down monitor view !!?
my monitor view is upside down , no idea how that happened , any one know how to fix it ?
3 AnswersMonitors1 decade agoLinear Algebra -gauss elimenation - gauss-jordan elemination?
in short , i have a linear-algebra exam and for some reason i cant get it done though its easy , im studying or trying to study the text book ,i read and its easy but when it comes to solve a prob i cant do nothing !! so if someone can explain it in short way i can get plz do and ty !! is about gauss elemination , gauss-jordan elemination ,solving systems using those ways !!
1 AnswerMathematics1 decade agokeyboard problem!!?
i have a problem with my keyboard ,,,whenever i try to play any game whatever it is it stops working like i have no keyboard i can use the mouse but not the keyboard ,,i changed the keyboard but didn't work checked the control options for the game and also didn't woprk so anyone have an idea how can i solve this ???
5 AnswersOther - Hardware1 decade agoseperate 2 videos!!?
i have to parties videos on a cd 'n i want them seperated so i need a software to use to cut the vid in 2 !!
1 AnswerSoftware1 decade ago