Accelerated C++学习笔记1 unit0

    xiaoxiao2021-03-25  108

    0-2编写一个程序,编写一个程序,使它运行时输出 This (") is a quote, and this (\) is a blacklash'

    #include <iostream> using namespace std; int main() { std::cout<<"This (\") is a quote, and this (\\) is a blacklash"; return 0 ; }

    //运行结果

    Success time: 0 memory: 16064 signal:0

    This (") is a quote, and this (\) is a blacklash

    0-9最短的有效程序

    int main(){return 0);

    //运行结果

    Success time: 0 memory: 15240 signal:0

    0-10重写Hello,world! 让程序中每一个允许出现空白符的地方都换行

    #include <iostream> using namespace std; int main() { std :: cout << "hello,world!" << std :: endl ; // your code goes here return  0 ; }

    运行结果

    Success time: 0 memory: 15240 signal:0

    hello,world!

    转载请注明原文地址: https://ju.6miu.com/read-15378.html

    最新回复(0)