热门

最新

红包

立Flag

投票

同城

我的

发布
weixin_74368555
轻言行风
3 年前
trueweixin_74368555

4.27
#include<bits/stdc++.h>
#include<string>
using namespace std;
class Stock
{
private:
string stockcode;
int quan;
double price;
public:
Stock(string na,int q=1000,double p=8.98)
{stockcode=na;
quan=q;
price=p;
}
void print()
{
cout<<"stockcode="<<this->stockcode<<" quan="<<this->quan<<" price="<<this->price<<endl;
}

};
int main(){
Stock a("123456"),b("5436",1234,1.1);
a.print();
b.print();
return 0;

}

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
Cross Attention(交叉注意力)它用于处理两个不同模态序列之间的关联,在多模态场景中用于将文本和图像等不同类型的数据进行交互处理。https://mp.weixin.qq.com/s/hFG1z5eLoEeOGIb8bLq08Q
立即登录