Posts

Showing posts from July, 2019

Website Layout Tutorial using Visual Studio Part 2

Image
Website Layout Tutorial using Visual Studio Part 2 Layout: Style Sheet: body  {     width:100%;     height:100%;       background-color:Lime; } .divMain {      padding-top:10px;    width:100%;     height:1200px;       background-color:Gray;      display:table;            }       .divLogo      {width:100%;     height:100px;                     }          .divImages          {             width:120px;     height:80px;                             }                     #t1 ...

Website Layout 1 Using Visual studio

Image
Website Layout 1 Using Visual studio Tutorial: StyleSheet.css File: body  {     width:100%;     height:100%;       background-color:Lime; } #divMain {      padding-top:10px;    width:100%;     height:1200px;       background-color:Gray;            }       .divLogo      {width:100%;     height:100px;                     }                     #t1      {          padding-top:0px;          margin-top: 50px;   margin-bottom: 100px;   margin-right: 50px;   margin-left:50px;             width:80%;     height:1000px;  ...

Template in C++

Image
Template in C++ Source Code: //Template: A  template performs the same functionality on different data types // It has two types 1. function templates 2. class templates #include<iostream.h> //1.template function template<class T> T add(T a,T b) {return a+b; } template<class T> class  MyClass {    T element;    public:             void setValue(T e){element=e;}            T getValue(){return element;}                 }; main(){                int a=10;int b=20;        float c=2.75;float d=4.50;        cout<<add(a,b);//calling template function        cout<<endl;         cout<<add(c,d);//calling template function     ...