Featured Post Today
print this page
Latest Post
Subscribe To Our Newsletter

Sign Up Now To Get Free Coupon Codes, Event Coupon Codes Updates, Offers Updates. It's 100% Free!

We Hate Spam! Really, It's terrible and we never do it.

Showing posts with label C Plus Plus Training. Show all posts
Showing posts with label C Plus Plus Training. Show all posts

C++ | How to show output | Lecture 10

How to show output | C Plus Plus

How to show output in C Plus Plus?

Here you will come to know how to show output in C++. Here a special command is used
cout
Pattern :
cout << "It is Samee Articles: Quality Written Codes Blog. It is How to show output article." ;
termination is very important. don't forget it.
thanks.


 /*  
  Name: Show Output.  
  Copyright: SameeArticles.blogspot.com (Quality Written Codes)  
  Author: Samee Ullah Feroz  
  Date: 26/01/14 23:03  
  Description: Here you will learn C++ basic syntax and function  
 */  
 #include <iostream>  
 int main()  
 { //body starts from here  
   using namespace std; //It will call all standard functions of C++ before body  
   cout << "Welcome to Quality Written Codes.";  
   cout << endl; //It is used to break line  
   cout << "\tSupported by Samee Ullah Feroz." << endl; //it is an other method to break line.  
   // "\t" is used to add tab like in PHP language.  
   system("pause"); //It will help to stop this program  
   return 0; // It will end this function.  
 } //body ends here  

0 comments

C++ | For Loop Basics | Lecture 9

Here you will learn how to create for loop in C plus plus. Some times you have to run for loop till condition satisfied.

 /*  
  Name: For Loop in C++  
  Copyright: SameeArticles.blogspot.com  
  Author: Samee Ullah Feroz  
  Date: 19/03/14 13:32  
  Description: Here you will learn about C++ for Loop system  
 */  
 #include <iostream>  
 #include <cmath> //it is for all math functions library  
 int main() //it is actually a function here  
   {  
    using namespace std;  
    int x;  
    for (x=0; x <=10; x++)  
      cout << x << endl;  
    system("pause");  
    return 0;  
   }   
0 comments

C++ | Usages of Arrays elements| Lecture 8

Lecture 8:
Here you will learn that how to use arrays elements and how to pray with them?
Arrays elements are located or called by their place number or name. Arrays elements place starts from [0]... to so on.

 /*  
  Name: More on arrays  
  Copyright: sameearticles.blogspot.com  
  Author: Samee Ullah Feroz  
  Date: 05/03/14 15:17  
  Description: Here you will learn about usage of arrays element.   
 */  
 #include <iostream>  
 #include <cmath> //it is for all math functions library  
 int main() //it is actually a function here  
   {  
    using namespace std;  
    int ages[3] = {21, 19, 9}; //2nd method  
    cout << ages[1] + ages [0] << endl;  
    system("pause");  
    return 0;  
   }   

0 comments

C++ | Beginning of Arrays | Lecture 7

beginning of arrays

Lecture 7:

Today we 'll discuss about Arrays in C++.
Array is a data structure, which allows us to collect same size and type of values in single variable. And if you need to call any specific value within array. You need to call its position. Here you will learn that how can we play will array in C++.

 /*  
  Name: Beginning Concept of Arrays  
  Copyright: Sameearticles.blogspot.com  
  Author: Samee Ullah Feroz  
  Date: 28/02/14 16:08  
  Description: Here you will learn about arrays that what is array?  
 */  
 #include <iostream>  
 #include <cmath> //it is for all math functions library  
 int main() //it is actually a function here  
   {  
    using namespace std;  
    int ages[3];  
    ages [0]=21;  
    ages [1] = 19;  
    ages[2] = 9;  
   cout << ages[1] + ages [0] << endl;  
    system("pause");  
    return 0;  
   }   
0 comments

C++ | Return Value in Function | Lecture 6

return value in function

Lecture # 6:

Here you will learn that how to return value in function in C++ programming?
It is a very useful way and important way. You will use it in your programming many times. It works with user define functions. Let's try it.
Here we take dog year example.

 /*  
  Name: Return Value in functions  
  Copyright: SameeArticles.blogspot.com  
  Author: Samee Ullah Feroz  
  Date: 24/02/14 16:17  
  Description: How to return value in function in C++?  
 */  
 #include <iostream>  
 #include <cmath> //it is for all math functions library  
 int dogyears(int); //it is int function and return int   
 int main() //it is actually a function here  
   {  
    using namespace std;  
    int years; // user define variable  
    cout << "enter your dogs age: ";  
    cin >> years;  
    int peopleyears = dogyears(years);  
    cout << "your dog is " << peopleyears << endl;  
    system("pause");  
    return 0;  
   }   
 int dogyears(int dog) //User define function.  
 {  
   return 7 * dog; //it will return a value a variable  
 }  
0 comments

C++ | Arguments In Functions | Lecture 5

arguments of functions
Default arguments in functions allow you to call specific arguments within the specific function.
Here we defined two functions.
pow() And rand()
And we use them to get the specific value.

 /*  
  Name: arguments in functions  
  Copyright: Sameearticles.blogspot.com  
  Author: Samee Ullah Feroz  
  Date: 27/01/14 00:10  
  Description: Using some other functions of mathematics.  
 */  
 #include <iostream>  
 #include <cmath> //it is for all math functions library  
 int main() //it is actually a function here  
   {  
    using namespace std;  
    double num1;  
    num1 = pow(2.0, 4.0); // power function like 2^4  
    cout << "power is = " << num1 << endl;  
    num1 = rand(); // random numbers  
    cout << "Random Number is = " << num1 << endl;  
    system("pause");  
    return 0;  
   }  

0 comments

C# Sharp Reserved Keywords List

reserve keywords
Those keywords, which are predefined in C Sharp Language compiler are called reserved keywords. But you can not use them as identifiers.
C# Sharp Reserved Keywords List Is Given Below:
abstract
catch
default
delegate
explicit
as
char
extern
base
checked
do
false
bool
class
double
finally
break
const
else
fixed
byte
continue
enum
float
case
decimal
event
for
foreach
interface
null
private
sealed
switch
ulong
volatile
goto
internal
object
protected
short
this
unchecked
while
if
is
operator
public
sizeof
throw
unsafe
implicit
lock
out
readonly
stackalloc
true
ushort
in
long
out
ref
static
try
using
namespace
override
return
string
 typeof
virtual
int
new
params
sbyte
struct
uint
void
0 comments

C++ | Beginning Functions > Using math library functions | Lecture 4

math library functions

 Using Math Library Beginning Functions:

Here you will learn about Math Library Beginning Functions. Like
  1. Cos
  2. Sin
  3. Tan
  4. Sqrt
  5. Pow
  6. Log
  7. And More
But here, I'll just discuss one function that is
sqrt function >> Square root function >> text with the √ symbol
In below given code, you will learn that
1st) You should add
#include <cmath>
into the header. It is mathematics library in C Plus Plus, in which you can find all important math functions.
double num2;
num2 = sqrt (num1);
Here I am taking the square root of num1 variable. likewise, you just need to try same functionality to all math type functions.

 /*  
  Name: beginning functions   
  Copyright: sameearticles.blogspot.com  
  Author: Samee Ullah Feroz  
  Date: 26/01/14 23:49  
  Description: Using Math library functions....  
 */  
 #include <iostream>  
 #include <cmath> //it is for all math functions library  
 int main() //it is actually a function here  
   {  
    using namespace std;  
    double num1;  
    cout << "pick your number...." << endl;  
    cin >> num1;  
    double num2;  
    num2 = sqrt(num1); // variable not in quotes  
    cout << "The square root of = " << num1 << " is " << num2 << endl;  
    system("pause");  
    return 0;  
   }  

Try it.
0 comments

C++ | How to get user input in C++? Lecture 3

user input

How to get user input in C++?
Here you need to use IOStream function
CIn >>
CIn is used to get input from the user but before it, You need to declare a variable in which you can serve your user value.
Note: "using namespace std" is important to add. It is used to add standard functions.
If you are thinking about
<<
So it is used as concatenation like in PHP dot operator performs

 /*  
  Name: cin function in C++  
  Copyright: sameearticles.blogspot.com  
  Author: Samee Ullah Feroz  
  Date: 26/01/14 23:39  
  Description: How to get user input in C++?  
 */  
 #include <iostream>  
 int main() //it is actually a function here  
   {  
    using namespace std;  
    int saminum; //we need to daclare a variable....  
      cout << "What is your age?" << endl; // << is as concatination remind it.  
      cin >> saminum;  
      cout << "My age is = " << saminum << "\n";   
      saminum = saminum + saminum;  
      cout << "double is = " << saminum << endl << "Enter to close it.";  
    system("pause");  
    return 0;  
   }  

0 comments

C++ | Modify variable and replace its values | Lecture 2

Variable:

Variable is certain type of variable which is liable to vary and change for specific purpose and according to its range.

Types of Variable:

Modify Variable And Replace Its Value:

In Lecture 2 you will learn about variable modification and replacement.
Once you define a variable you can easily use that for print out your data. as
mynumber = 55;  
cout << "My Number is = " << mynumber << endl;  
If you are thinking about
endl
endl (End Line), It is used to break the line.
As you know, why do we use
system("pause");
So we can stop our function anywhere and anytime. 
If you define a variable and show its value.
Again you replace another value to this same variable and again show its value. So, now its value will be changed because you have replaced its value. C++ or any other language always prefer to latest value.
You can also use addition, multiply or any mathematics rules for variables but you need to see its type.
Variable type is very important to describe. Variable is defined according to its range.

 /*  
  Name: Replace variable and modify value  
  Copyright: QWC.Me  
  Author: Samee Ullah Feroz  
  Date: 26/01/14 23:31  
  Description: Replace variable and modify value  
 */  
 #include <iostream>  
 int main()  
   {  
    using namespace std;  
    int mynumber; //we daclare mynumber is as variable and its type is integer.  
      mynumber = 55;  
      cout << "My Number is = ";  
      cout << mynumber << endl << "Please enter to show new value\n";  
      system("pause");  
      //replace variable  
      mynumber = 32;  
      cout << "My Number is = ";  
      cout << mynumber << endl << "Please enter to check addition of both values\n";  
      system("pause");  
      //again replace with arthmatics values.  
      mynumber = 32 + 55;  
      cout << "My Numbers addition is = ";  
      cout << mynumber << endl;  
    system("pause");  
    return 0;  
   }  
You can ask me any question regarding this lecture to Wizpert.

Download Free Perfect Uninstaller

0 comments

How to show output: Basic Syntax and Function: Lecture 1

C++ Output

How to Show Output And Basic Syntax and Function:

In C++ (C Plus Plus), we need to include C++ Libraries then we start body parts. If we need to describe user define functions then we'll describe that between head and body.
IOStream
This library is used for (Input & Output Stream). Because we may need to use many input-output built-in functions within body parts.
int main()
The main body starts here. You need to define your main executed code here.
Cout << "Welcome to Quality Written Codes.";
Cout is used for output the value.  We'll write output value within single or double quotes. It is like Echo Function in PHP
Note: Every line will be terminated with semi-colon ( ; ) is called "Terminator" as PHP
There are two ways to write comments within C++ Code.
#include <iostream> //C++ Library
#include <iostream> /*C++ Library */
  1. You can add comments with two slashes " // "
  2. You can also comment with "/* Quality Written Codes */" Asterisk Slash.
Note: These two methods are same as PHP comment system
Here you will know, How to pause system?
system("Pause");
You need to use this function, where you need to pause system.
Return 0;
It will null to 1st function or execute the function.


 /*  
  Name: Show Output.  
  Copyright: Sameearticles.blogspot.com  
  Author: Samee Ullah Feroz  
  Date: 26/01/14 23:03  
  Description: Here you will learn C++ basic syntax and function  
 */  
 #include <iostream>  // C++ Library
 int main()  
 { //body starts from here  
   using namespace std; //It will call all standard functions of C++ before body  
   cout << "Welcome to Quality Written Codes.";  
   cout << endl; //It is used to break line  
   cout << "\tSupported by Samee Ullah Feroz." << endl; //it is an other method to break line.  
   // "\t" is used to add tab like in PHP language.  
   system("pause"); //It will help to stop this program  
   return 0; // It will end this function.  
 } //body ends here  

Learn Its basics and ask the question about it.
0 comments

C++ (C Plus Plus) Basics : Day wise lectures : Complete C++ Basic Training within 7 days.

Complete C++ Basic Training

C++ (C Plus Plus) Basics:

C++ Basic training is going to start day wise. You can attend C++ lectures from beginning. you can complete your basic training within 7 days. You just need to work out 30 minutes daily. As you can get C++ basic training daily as PHP Training.
0 comments
 
Support : | Internet Marketing Specialist And Business Developer
Copyright © 2013-2016. Samee Articles - All Rights Reserved
Proudly powered by Blogger