为了账号安全,请及时绑定邮箱和手机立即绑定

为什么我的代码最后一行会多了一个空位?

#include <iostream>

#include <cmath>

#include <ctime>


int main() {

    std::cout << "char:" << sizeof(char) << "\n";


        std::cout << "unsigned char:" << sizeof(unsigned char) << "\n";


    std::cout << "int:" << sizeof(int) << "\n";


        std::cout << "unsigned int:" << sizeof(unsigned int) << "\n";


    std::cout << "short:" << sizeof(short) << "\n";


        std::cout << "unsigned short:" << sizeof(unsigned short) << "\n";


    std::cout << "long:" << sizeof(long) << "\n";


        std::cout << "unsigned long:" << sizeof(signed long) << "\n";


    std::cout <<"long long:" << sizeof(long long ) << " \n ";


        std::cout <<"unsigned long long:" << sizeof(unsigned long long) << " \n ";


    return 0;



}


正在回答

3 回答

删掉空格就行了呀

0 回复 有任何疑惑可以回复我~

这又来 了

0 回复 有任何疑惑可以回复我~

自己打上去的吧

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

为什么我的代码最后一行会多了一个空位?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信