Click here to Skip to main content
15,898,371 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Programme to add given no of days to the current date to give the resulted date Pin
cmaheshwari167-Dec-10 23:46
cmaheshwari167-Dec-10 23:46 
GeneralRe: Programme to add given no of days to the current date to give the resulted date Pin
Richard MacCutchan8-Dec-10 2:53
mveRichard MacCutchan8-Dec-10 2:53 
GeneralRe: Programme to add given no of days to the current date to give the resulted date Pin
cmaheshwari169-Dec-10 18:07
cmaheshwari169-Dec-10 18:07 
GeneralRe: Programme to add given no of days to the current date to give the resulted date Pin
Richard MacCutchan9-Dec-10 22:35
mveRichard MacCutchan9-Dec-10 22:35 
GeneralRe: Programme to add given no of days to the current date to give the resulted date Pin
cmaheshwari1610-Dec-10 1:10
cmaheshwari1610-Dec-10 1:10 
GeneralRe: Programme to add given no of days to the current date to give the resulted date Pin
Richard MacCutchan10-Dec-10 2:44
mveRichard MacCutchan10-Dec-10 2:44 
QuestionHow to read the all Guids defined in abcd_i.c file from pdb Pin
glitteringsound6-Dec-10 23:09
glitteringsound6-Dec-10 23:09 
Questioni have a question about for_each Pin
lxlenovostar3-Dec-10 6:24
lxlenovostar3-Dec-10 6:24 
why can i code like this:


#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;

template <class T>
void OUT(T c)
{
        cout << "!!" << c ;
}


int main()
{
        vector<string> st(10, " ");

        for_each(st.begin(), st.end(), OUT);
}


i know information about for_each :
/*template <class InputIterator, class Function>
Function for_each (InputIterator first, InputIterator last, Function f);
Apply function to range

Applies function f to each of the elements in the range [first,last).*/

but why they don't use Function Templates instead of function, thank you
AnswerRe: i have a question about for_each Pin
Alain Rist3-Dec-10 23:30
Alain Rist3-Dec-10 23:30 
AnswerRe: i have a question about for_each Pin
xtofl6-Dec-10 4:18
xtofl6-Dec-10 4:18 
QuestionLinear Algebra with C++ Pin
VeganFanatic30-Nov-10 13:25
VeganFanatic30-Nov-10 13:25 
AnswerRe: Linear Algebra with C++ Pin
jean Davy15-Dec-10 11:06
jean Davy15-Dec-10 11:06 
QuestionHow to change active tab in tabbed MFC Pin
josip cagalj30-Nov-10 3:31
josip cagalj30-Nov-10 3:31 
QuestionQuestion about WTL CScrollImpl Pin
extremjoy29-Nov-10 21:34
extremjoy29-Nov-10 21:34 
AnswerRe: Question about WTL CScrollImpl Pin
Alain Rist29-Nov-10 22:34
Alain Rist29-Nov-10 22:34 
Questionhello, i have a question about char and int Pin
lxlenovostar29-Nov-10 0:22
lxlenovostar29-Nov-10 0:22 
AnswerRe: hello, i have a question about char and int Pin
Cool_Dev29-Nov-10 1:57
Cool_Dev29-Nov-10 1:57 
AnswerRe: hello, i have a question about char and int Pin
Richard MacCutchan29-Nov-10 3:40
mveRichard MacCutchan29-Nov-10 3:40 
Question[SOLVED] COM Dll Not Getting Registered In Windows Server 2008 [modified] Pin
MANISH RASTOGI26-Nov-10 18:20
MANISH RASTOGI26-Nov-10 18:20 
Questionrenaming files Pin
khomeyni20-Nov-10 7:46
khomeyni20-Nov-10 7:46 
AnswerRe: renaming files Pin
Cool_Dev20-Nov-10 21:12
Cool_Dev20-Nov-10 21:12 
GeneralRe: renaming files Pin
khomeyni20-Nov-10 23:48
khomeyni20-Nov-10 23:48 
GeneralRe: renaming files Pin
Richard MacCutchan21-Nov-10 1:15
mveRichard MacCutchan21-Nov-10 1:15 
GeneralRe: renaming files Pin
pasztorpisti2-Dec-10 6:11
pasztorpisti2-Dec-10 6:11 
AnswerRe: renaming files Pin
mbue9-Dec-10 15:28
mbue9-Dec-10 15:28 

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.