HTML5

HTML5 is Hypertext Markup Language (HTML).One of the major changes in HTML5 is in respect to how HTML addresses Web applications.Other new features in HTML5 include specific functions for embedding graphics, audio, video, and interactive documents.

CSS3

CSS3 is Cascading Style Sheets It brings a lot of long-awaited novelties, like rounded corners, shadows, gradients, transitions or animations, and make Website more attractive.

JavaScript

JavaScript is a programming language commonly used in web development. Mostly use to create effects in Websites

C++

C++ is a Programming Language most of the Software like Windows , Unix are developed in C++ it can run on many IDE's Like Dev C++ or Visual Studio.

Artificial intelligence (AI)

Artificial intelligence mostly is about a machine is working automaticaly or not? so it when we say automatic then its obviously means that the Robots are part of it.

Saturday, 24 December 2016

Introduction of C++

C++

C++ is actually a Programming Language Also a General Purpose language.The Most interesting thing is many Softwares based on This language i.e Linux It was created by Bjarne Stroustrup
it can Run on many IDE's like Dev C++, Visual Studio any version is also an Object Oreinted Machine like Java, Most of the people going to use java language instead of C that is the reason C# is been Developed 

Artificial Intelligence

Introduction:

Artificial intelligence mostly is about a machine is working automaticaly or not? so it when we say automatic then its obviously means that the Robots are part of it.Machine is also refer to automatic As machines become increasingly capable to work automaticaly so there must be some kind of errors and machine should detect that error or can make a decision.

Introduction to Javascript

Javascript:

It is a Programming Language that is very powerfull Language.Developer usually use Javascript where HTML not works properly.Now-a-days Jquery is mostly Used by Developer. It is Liberary of of Javascript.if we want to use better effects then we have to use Jquery in our Website.

Saturday, 30 January 2016

Snake Game in C++ with Loading

Project in C++

Loading Function in C++

Snake Game in c++

Free Download

Decrption:

                This is Snake game Project in C++ with amazing Functionality of loading it also tells the Score of the Snake the game will terminate when it hits the wall or itself

Friday, 29 January 2016

Telephone Directory Project in cpp

Tic Tac Toe

Shooting Game in cpp

Thursday, 28 January 2016

Make your blog just like Website by just Adding Template

How to add Template to your blog


Tuesday, 26 January 2016

Inheritance in c++

Inheritance

Defination:

               In General,Inheritance means that inherit something from parents like inherited property, inherits eyes color from your parents etc.In Programming , inheritance mean define a class in term of other class it will increase the Re-useability of functionality of that class thats why inheritance is very important in Object-Oreinted Programming Languages.
                                             As i told you before inheritance is "Define a class in term of another class" what is that mean.It mean you already created a class and you wanna create a new one class having same members and attributes so are you going to create a new one instead of using these member function and attribute that you already have? Your Code must be Compact but comprehensive. So lets discuss about Base Class & Derived Class .

Base Class:

                  A class that you already created lets Suppose you have created a class name "A"

Derived Class:

                   A class that you just derived from base class we can call this relation "IS a" relation
 because Derived class IS a part of Based class. i.e.. dog IS-A Animal, Cat is a black

Look at this Example:

"Dog is Inherited from Animal class"

Example with Program

"Addition.h"      //header file//

#include<iostream>
using namespace std;
class A{
int a;
public:
void getval_a(int);
int get_a();
};
class B:public A{
int b,c;
public:
void getval_b(int);
void add();//c=b+get_a()
void disp_val();//cout<<c;
};
void A::getval_a(int x){
a=x;
}
int A::get_a(){
return a;
}
void B::getval_b(int x){
b=x;
}
void B::add(){
c=get_a()+b;
}
void B::disp_val(){
cout<<"Value of A: "<<get_a();
cout<<"\nValue of B: "<<b<<endl;
cout<<"Sum of A & B: "<<c;
}


                     //inheritance
"Addition.cpp"

#include<iostream>
#include"addition.h"
using namespace std;
int main()
{
int a,b;
B obj;
cout<<"Enter value of A"<<endl;
cin>>a;
cout<<"Enter value of B"<<endl;
  cin>>b;
  obj.getval_a(a);
  obj.getval_b(b);
obj.add();
obj.disp_val();
}



"Main.cpp"

#include<iostream>
#include"addition.h"
using namespace std;

void A::getval_a(int x){
a=x;
}
int A::get_a(){
return a;
}
void B::getval_b(int x){
b=x;
}
void B::add(){
c=get_a()+b;
}
void B::disp_val(){
cout<<"Value of A: "<<get_a();
cout<<"\nValue of B: "<<b<<endl;
cout<<"Value of C: ";
}



















  



Encapsulation,Data Hiding & Abstraction

Encapsulation

Binding(or wrapping) code and data together into a single unit is known as Encapsulation.
For Example:
                  Capsule, it is wrapped with different Medicines

Classes Encapsulate (.. i.e wrap) attributes and member functions into objects and this is known as Encapsulation.

Data Hiding

Data is made hidden from the user by making them private.This is known as Data Hiding
For Example:
                  Private or Protected

Abstraction

Hiding internal detail and showing functionality is called Abstraction.
For Example:
                Phone call, we dont know the internal processing

Abstract Class

What is Abstact Class?

Ans: The Classes whose object cant be created is called Abstract Class.These classes are just used for Inheritance.if we create any pure Virtual function in class then it becomes an Abstract Class.if we dont overide the pure virtual function in Derived class then it becomes Abstract class.


Monday, 25 January 2016

Second Lecture

Understanding OOP with Program:

first of all we are going to discuss about classes , we know the defination of class now am gonna show you Class in Programming point of view,You can name your class what ever you wanna name it like Cat, Dog, Vehical, People etc
                     There is one thing in class name you have to Capital the first Letter of your class name it is not Neccessary but "Good Programming" Practice

EXAMPLE:

class Add{
private:
     int num1;
     int num2;
public:
       addition();
}

now this is called class Defination. i know you are now confused about class keyword  Private & Public dont worry am going to explain you right now. Private is reserved word it is used to because we dont wanna show our variable to other classes or outside the class it means no one can access your private data , only a member of class can access the data of private, Similarly public can be accessible for outside the class, Anyone can access to public data that why we just declare Function to the Public. and class keyword must be used to make a class.

What is OOP?

Defination of OOP:

Oop is an Object Oreinted Programming Language, basically it consist of Objects and Classes first we need to know the meaning of Object

Object:

           Objects are key to understanding object-oriented technology. Look around right now and you'll find many examples of real-world objects: your dog, your desk, your television set, your bicycle.

now you have basic idea about object.Second thing is Class so what is Classes in OOP?

CLASS:

The class is one of the defining ideas of object-oriented programming. Among the important ideas about classes are:
  • A class can have subclasses that can inherit all or some of the characteristics of the class. In relation to each subclass, the class becomes the superclass.
  • Subclasses can also define their own methods and variables that are not part of their superclass.
  • The structure of a class and its subclasses is called the class hierarchy.
Opp is basic of all programming Languages because almost all Languages are Object oreinted Languages i.e Java, c# etc 


Friday, 22 January 2016

Date Object

¨The Date object is used to work with dates and times.
¨Date objects are created with new Date().
¨There are four ways of instantiating a date:

var d = new Date();
var d = new Date(milliseconds);
var d = new Date(dateString);
var d = new Date(year, month, day, hours, minutes, seconds, milliseconds);


Math Object

¨The Math object allows you to perform mathematical tasks.
¨All properties/methods of Math can be called by using Math as an object, without creating it.
Syntax:

var x = Math.PI; // Returns PI
var y = Math.sqrt(16); // Returns the square root of 16



Form Validation

Limit minimum length
if (document.form1.password.value.length < 6)
{
alert("Please give a Password more than 5 characters");
                document.form1.password.focus();
                return false;

}
Confirm Password
if ((document.form1.pass.value) != (document.form1.r_pass.value))
{
                alert("Your password does not match");
                document.form1.r_pass.value == "";
                document.form1.r_pass.focus();
                return false;
            }
            return( true );


Restrict a field to accept Numeric
function isNumeric(elem, helperMsg){
  var numericExpression = /^[0-9]+$/;
  if(elem.value.match(numericExpression)){
  return true;
  }else{
  alert(helperMsg);
  elem.focus();
  return false;
  }
}

..............................................................
Complete Example
<script type='text/javascript'>
function isNumeric(elem, helperMsg){
  var numericExpression = /^[0-9]+$/;
  if(elem.value.match(numericExpression)){
  return true;
  }else{
  alert(helperMsg);
  elem.focus();
  return false;
  }
}
</script>

<form>
Numbers Only: <input type='text' id='numbers'/>
<input type='button'
  onclick="isNumeric(document.getElementById('numbers'), 'Numbers Only Please')"
  value='Check Field' />
</form>
Restrict a field to accept Alphabets
function isAlphabet(elem, helperMsg){
  var alphaExp = /^[a-zA-Z]+$/;
  if(elem.value.match(alphaExp)){
  return true;
  }else{
  alert(helperMsg);
  elem.focus();
  return false;
  }
}

COMPLETE EXAMPLE

<script type='text/javascript'>
function isAlphabet(elem, helperMsg){
  var alphaExp = /^[a-zA-Z]+$/;
  if(elem.value.match(alphaExp)){
  return true;
  }else{
  alert(helperMsg);
  elem.focus();
  return false;
  }
}
</script>
<form>
Letters Only: <input type='text' id='letters'/>
<input type='button'
  onclick="isAlphabet(document.getElementById('letters'), 'Letters Only Please')"
  value='Check Field' />
</form>

Validations using javascripting

Form Validation
 ¨No field should be left blank
¨ Email should contain asterik & dot or period symbols
¨Limit minimum length
¨Confirm Password
¨Restrict a field to accept Numeric or Alphabet


No field should be left blank.
var name = document.ContactForm.Name;
if (name.value == "")
    {
        window.alert("Please enter your name.");
        name.focus();
        return false;
    }
.................................................

Email should contain asterik & dot or period symbols
var email = document.ContactForm.Email;
if (email.value.indexOf("@", 0) < 0)
    {
        window.alert("Please enter a valid e-mail address.");
        email.focus();
        return false;
    }
    if (email.value.indexOf(".", 0) < 0)
    {
        window.alert("Please enter a valid e-mail address.");
        email.focus();
        return false;
    }


Complete Example

<script language="javascript">

function ValidateContactForm()

{
    var name = document.ContactForm.Name;
    var email = document.ContactForm.Email;
    var phone = document.ContactForm.Telephone;
    var comment = document.ContactForm.Comment;
    if (name.value == "")
    {
        window.alert("Please enter your name.");
        name.focus();
        return false;
    }
   
    if (email.value == "")
    {
        window.alert("Please enter your e-mail address.");
        email.focus();
        return false;
    }
   
if (email.value.indexOf("@", 0) < 0)
    {
        window.alert("Please enter a valid e-mail address.");
        email.focus();
        return false;
    }
    if (email.value.indexOf(".", 0) < 0)
    {
        window.alert("Please enter a valid e-mail address.");
        email.focus();
        return false;
    }
    if (comment.value == "")
    {
        window.alert("Please provide a detailed description or comment.");
        comment.focus();
        return false;
    }
    return true;
}
</script>

Thursday, 21 January 2016

Using Form Data

Personalising an alert box
<form name="alertform">
Enter your name:
<input type="text" name="yourname">
<input type="button" value= "Go" onClick="window.alert('Hello ' + ® document.alertform.yourname.value);">

</form>
.................................
Naming Form Elements in HTML

<form name="addressform">
Name:  <input name="yourname"><br />
Phone: <input name="phone"><br />
Email: <input name="email"><br />
</form>