Click here to Skip to main content
15,896,269 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do i get the screen coordinates of an IHTMLElement? Pin
kartikdasani8-Dec-11 22:25
kartikdasani8-Dec-11 22:25 
AnswerRe: How do i get the screen coordinates of an IHTMLElement? Pin
Code-o-mat9-Dec-11 3:02
Code-o-mat9-Dec-11 3:02 
AnswerRe: How do i get the screen coordinates of an IHTMLElement? Pin
Skynet_Code11-Dec-11 4:43
Skynet_Code11-Dec-11 4:43 
Questionprint n in even numbers only Pin
Yolande MR8-Dec-11 10:15
Yolande MR8-Dec-11 10:15 
AnswerRe: print n in even numbers only Pin
Albert Holguin8-Dec-11 10:26
professionalAlbert Holguin8-Dec-11 10:26 
QuestionRe: print n in even numbers only Pin
David Crow8-Dec-11 10:52
David Crow8-Dec-11 10:52 
AnswerRe: print n in even numbers only Pin
Yolande MR8-Dec-11 11:36
Yolande MR8-Dec-11 11:36 
SuggestionRe: print n in even numbers only Pin
David Crow8-Dec-11 12:20
David Crow8-Dec-11 12:20 
Yolande MR wrote:
for (int i = 0; i <= n; i = i++)


This is questionable at best. Try:

for (int i = 0; i <= n; i = i + 1)


Yolande MR wrote:
I am suppose to do something to i++ + 2, or n-- - 2, or something.
If each iteration of your loop is incrementing i by 1, then why not try incrementing by...

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous


GeneralRe: print n in even numbers only Pin
Albert Holguin8-Dec-11 13:06
professionalAlbert Holguin8-Dec-11 13:06 
GeneralRe: print n in even numbers only Pin
David Crow9-Dec-11 17:55
David Crow9-Dec-11 17:55 
GeneralRe: print n in even numbers only Pin
Chris Losinger8-Dec-11 13:44
professionalChris Losinger8-Dec-11 13:44 
GeneralRe: print n in even numbers only Pin
Yolande MR8-Dec-11 13:57
Yolande MR8-Dec-11 13:57 
GeneralRe: print n in even numbers only Pin
Albert Holguin9-Dec-11 4:10
professionalAlbert Holguin9-Dec-11 4:10 
GeneralRe: print n in even numbers only Pin
Albert Holguin10-Dec-11 7:54
professionalAlbert Holguin10-Dec-11 7:54 
GeneralRe: print n in even numbers only Pin
Richard MacCutchan10-Dec-11 22:11
mveRichard MacCutchan10-Dec-11 22:11 
GeneralRe: print n in even numbers only Pin
Addy Tas11-Dec-11 8:47
Addy Tas11-Dec-11 8:47 
AnswerRe: print n in even numbers only Pin
Richard MacCutchan8-Dec-11 22:16
mveRichard MacCutchan8-Dec-11 22:16 
GeneralRe: print n in even numbers only Pin
Xeidivick10-Dec-11 7:26
Xeidivick10-Dec-11 7:26 
GeneralRe: print n in even numbers only Pin
Richard MacCutchan10-Dec-11 7:28
mveRichard MacCutchan10-Dec-11 7:28 
GeneralRe: print n in even numbers only Pin
Albert Holguin10-Dec-11 8:01
professionalAlbert Holguin10-Dec-11 8:01 
GeneralRe: print n in even numbers only Pin
Luc Pattyn10-Dec-11 7:39
sitebuilderLuc Pattyn10-Dec-11 7:39 
AnswerRe: print n in even numbers only Pin
Software_Developer10-Dec-11 9:11
Software_Developer10-Dec-11 9:11 
GeneralRe: print n in even numbers only Pin
Richard MacCutchan10-Dec-11 22:05
mveRichard MacCutchan10-Dec-11 22:05 
QuestionNetwork Pin
john56328-Dec-11 0:15
john56328-Dec-11 0:15 
AnswerRe: Network Pin
Richard MacCutchan8-Dec-11 0:37
mveRichard MacCutchan8-Dec-11 0:37 

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.