我有这个使用文本的声明,但是我需要让它只适用于带有(,)小数的数字,现在我被卡住了......
public ref class Form1 : public System::Windows::Forms::Form
{
private: Stack<String^>^ talen;
public:
Form1(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
talen = gcnew Stack<String^>();
}
'
private: System::Void btnPush_Click(System::Object^ sender, System::EventArgs^ e) {
String^ tal = tbxTal->Text;
talen->Push(tal);
tbxIn->AppendText(tal + "\n");
tbxTal->Text = "";
}
private: System::Void Pop_Click(System::Object^ sender, System::EventArgs^ e) {
while (talen->Count!=0)
{
String^ tal = talen->Pop();
tbxUt->AppendText(tal + "\n");
}
}