Posts

Showing posts with the label CPP

C++ (constracture)

Image
 

Hello World ,,,Using Class

 Hello World Using Class #include<iostream> using namespace std; class Solution{          void Hello(){                    cout<<"Hello";               } }; int main() { Solution s; s.Hello() }

Data Type in C++.

Image
C++ All data type in C++ are here.. #include<iostream> using namespace std; int main() {     cout << "Size of char : " << sizeof(char)        << " byte" << endl;     cout << "Size of int : " << sizeof(int)       << " bytes" << endl;     cout << "Size of short int : " << sizeof(short int)        << " bytes" << endl;     cout << "Size of long int : " << sizeof(long int)         << " bytes" << endl;     cout << "Size of signed long int : " << sizeof(signed long int)        << " bytes" << endl;     cout << "Size of unsigned long int : " << sizeof(unsigned long int)         << " bytes" << endl;     cout << "Size of float : " << sizeof(float)...

C++

 Hello World # include < iostream > using   namespace   std ; int   main (){      cout << " Hello World " << endl ;      return   0 ; }