【发布时间】:2016-10-27 08:03:25
【问题描述】:
我试图在 Visual Studio 中将字符串转换为 int,但每当我这样做时,它似乎都无法拾取我试图引用它的东西。
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 WindowsFormsApplication5
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void points1_TextChanged(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
int x = Int32.Parse(textbox1.Text);
resultBox.Text =
}
}
}
我真的找不到任何东西,因为在线解决方案似乎根本不起作用。
【问题讨论】:
-
它似乎无法识别我试图引用它的东西你能用不同的方式解释吗?无法理解您的意思。
-
此外“我真的找不到任何东西,因为在线解决方案似乎根本不起作用。”不清楚。您关注什么解决方案?
-
你的 x 有转换后的 int ......你的问题是什么?