All pastes #839618 Raw Edit

Miscellany

public text v1 · immutable
#839618 ·published 2007-12-31 03:15 UTC
rendered paste body
#include <cstdlib>
#include <time.h>
#include <iostream>
#include <vector>
#include <list>
#include <stack>
using namespace std;
 
int main(int argc, char *argv[])
{
    int x;
     stack<string> s;
     scanf ("%s", x);
    while (x=*s++) {
          switch (x) { 
            case '0': case '1': case '2': 
            case '3': case '4': case '5': 
            case '6': case '7': case '8': case '9': case '.': /* liczba */ 
                push(atof(element)); 
                break;