Click here to Skip to main content
15,894,017 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDebug Assertion failed Pin
cuteee15-Feb-06 10:28
cuteee15-Feb-06 10:28 
QuestionRe: Debug Assertion failed Pin
David Crow16-Feb-06 3:29
David Crow16-Feb-06 3:29 
QuestionCPU usage 100% Pin
lynchspawn15-Feb-06 10:15
lynchspawn15-Feb-06 10:15 
AnswerRe: CPU usage 100% Pin
Andy Moore15-Feb-06 10:25
Andy Moore15-Feb-06 10:25 
AnswerRe: CPU usage 100% Pin
Stephen Hewitt15-Feb-06 11:29
Stephen Hewitt15-Feb-06 11:29 
AnswerRe: CPU usage 100% Pin
Michael Dunn15-Feb-06 12:04
sitebuilderMichael Dunn15-Feb-06 12:04 
Questionoperator overloading question Pin
civicrico2315-Feb-06 9:40
civicrico2315-Feb-06 9:40 
AnswerRe: operator overloading question Pin
mylzw15-Feb-06 12:42
mylzw15-Feb-06 12:42 
homework ???
add these code in the class point...

class point
{
//old code.....
//

// my add constructor... int.

point(int single)
{
_x=single;
_y=single;
}

// overloaded operator methods ....
friend point operator +(const point& p1,const point& p2) {
return point(p1._x+p2._x , p1._y+p2._y);
}
friend point operator -(const point& p1,const point& p2) {
return point(p1._x-p2._x , p1._y-p2._y);
}
friend point operator *(const point& p1,const point& p2) {
return point(p1._x+p2._x , p1._y*p2._y);
}
friend point operator /(const point& p1,const point& p2) {
if (p2._x==0 || p2._y==0) return point(0 , 0);
else return point(p1._x/p2._x , p1._y/p2._y);
}
//~..
};

//then you can using like....
p3=p1+p2;
p3=p1-p2;
p3=p1*p2;
p3=p1+1;
p3=p1/100;
p3=p1/0;
..........
......

QuestionSocket:: FD_ACCEPT and FD_CONNECT event Pin
transoft15-Feb-06 6:01
transoft15-Feb-06 6:01 
AnswerRe: Socket:: FD_ACCEPT and FD_CONNECT event Pin
James R. Twine15-Feb-06 6:13
James R. Twine15-Feb-06 6:13 
QuestionSplitter window question... Pin
RobJones15-Feb-06 6:00
RobJones15-Feb-06 6:00 
AnswerRe: Splitter window question... Pin
RChin15-Feb-06 7:01
RChin15-Feb-06 7:01 
AnswerRe: Splitter window question... Pin
David Crow15-Feb-06 7:03
David Crow15-Feb-06 7:03 
QuestionEvents and classes Pin
masnu15-Feb-06 4:29
masnu15-Feb-06 4:29 
AnswerRe: Events and classes Pin
Blake Miller16-Feb-06 12:26
Blake Miller16-Feb-06 12:26 
QuestionDefault button Pin
Wim Engberts15-Feb-06 4:18
Wim Engberts15-Feb-06 4:18 
AnswerRe: Default button Pin
basementman15-Feb-06 4:23
basementman15-Feb-06 4:23 
GeneralRe: Default button Pin
Wim Engberts15-Feb-06 4:26
Wim Engberts15-Feb-06 4:26 
AnswerRe: Default button Pin
toxcct15-Feb-06 4:36
toxcct15-Feb-06 4:36 
QuestionACS Stream Pin
yamunasenthilvel15-Feb-06 3:56
yamunasenthilvel15-Feb-06 3:56 
QuestionTest a DIB for percentage of black pixels Pin
davidhart15-Feb-06 3:48
davidhart15-Feb-06 3:48 
AnswerRe: Test a DIB for percentage of black pixels Pin
basementman15-Feb-06 4:29
basementman15-Feb-06 4:29 
GeneralRe: Test a DIB for percentage of black pixels Pin
normanS15-Feb-06 18:39
normanS15-Feb-06 18:39 
QuestionChange Application Icon Pin
sunit515-Feb-06 3:30
sunit515-Feb-06 3:30 
AnswerRe: Change Application Icon Pin
toxcct15-Feb-06 3:32
toxcct15-Feb-06 3:32 

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.