vs2022编译c++时出现LNK2019错误,大佬帮帮忙

vs2022编译c++时出现LNK2019错误
摘要由CSDN通过智能技术生成

一直报错试了很久还是不行严重性     LNK2019    无法解析的外部符号 "class StationWagon __cdecl s(void)" (?s@@YA?AVStationWagon@@XZ),函数 main 中引用了该符号    14.2    C:\Users\myself\Desktop\c++\第十四周作业\14.2\14.2\源.obj    1    

#include<iostream>
using namespace std;
class Automobile {
public:
    Automobile(string a, string b, int c, int d) :brand(a), colour(b), weight(c), power(d) {
        cout << "Automobile con" << endl;
    }
    void A_set(string a, string b, int c, int d){
        brand = a;
        colour = b;
        weight = c;
        power = d;

    }
    void A_show() {
        cout << "品牌:" << brand << endl;
        cout << "颜色:" << colour << endl;
        cout << "车重:" << weight << "kg&

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值