Click here to Skip to main content
15,885,366 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to convert JP2 image to Jpg image? Pin
kapardhi7-May-09 18:43
kapardhi7-May-09 18:43 
AnswerRe: How to convert JP2 image to Jpg image? Pin
john56327-May-09 19:19
john56327-May-09 19:19 
AnswerRe: How to convert JP2 image to Jpg image? Pin
Stuart Dootson7-May-09 21:52
professionalStuart Dootson7-May-09 21:52 
AnswerRe: How to convert JP2 image to Jpg image? Pin
Hamid_RT7-May-09 23:00
Hamid_RT7-May-09 23:00 
Questionwhat is the relation between bitmap data and color table in 8 bits bitmap? Pin
songhunhun7-May-09 15:28
songhunhun7-May-09 15:28 
AnswerRe: what is the relation between bitmap data and color table in 8 bits bitmap? Pin
Naveen7-May-09 18:25
Naveen7-May-09 18:25 
GeneralRe: what is the relation between bitmap data and color table in 8 bits bitmap? Pin
songhunhun7-May-09 22:24
songhunhun7-May-09 22:24 
QuestionPoint Class Pin
Ronube7-May-09 12:03
Ronube7-May-09 12:03 
Hi, I've been working on a Point class for about 2 weeks now, and I haven't been able to get anywhere.

The specifications are:

+There are two double data members, x and y
+Write overloaded and default constructors
+Write mutator and accessor functions.
+Write an addition function that returns a Point object. Addition is defined such that the x member of the calling Point and the x member of the rhs (right hand side, i.e., the parameter ) Point are added. Return a new point with the added values.
+Write a subtraction formula that returns a Point object. Subtraction is defined such that the x member of the rhs or parameter is subtracted from the x member of the calling Point. So too for the y member. Return a new point with the subtracted values.
+Write a print function that prints a point as follows: ( 2, 3 )

the main is supposed to be something like this:

main( )
{
	Point A(1, 2), B(3, 4), C;

	cout << "the x value of A is ";
	cout << A.GetX( );
	cout << endl << "the y value of A is ";
	cout << A.GetY( );

	cout << endl << "B is";
	B.PrintPoint( );

	C = A.AddPoint( B );
	cout << endl << "A + B is " ;
	C.PrintPoint( ) :

	C = A.SubPoint( B );
	cout << endl << "A - B is " ;
	C.PrintPoint( ) :

	cout <<endl << "Set C to (0, 4):";
	C.SetX(0);
	C.SetY(4);
	cout << endl << "C is now " ;
	C.PrintPoint( );

	return 0;
}


anything helps!

thanks!
GeneralRe: Point Class Pin
harold aptroot7-May-09 12:36
harold aptroot7-May-09 12:36 
QuestionRe: Point Class Pin
CPallini7-May-09 21:57
mveCPallini7-May-09 21:57 
AnswerRe: Point Class Pin
Stuart Dootson7-May-09 22:19
professionalStuart Dootson7-May-09 22:19 
Questionneed help Pin
ahmedbhatti7-May-09 11:43
ahmedbhatti7-May-09 11:43 
AnswerRe: need help Pin
jeron17-May-09 11:56
jeron17-May-09 11:56 
GeneralRe: need help Pin
ahmedbhatti8-May-09 13:43
ahmedbhatti8-May-09 13:43 
AnswerRe: need help Pin
Hamid_RT8-May-09 0:44
Hamid_RT8-May-09 0:44 
GeneralRe: need help Pin
ahmedbhatti8-May-09 9:28
ahmedbhatti8-May-09 9:28 
Questionstream Pin
viliam7-May-09 9:59
viliam7-May-09 9:59 
QuestionHow to run an exe in admin mode? Pin
birajendu7-May-09 9:38
birajendu7-May-09 9:38 
AnswerRe: How to run an exe in admin mode? Pin
Madhu Nair7-May-09 9:53
Madhu Nair7-May-09 9:53 
AnswerRe: How to run an exe in admin mode? Pin
David Crow7-May-09 10:00
David Crow7-May-09 10:00 
QuestionMultithreaded code and the volatile qualifier Pin
Skippums7-May-09 9:17
Skippums7-May-09 9:17 
AnswerRe: Multithreaded code and the volatile qualifier Pin
Stuart Dootson7-May-09 10:48
professionalStuart Dootson7-May-09 10:48 
AnswerRe: Multithreaded code and the volatile qualifier Pin
cmk7-May-09 17:09
cmk7-May-09 17:09 
Questionany problems with this code Pin
kaku_lala7-May-09 7:51
kaku_lala7-May-09 7:51 
AnswerRe: any problems with this code Pin
David Crow7-May-09 8:56
David Crow7-May-09 8:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.