Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace WindowsFormsApplication2
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void btnCalculate_Click(object sender, EventArgs e)
- {
- var MainStack = new Stack<float>();
- Int32 top = 0;
- if (string.IsNullOrEmpty(txtInput.Text))
- {
- MessageBox.Show("Sorry, no input was found");
- }
- else
- {
- NewCalc(MainStack, Top);
- }
- }
- private void NewCalc(Stack<float> mainstack, Int32 top)
- {
- Boolean ValidExpression = true;
- String Temp = "";
- Char Current;
- String Input = txtInput.Text;
- for (int i = 0; i < txtInput.Text.Length; i++)
- {
- Current = Input[i];
- if (char.IsWhiteSpace(Current))
- {
- MessageBox.Show("Test");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement