Click here to Skip to main content
15,902,817 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question[Message Deleted] Pin
Member 284578422-Oct-08 7:32
Member 284578422-Oct-08 7:32 
AnswerRe: IHTMLServices Pin
Mark Salsbery22-Oct-08 8:33
Mark Salsbery22-Oct-08 8:33 
General[Message Deleted] Pin
Member 284578422-Oct-08 8:42
Member 284578422-Oct-08 8:42 
JokeRe: IHTMLServices Pin
Mark Salsbery22-Oct-08 8:47
Mark Salsbery22-Oct-08 8:47 
GeneralRe: IHTMLServices Pin
Member 284578422-Oct-08 9:01
Member 284578422-Oct-08 9:01 
GeneralRe: IHTMLServices Pin
Mark Salsbery22-Oct-08 9:15
Mark Salsbery22-Oct-08 9:15 
GeneralRe: IHTMLServices Pin
led mike22-Oct-08 11:05
led mike22-Oct-08 11:05 
AnswerRe: IHTMLServices Pin
led mike22-Oct-08 8:49
led mike22-Oct-08 8:49 
QuestionCache management implementation for C++ Pin
Ahmed Charfeddine22-Oct-08 6:16
Ahmed Charfeddine22-Oct-08 6:16 
AnswerRe: Cache management implementation for C++ Pin
James R. Twine22-Oct-08 7:57
James R. Twine22-Oct-08 7:57 
GeneralRe: Cache management implementation for C++ Pin
Ahmed Charfeddine23-Oct-08 23:17
Ahmed Charfeddine23-Oct-08 23:17 
Questionhow to set journal hook? Pin
anminxin22-Oct-08 5:21
anminxin22-Oct-08 5:21 
AnswerRe: how to set journal hook? Pin
Rajesh R Subramanian22-Oct-08 20:07
professionalRajesh R Subramanian22-Oct-08 20:07 
Questionsimple interpreter Pin
harcaype22-Oct-08 4:56
harcaype22-Oct-08 4:56 
AnswerRe: simple interpreter Pin
Mark Salsbery22-Oct-08 5:26
Mark Salsbery22-Oct-08 5:26 
GeneralRe: simple interpreter Pin
CPallini22-Oct-08 9:26
mveCPallini22-Oct-08 9:26 
AnswerRe: simple interpreter Pin
CPallini22-Oct-08 9:30
mveCPallini22-Oct-08 9:30 
AnswerRe: simple interpreter Pin
David Crow22-Oct-08 10:02
David Crow22-Oct-08 10:02 
GeneralRe: simple interpreter Pin
harcaype23-Oct-08 2:10
harcaype23-Oct-08 2:10 
QuestionRe: simple interpreter [modified] Pin
David Crow23-Oct-08 2:54
David Crow23-Oct-08 2:54 
AnswerRe: simple interpreter Pin
harcaype23-Oct-08 4:23
harcaype23-Oct-08 4:23 
wait. im sorry about that. this is the right code.

#include<iostream>
#include<stack>
#include<string>
using namespace std;

int main(){
stack<string> syntax;
string word;

while (cin >> word)
{
syntax.push(word);
}

cout << "Number of words: " << syntax.size() << endl;

while(!syntax.empty())
{
cout << syntax.top() << endl;
syntax.pop();
}

cout.flush();
return 0;
}
QuestionControl outgoing TCP/IP connections Pin
od@ananzi.co.za22-Oct-08 4:23
od@ananzi.co.za22-Oct-08 4:23 
AnswerRe: Control outgoing TCP/IP connections Pin
Richard Andrew x6422-Oct-08 18:00
professionalRichard Andrew x6422-Oct-08 18:00 
Questioncovert / cast int to char* with a twist Pin
Programm3r22-Oct-08 4:22
Programm3r22-Oct-08 4:22 
AnswerRe: covert / cast int to char* with a twist Pin
James R. Twine22-Oct-08 5:08
James R. Twine22-Oct-08 5:08 

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.