Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: vector of doubles (division) Pin
b-rad31128-May-10 5:16
b-rad31128-May-10 5:16 
AnswerRe: vector of doubles (division) Pin
CPallini27-May-10 10:11
mveCPallini27-May-10 10:11 
AnswerRe: vector of doubles (division) Pin
Aescleal27-May-10 12:38
Aescleal27-May-10 12:38 
GeneralRe: vector of doubles (division) Pin
Stephen Hewitt27-May-10 20:15
Stephen Hewitt27-May-10 20:15 
GeneralRe: vector of doubles (division) Pin
Aescleal27-May-10 20:52
Aescleal27-May-10 20:52 
GeneralRe: vector of doubles (division) Pin
Stephen Hewitt27-May-10 21:40
Stephen Hewitt27-May-10 21:40 
GeneralRe: vector of doubles (division) Pin
Aescleal27-May-10 22:24
Aescleal27-May-10 22:24 
GeneralRe: vector of doubles (division) Pin
b-rad31128-May-10 5:24
b-rad31128-May-10 5:24 
Thanks for your help Ash. I'm currently doing the following and it works! However, how could I send "op_divide" another parameter? I don't always want to divide by "5", I'd like to send "op_divide" the denominator to use.

long double op_divide (long double d) { return d/5; }
transform (vec1.begin(), vec1.end(), vec2.begin(), op_divide);


Thanks!
GeneralRe: vector of doubles (division) Pin
Aescleal28-May-10 5:53
Aescleal28-May-10 5:53 
GeneralRe: vector of doubles (division) Pin
b-rad31128-May-10 6:05
b-rad31128-May-10 6:05 
GeneralRe: vector of doubles (division) Pin
Aescleal28-May-10 7:20
Aescleal28-May-10 7:20 
GeneralRe: vector of doubles (division) Pin
b-rad31128-May-10 7:28
b-rad31128-May-10 7:28 
AnswerRe: vector of doubles (division) Pin
Stephen Hewitt27-May-10 14:09
Stephen Hewitt27-May-10 14:09 
GeneralRe: vector of doubles (division) Pin
b-rad31128-May-10 5:17
b-rad31128-May-10 5:17 
QuestionShow message the first time my app is started after windows has rebooted Pin
manchukuo27-May-10 6:48
manchukuo27-May-10 6:48 
AnswerRe: Show message the first time my app is started after windows has rebooted Pin
David Crow27-May-10 7:32
David Crow27-May-10 7:32 
GeneralRe: Show message the first time my app is started after windows has rebooted Pin
manchukuo27-May-10 7:45
manchukuo27-May-10 7:45 
GeneralRe: Show message the first time my app is started after windows has rebooted Pin
David Crow27-May-10 8:22
David Crow27-May-10 8:22 
GeneralRe: Show message the first time my app is started after windows has rebooted Pin
manchukuo27-May-10 9:11
manchukuo27-May-10 9:11 
GeneralRe: Show message the first time my app is started after windows has rebooted Pin
Iain Clarke, Warrior Programmer27-May-10 9:17
Iain Clarke, Warrior Programmer27-May-10 9:17 
GeneralRe: Show message the first time my app is started after windows has rebooted Pin
manchukuo27-May-10 9:20
manchukuo27-May-10 9:20 
AnswerRe: Show message the first time my app is started after windows has rebooted Pin
krmed27-May-10 8:59
krmed27-May-10 8:59 
AnswerRe: Show message the first time my app is started after windows has rebooted Pin
Bhaskar Sandbhor31-May-10 0:34
Bhaskar Sandbhor31-May-10 0:34 
QuestionHTTPS Pin
Fareed Rizkalla27-May-10 6:30
Fareed Rizkalla27-May-10 6:30 
AnswerRe: HTTPS PinPopular
Moak27-May-10 7:52
Moak27-May-10 7:52 

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.