(1)
C#'da yaptığım bu programdaki hata nerde?
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication14{ public partial class Form1 : Form { public Form1() { Ini
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication14
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int a=Convert.ToInt32();
double fiyat= 0;
switch(a)
{
case1:
fiyat=1;
break;
case2:
fiyat=2;
break;
case3:
fiyat=3;
break;
default:
MessageBox.Show("Lütfen 1-2-3 değerlerinden birini girin");
break;
}
}
}
}
0
int a=Convert.ToInt32();
Parametre geçmemişsin.
0
arnold schwarzeneger
(
07.01.12)