Posts

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*...

Android Studio: My Career Assistant test phase 1

Image

Android Studio :My Career Asistant Test Phase Part 2

Image