Posts

Showing posts from 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     ...

How to use Const with C++ Classes

Image
Introduction: Dear students today we will talk about the constant (const) keyword in C++ class structure. In C++ we can use const in a class in three ways; const as a data member const as a member function const ad an object of a class Important points to remember; Constant data members can only be assigned by the constant member functions or by the member initialization list of a constructor. In this example, I am using member initialization list to assign the values to the constant data member of class student. The code snippet is given below; Code: ////////////////////////////////////////////C++ Code////////////////////////////////////////////////////////////////// #include <iostream.h> using namespace std; class Student {   const int Rollno;// constant data member   string name;   float cgpa;   public:   Student(int r): Rollno(r),name(""),cgpa(0) //Member initialization list   {     ...

TrackMyBudget 2

Image

TrackMyBudget Tables

Image

DDCA demo

Image

How to Zoom In and Zoom out image in WPF

How to Zoom In and Zoom out image in WPF XAML : <Window x:Class="WpfZoomInOut.MainWindow"         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"         Title="MainWindow" Height="350" Width="525">     <Grid>         <Grid>             <Grid.RowDefinitions>                 <RowDefinition/>                 <RowDefinition Height="10*"/>             </Grid.RowDefinitions>             <Grid>                 <Grid.ColumnDefinitions>                     <ColumnDefinition Width="5*...