Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to save unicode text in the source code of vc++ 6.0 IDE Pin
sashoalm27-May-10 23:28
sashoalm27-May-10 23:28 
GeneralRe: How to save unicode text in the source code of vc++ 6.0 IDE Pin
Jayapal Chandran28-May-10 8:48
Jayapal Chandran28-May-10 8:48 
GeneralRe: How to save unicode text in the source code of vc++ 6.0 IDE Pin
Jayapal Chandran28-May-10 9:02
Jayapal Chandran28-May-10 9:02 
Questionvector of doubles (division) Pin
b-rad31127-May-10 9:57
b-rad31127-May-10 9:57 
AnswerRe: vector of doubles (division) Pin
loyal ginger27-May-10 10:10
loyal ginger27-May-10 10:10 
GeneralRe: vector of doubles (division) Pin
b-rad31127-May-10 11:02
b-rad31127-May-10 11:02 
GeneralRe: vector of doubles (division) Pin
b-rad31127-May-10 11:10
b-rad31127-May-10 11:10 
GeneralRe: vector of doubles (division) Pin
CPallini27-May-10 11:24
mveCPallini27-May-10 11:24 
C++
vector <double> vt;
double x;
//...
auto it = vt.begin(); // with older compilers use: vector<double>iterator it = vt.begin(); 
while (it != vt.end())
{
  *it /= x;
   it++;
}

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: vector of doubles (division) Pin
b-rad31127-May-10 11:32
b-rad31127-May-10 11:32 
GeneralRe: vector of doubles (division) Pin
b-rad31127-May-10 11:41
b-rad31127-May-10 11:41 
GeneralRe: vector of doubles (division) Pin
CPallini27-May-10 21:17
mveCPallini27-May-10 21:17 
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 
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 

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.