Basic Language Understanding Environment Script

Basic Language Understanding Environment Script Providing basic programming using cplusplus java etc. under Ubuntu Linux OS

Lesson 3 - Control structures : Part 1 - if and switchTerminal command: go inside the directory of the .cpp filetype g++...
01/06/2016

Lesson 3 - Control structures : Part 1 - if and switch

Terminal command: go inside the directory of the .cpp file
type g++ vardatatypes.cpp -o lesson2.out then press enter.
after pressing enter, type ./lesson2.out. then your done.

Note: I am using space after the # because in facebook this represents for hashtag. But in your actual programming. Please don't put spaces in that part.

Source code:
# include /**header file: this is a class on a library that allows you to perform inputs and outputs. The IO on iostream means Input Output**/
using namespace std;

int main(){ //Ex*****on of your program always starts at your main
int a = 5;

//if statement
if(a == 5){
//if condition is true
cout

Lesson 2 - Variables and Data typesTerminal command: go inside the directory of the .cpp filetype g++ vardatatypes.cpp -...
01/06/2016

Lesson 2 - Variables and Data types

Terminal command: go inside the directory of the .cpp file
type g++ vardatatypes.cpp -o lesson2.out then press enter.
after pressing enter, type ./lesson2.out. then your done.

Note: I am using space after the # because in facebook this represents for hashtag. But in your actual programming. Please don't put spaces in that part.

Source code:

# include /**header file: this is a class on a library that allows you to perform inputs and outputs. The IO on iostream means Input Output**/
using namespace std;

int main(){ //Ex*****on of your program always starts at your main

int a = 10; //declaring variable a as an integer
bool b = false; //declaring variable b as a boolean which holds 0 or 1 / true or false;
string holder = "coding"; //declaring variable holder as a string
char s = 'r'; //declaring variable s as a character

//integer
cout

First of all you need a text editor: I am using Sublime Text 3.Lesson 1 - Printing Hello World on your screenTerminal co...
01/06/2016

First of all you need a text editor: I am using Sublime Text 3.

Lesson 1 - Printing Hello World on your screen

Terminal command: go inside the directory of the .cpp file
type g++ helloworld.cpp -o helloworld.out then press enter.
after pressing enter, type ./helloword.out. then your done.

Note: I am using space after the # because in facebook this represents for hashtag. But in your actual programming. Please don't put spaces in that part.

Source code:
# include /**header file: this is a class on a library that allows you to perform inputs and outputs. The IO on iostream means Input Output**/
using namespace std;

int main(){ //Ex*****on of your program always starts at your main

cout

Address

Davao City
8000

Website

Alerts

Be the first to know and let us send you an email when Basic Language Understanding Environment Script posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The School

Send a message to Basic Language Understanding Environment Script:

Shortcuts

Share