gpt4 book ai didi

c++ - 模板参数数量错误

转载 作者:太空宇宙 更新时间:2023-11-03 10:43:55 25 4
gpt4 key购买 nike

<分区>

我对cpp没有太多经验,更不用说systemc了。

为什么这样做有效?

sc_in<sc_uint<8>> a,b;

adder.cpp:5: error: ‘a’ was not declared in this scope
adder.cpp:5: error: ‘b’ was not declared in this scope
adder.cpp:5: error: wrong number of template arguments (2, should be 1)

这确实有效:

sc_in<int> a,b;

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com