云计算技术分享 Hello, world!

#C++ Day1 Sep 7 2025


  1. Leant how to install the environment 

  2. The dream is to code a game for me

  3. Found the reason of headache:fit the brain 

  4. Not the copy&paste, if you write more, you remember more

  5. Try to answer the question  by yourself, do not to ask other people the first time



#include <iostream>

using namespace std;


int main()

{

cout << "Vito Algorithm" << endl <<endl <<endl; //endl is change the line

return -12;

}


#include <iostream>

//using namespace std;


int main()

{

std::cout << "Vito Algorithm" << std::endl << std::endl << std::endl; //endl is change the line

// i can use std:: before the cout and endl, so that i don’t need to script namespace

//the namespace, which is used to divide the different codes that uses the same variety name 

/*

multiple notes

*/


return -12;

}

Screenshot 2025-09-07 at 08.36.57.png


#include <iostream>

using namespace std;


int main()

{

//std::cout << "Vito Algorithm" << std::endl << std::endl << std::endl; //endl is change the line

//the definition of the variety:type name =origin value;

//please give the variaty a origin value, if you didn't do it, you are making errors when you are cout

int a = 520;

int b;

cout << a << endl;

cout << b << endl;


return 0;

}


Tags: C

发布: vito 分类: 未分类 评论: 0 浏览: 1
留言列表
发表留言
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。