Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void GetPoints(int ipoints, string srestaurant)
- {
- int index = 0;
- int iinput;
- for (index = 0; index < 5; index++)
- {
- Console.Write("please enter how many points " + srestaurant[index] + " got : ");
- iinput = Convert.ToInt32(Console.ReadLine());
- while (iinput < 0 && iinput > 20)
- {
- Console.Write("please enter how many points " + srestaurant[index] + " got : ");
- iinput = Convert.ToInt32(Console.ReadLine());
- }
- ipoints[index] = iinput;
- }
- }
- static void GetPoints(int ipoints, string srestaurant)
- // ^^^^^^ not an array
- ipoints[index] = iinput;
- // ^^^^^^^ its not an array
- for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
- {
- dataGridView1.Rows.Add();
- dataGridView1.Rows[dataGridView1.RowCount - 1][0] = ds.Tables[i].Rows[i]["NAME"].ToString;
- dataGridView1.Rows[dataGridView1.RowCount - 1][0] = ds.Tables[i].Rows[i]["EMP_ID"].ToString;
- dataGridView1.Rows[dataGridView1.RowCount - 1][0] = ds.Tables[i].Rows[i]["BLOOD"].ToString;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement