Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Is this bad design (CComVariant) ? Pin
Michael Dunn14-Aug-02 15:04
sitebuilderMichael Dunn14-Aug-02 15:04 
GeneralRe: Is this bad design (CComVariant) ? Pin
Philippe Mori16-Aug-02 17:15
Philippe Mori16-Aug-02 17:15 
GeneralStack Question Pin
Nick Parker14-Aug-02 8:21
protectorNick Parker14-Aug-02 8:21 
GeneralRe: Stack Question Pin
Chris Losinger14-Aug-02 8:24
professionalChris Losinger14-Aug-02 8:24 
GeneralRe: Stack Question Pin
Nick Parker14-Aug-02 8:26
protectorNick Parker14-Aug-02 8:26 
GeneralRe: Stack Question Pin
Chris Losinger14-Aug-02 8:30
professionalChris Losinger14-Aug-02 8:30 
GeneralRe: Stack Question Pin
Nick Parker14-Aug-02 8:31
protectorNick Parker14-Aug-02 8:31 
GeneralRe: Stack Question Pin
Chris Losinger14-Aug-02 8:36
professionalChris Losinger14-Aug-02 8:36 
this compiles fine for me:
#include <iostream>
#include <stack>
#include <string>
using namespace std;

int main(int argc, char* argv[])
{
   
   cout << "Fun with stacks begins" << endl;	
   stack<string> strStack;	
   strStack.push("Nick");	
   strStack.push("Megan");	
   while(!strStack.empty())	
   {		
      cout << strStack.top() << endl;		
      strStack.pop();	
   }	
   cout << "Fun with stacks is over." << endl;
}



Conservative:
Make it possible for programmers to write programs in English and you will find that most programmers can't write English

GeneralRe: Stack Question Pin
Nick Parker14-Aug-02 8:44
protectorNick Parker14-Aug-02 8:44 
GeneralRe: Stack Question Pin
Chris Losinger14-Aug-02 8:56
professionalChris Losinger14-Aug-02 8:56 
GeneralRe: Stack Question Pin
Nick Parker14-Aug-02 9:04
protectorNick Parker14-Aug-02 9:04 
GeneralRe: Stack Question Pin
Chris Losinger14-Aug-02 9:06
professionalChris Losinger14-Aug-02 9:06 
GeneralRe: Stack Question Pin
Nick Parker14-Aug-02 9:10
protectorNick Parker14-Aug-02 9:10 
GeneralRe: Stack Question Pin
Chris Losinger14-Aug-02 9:16
professionalChris Losinger14-Aug-02 9:16 
GeneralRe: Stack Question Pin
Nick Parker14-Aug-02 9:19
protectorNick Parker14-Aug-02 9:19 
GeneralRe: Stack Question Pin
Chris Losinger14-Aug-02 9:04
professionalChris Losinger14-Aug-02 9:04 
GeneralRe: Stack Question Pin
Philippe Mori15-Aug-02 10:22
Philippe Mori15-Aug-02 10:22 
Questionunique field in an Access database ? Pin
ns14-Aug-02 7:49
ns14-Aug-02 7:49 
AnswerRe: unique field in an Access database ? Pin
Ranjan Banerji14-Aug-02 8:15
Ranjan Banerji14-Aug-02 8:15 
GeneralRe: unique field in an Access database ? Pin
ns14-Aug-02 8:24
ns14-Aug-02 8:24 
GeneralRe: unique field in an Access database ? Pin
Ranjan Banerji14-Aug-02 8:35
Ranjan Banerji14-Aug-02 8:35 
AnswerRe: unique field in an Access database ? Pin
Bill Wilson14-Aug-02 8:20
Bill Wilson14-Aug-02 8:20 
Questionhow i can do this??plz help me! Pin
aashu14-Aug-02 7:38
aashu14-Aug-02 7:38 
Generaltimers with CreateWaitableTimer Pin
Jim Crafton14-Aug-02 7:18
Jim Crafton14-Aug-02 7:18 
GeneralRe: timers with CreateWaitableTimer Pin
Daniel Lohmann14-Aug-02 13:57
Daniel Lohmann14-Aug-02 13:57 

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.