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

C / C++ / MFC

 
QuestionRe: alternaive for Setpixel and GetPixel Pin
Maximilien11-Sep-09 2:34
Maximilien11-Sep-09 2:34 
GeneralRe: alternaive for Setpixel and GetPixel Pin
Adam Roderick J11-Sep-09 2:41
Adam Roderick J11-Sep-09 2:41 
AnswerRe: alternaive for Setpixel and GetPixel Pin
kilt14-Sep-09 2:22
kilt14-Sep-09 2:22 
QuestionBeginner's Question [modified] Pin
UKM_Student11-Sep-09 1:10
UKM_Student11-Sep-09 1:10 
AnswerRe: Beginner's Question Pin
Mattias G11-Sep-09 1:13
Mattias G11-Sep-09 1:13 
AnswerRe: Beginner's Question Pin
Richard MacCutchan11-Sep-09 1:32
mveRichard MacCutchan11-Sep-09 1:32 
GeneralRe: Beginner's Question [modified] Pin
UKM_Student11-Sep-09 2:00
UKM_Student11-Sep-09 2:00 
GeneralRe: Beginner's Question Pin
Adam Roderick J11-Sep-09 2:32
Adam Roderick J11-Sep-09 2:32 
I dont like to give solution so easily to u since you are beginner and if i do so it will be mistake from my side, but since you have already spend more than 2 hours Smile | :)
I appreciate your patience Smile | :)

So here is the solution Smile | :)
But please try to understand and do it .
cin>>firstNum;
cin>>secondNum;
cout<<"c. The total sum of even integers between "<<firstNum<<" and "<<secondNum<<" is : ";

int total=0;
while( firstNum < secondNum )
{
	if( 0 == firstNum%2 )
	{
		total += firstNum;
	}
	firstNum++;
}
cout<<total;


Величие не Бога может быть недооценена.

QuestionRe: Beginner's Question Pin
CPallini11-Sep-09 2:09
mveCPallini11-Sep-09 2:09 
AnswerRe: Beginner's Question Pin
UKM_Student11-Sep-09 2:12
UKM_Student11-Sep-09 2:12 
GeneralRe: Beginner's Question Pin
CPallini11-Sep-09 2:32
mveCPallini11-Sep-09 2:32 
GeneralRe: Beginner's Question Pin
UKM_Student11-Sep-09 2:41
UKM_Student11-Sep-09 2:41 
GeneralRe: Beginner's Question Pin
CPallini11-Sep-09 2:51
mveCPallini11-Sep-09 2:51 
GeneralRe: Beginner's Question Pin
UKM_Student11-Sep-09 2:59
UKM_Student11-Sep-09 2:59 
GeneralRe: Beginner's Question Pin
UKM_Student11-Sep-09 3:04
UKM_Student11-Sep-09 3:04 
GeneralRe: Beginner's Question Pin
CPallini11-Sep-09 3:15
mveCPallini11-Sep-09 3:15 
GeneralRe: Beginner's Question Pin
UKM_Student11-Sep-09 3:17
UKM_Student11-Sep-09 3:17 
GeneralRe: Beginner's Question Pin
CPallini11-Sep-09 3:34
mveCPallini11-Sep-09 3:34 
GeneralRe: Beginner's Question Pin
UKM_Student11-Sep-09 3:37
UKM_Student11-Sep-09 3:37 
GeneralRe: Beginner's Question Pin
David Crow11-Sep-09 3:20
David Crow11-Sep-09 3:20 
GeneralRe: Beginner's Question Pin
UKM_Student11-Sep-09 3:31
UKM_Student11-Sep-09 3:31 
GeneralRe: Beginner's Question Pin
Richard MacCutchan11-Sep-09 3:25
mveRichard MacCutchan11-Sep-09 3:25 
GeneralRe: Beginner's Question Pin
CPallini11-Sep-09 3:14
mveCPallini11-Sep-09 3:14 
GeneralRe: Beginner's Question Pin
UKM_Student11-Sep-09 3:19
UKM_Student11-Sep-09 3:19 
GeneralRe: Beginner's Question Pin
UKM_Student11-Sep-09 3:32
UKM_Student11-Sep-09 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.