Jump to content
  • entries
    164
  • comments
    554
  • views
    130,627

cout << "C++ Class"


Legolover-361

831 views

You may not know that I've registered for an autumn C++ course at a local community college. If you didn't know, you do now. (Conversely, if you did know, get back in your seat and put your hand down.)

 

My introductory class on Tuesday covered orientation and naturally concluded with all students writing an obligatory "Hello World!"-type message.

 

#include <iostream>
using namespace std;

int main()
{
cout << "Welcome to C++ class!!!!\n";
return 0;
}

 

Our next class broke down the code into components. I now know that cout is C++'s print command, \n is a line break, <iostream> is a library, main() is the primary function of the program, and a bit more I won't recount here. It's fun to be in a community college course that is not a math class, especially when classroom exercises are involved, and I've wanted to learn a serious programming language (barring HTML / XHTML, CSS, and Javascript) for a while.

2 Comments


Recommended Comments

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...