知识库

C++语言开发示例:02. 赋值

2025-02-01 20:23:32 李腾 1 次阅读

assign.cpp

#include <iostream>

int main()
{
    using namespace std;
    cout.setf(ios_base::fixed, ios_base::floatfield);

    float tree = 3;
    int guess(3.9832);
    int debt = 7.2E12;
    cout << "tree = " << tree << endl;
    cout << "guess = " << guess << endl;
    cout << "debt = " << debt << endl;
}
转载请注明转自www.hylab.cn,原文地址:C++语言开发示例:02. 赋值

评论 (0)

登录后发表评论

暂无评论,快来发表第一条评论吧!