|

楼主 |
发表于 2021-12-5 20:40:37
|
显示全部楼层
不对呀,也是不行
- private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e)
- {
- double num=0.0;
- char ch1[20]={0};
- num = textStr_number(textBox1->Text);
- number_char(num, ch1);
- textBox2->Text = char_str(ch1);
- num*=3;
- //textBox4->Text = gcnew System::String(dtos(num));
- textBox4->Text = DoubleToString(num);
- number_char( num,ch1);
- textBox3->Text = char_str(ch1);
- }
复制代码
1>d:\c++\text_char_number\text_char_number\Form1.h(154): error C2664: “void System::Windows::Forms::Control::Text::set(System::String ^)”: 不能将参数 1 从“std::string”转换为“System::String ^” |
|