Category: C++

15
Jun
2015

C++ Strings

Actually C++ strings are two types 1. Traditional C style character string 2. String class type Introduces…

11
Jun
2015

C++ Pointer

I tried to clear here my logic for pointer basic #include<iostream> using namespace std; int main(){ int…

08
Jun
2015

C++ Array

declare arrays: arraytype arrayName[arraySize]; //basic syntax example: int zakiLive[10]; Initialize arrays: int zakiLive[5]={4,5,6,8}; zakiLive[3]=8 It means value…

08
Jun
2015

C++ Numbers

defining numbers in c++ code: #include<iostreaM> using namespace std; int main() { //declaring the numbers short s;…

08
Jun
2015

C++ Nested Switch , Nested If

Nested If,Else If,Else: if(a<b){ if(c>a) { statement; } statement; }else{ if(c>d){ statement; } statement; }   Just…

08
Jun
2015

C++ Ternary Basics clear

Last tutorial we have seen about ternary But the question is why we use ternary ? if(a>b){…