Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Practicing Structs | Structs & Enumerators
C# Beyond Basics

bookPracticing Structs

Fill in the blanks to create a struct called Car which has the following attributes:

  1. name of type string;
  2. model of type int;
  3. mileage of type float.

Also fill in the blanks to complete the output statement.

index.cs

index.cs

copy
12345678910111213141516171819202122
using System; struct ___ { ___; ___; ___; } class Program { static void Main(string[] args) { Car car; car.model = 2023; ___ = "Hilux"; car.mileage = 2000; Console.WriteLine($"The {car.name} has a mileage of {___} miles."); } }

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 2. Hoofdstuk 3

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

Awesome!

Completion rate improved to 2.04

bookPracticing Structs

Veeg om het menu te tonen

Fill in the blanks to create a struct called Car which has the following attributes:

  1. name of type string;
  2. model of type int;
  3. mileage of type float.

Also fill in the blanks to complete the output statement.

index.cs

index.cs

copy
12345678910111213141516171819202122
using System; struct ___ { ___; ___; ___; } class Program { static void Main(string[] args) { Car car; car.model = 2023; ___ = "Hilux"; car.mileage = 2000; Console.WriteLine($"The {car.name} has a mileage of {___} miles."); } }

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 2. Hoofdstuk 3
some-alt