gpt4 book ai didi

g++ - g++编译错误: missing ';'

转载 作者:行者123 更新时间:2023-12-02 10:49:04 25 4
gpt4 key购买 nike

我正在尝试运行此代码

tResults = itos(Freq)+"\t"dtos(maxTemp)+"\t"+dtos(xB * FP.parU[1])+"\t"+dtos(xH * FP.parI[1])+"\t"+dtos(FP.parI[1]);

string MaxResults::itos(int i)
{
stringstream s;
s << i;
return s.str();
}

string MaxResults::dtos(double i)
{
stringstream s;
s << i;
return s.str();
}

当我尝试编译时,g++告诉我
 error: expected `;' before ‘dtos’

但我看不到那里需要分号。有没有我想念的概念,还是我只是个白痴?

最佳答案

tResults = itos(频率)+“\ t” dtos(maxTemp)

标签和dtos(maxTemp)之间缺少加号...

关于g++ - g++编译错误: missing ';' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6284641/

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