#include <iostream>
using namespace std;
    class car{
     public :
    string name;
    int distance;
        void move(int km){
            distance += km;
        }
    }

int main() {
    car c[3];
    int c;
    for (int i = 0; i < 3;i++ ) {
        cout << i + 1 << "번째 차" << endl;
        cin << car[i].name;
        cout 
    }


}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: