So I want to make a calcullator rpn with arralist so Read the comments in the code thas I want to do......Or can you give some advice for the rpn calculator..really I need some help..
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace ConsoleApplication9
{
class Program
{
static void Main(string[] args)
{
// RPN CALCULATOR SIMPLE
int ope1, ope2;
char operadp;
char[] sepa = { ' ' };
string operacion;
// Here the user write the operation
Console.WriteLine("escrina operacion");
operacion = Console.ReadLine();
//I Split the string
string[] cadena = operacion.Split(sepa);
//Here I want scan each character and IF is a intiger =ope1
//and IF is a Char = operado
//And IF the operad = + or - or * or / I going to operate
foreach (int i in cadena)
{
if( cadena is equals int)
{
}
}
}
}
}