Introduction to Programming C++: Hello World

I’ve uploaded a new video as an introduction to programming.

We jump right into programming with the famous Hello World program.

Notes from the video are here:
1) Desktop Entry:
Code:
[Desktop Entry]
Name=Netbeans
Icon=/usr/local/netbeans-8.2/nb/netbeans.png
TryExec=/usr/local/netbeans-8.2/bin/netbeans
Exece=/usr/local/netbeans-8.2/bin/netbeans
Type=Application

OR

ln -sv /usr/local/share/applications/netbeans-8.2.desktop ~/Desktop/

2) Hello World:
#include
using namespace std;

int main()
{
cout << "Hello World!\n"; return 0; } 3) Add numbers: #include
using namespace std;

int main()
{
cout << "5 + 2 = " << 5 + 2 << endl; return 0; } Homework: 1) Create a C++ program that will add the first natural 10 numbers (1 + 2 + 3 + ... 10) 2) Create a C++ program that will print your name out to the screen.

This entry was posted in Computer Science and tagged , , , , , , . Bookmark the permalink.

Notice: compact(): Undefined variable: limits in /srv/www/vhosts/blog.ceneblock.com/wp-includes/class-wp-comment-query.php on line 853

Notice: compact(): Undefined variable: groupby in /srv/www/vhosts/blog.ceneblock.com/wp-includes/class-wp-comment-query.php on line 853

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.