Friday, 31 January 2014

Write a program in c++ that input your marks and calculate your percentage if percentage is less than 33 then it display that “sorry you are fail” otherwise you it show the message “congratulation you are pass” . your total marks is 850

Example 2 if else statement: statement: Write a program in c++ that input your marks and calculate your percentage if percentage is less than 33 then it display that “sorry you are fail” otherwise you it show the message “congratulation you are pass” . your total marks is 850? Logic:    The main logic in this example we...


Write a program in c++ that take a number as input and tell that number is even or odd.

Example if else statement: Logic:         If we divide a number with 2 if the reminder is zero then the number is even otherwise the number will be odd. In c++ for find the reminder we use arithmetic operator “%” . so this is the logic of our program that we use in our program. program:  #include "stdafx.h"...


Wednesday, 15 January 2014

If and else statement

If and else statement:                                     In c++ the compiler run our program instruction by instruction or line by line.Sometime we have some specific statement or instruction that we want to run when certain condition full fill. For this c++ provide the conditional...


Wednesday, 8 January 2014

How to make an dice in blander part 2

How to make an dice in blander:                                      part 2 4th step:             Now perform the Boolean operation on each sphere for this select the cube and go to properties panel and chose add modifier and...


How to make a dice in blender part 1

How to make a dice in blender(2.69):                                               part 1      1)-First step understand the blender interface Basic understanding: 1.1)We select a object by right click of mouse button. 1.2)we can rotate the our whole interface...


Monday, 6 January 2014

Basic input and output instruction in c++

Basic input and output instruction:                Two major function is use for basic input cin and getline.                 and for output we use cout Output(cout) Library /header file:  #include<iostream> Explanation:                    Cout is used for basic output in c++. Cout is used with two less...


String in c++:

String in c++: Library :   “ #include<string>” Explanation:                       Collection of character is called string.  Char data type only store the single character .for storing the collection of data c++ provide a data type as string  in which we can store the collection of character. For use this data type c++ provide a library “#include<string>”  this is not...


Thursday, 2 January 2014

Operator in c++

Operator in c++:                                            The following operator use in c++:       Assignment  operator       Arithmetic operator        Compound assignment operator       Increase and decrease  operator       Relational and equality operators operator  ...