Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Saturday

PHP for Beginners

PHP Introduction

PHP Three letters that together constitutes the name of one of the world’s most popular programming languages for Web development, the PHP Hypertext Preprocessor.




Advantage of PHP

  • Performance
  • Portability(Platform Independent)
  • Ease Of Use
  • Open Source
  • Third-Party Application Support
  • Community Support

PHP Environment Start – End

syntax is a way to representation of PHP script.
Basically it gives the primary idea to specify the code format.
It also specify the area of a written code.

The most commonly and effective PHP syntax:

<?php

echo "Welcome to the world of php";
?>

Monday

operator overloading in c++ with example


Overloaded operators are functions with special names: the keyword "operator" followed by the symbol for the operator being defined. Like any other function, an overloaded operator has a return type and a parameter list.
Operator overloading is an important concept in C++. It is a type of polymorphism in which an operator is overloaded to give user defined meaning to it. Overloaded operator is used to perform operation on user-defined data type.



Almost any operator can be overloaded in C++. However there are few operator which can not be overloaded. Operator that are not overloaded are follows
  • scope operator - ::
  • sizeof
  • member selector - .
  • member pointer selector - *
  • ternary operator - ?:



Operator Overloading Example:
#include< iostream.h>
#include< conio.h>
class time
{
int h,m,s;
public:
 time()
 {
  h=0, m=0; s=0;
 }
 void getTime();
 void show()
 {
  cout<< h<< ":"<< m<< ":"<< s;
 }
time operator+(time);   //overloading '+' operator
};
time time::operator+(time t1) //operator function
{
time t;
int a,b;
a=s+t1.s;
t.s=a%60;
b=(a/60)+m+t1.m;
t.m=b%60;
t.h=(b/60)+h+t1.h;
t.h=t.h%12;
return t;
}
void time::getTime()
{
 cout<<"\n Enter the hour(0-11) ";
 cin>>h;
 cout<<"\n Enter the minute(0-59) ";
 cin>>m;
 cout<<"\n Enter the second(0-59) ";
 cin>>s;
}
void main()
{
clrscr();
time t1,t2,t3;
cout<<"\n Enter the first time ";
t1.getTime();
cout<<"\n Enter the second time ";
t2.getTime();
t3=t1+t2; //adding of two time object using '+' operator
cout<<"\n First time ";
t1.show();
cout<<"\n Second time ";
t2.show();
cout<<"\n Sum of times ";
t3.show();
getch();
}






Sunday

c language for IA (Important Questions part 1)

Syllabus of  Information Assistant(IA)


  1. Problem Solving, Data Interpretation, Data Sufficiency, Logical Reasoning, Mental Ability and Analytical Reasoning.
  2. General Knowledge and Current Affairs relating to India and Rajasthan, Major developments in the field of Information Technology.
  3. Overview of the Computer System including input-output devices, pointing devices and scanner.
  4. Introduction to Operating System, Word Processing (MS-Word), Spread Sheet Software (MS-Excel), Presentation Software (MS-Powerpoint), DBMS Software (MS-Access).
  5. Representation of Data (Digital vs. Analog, Number System – Decimal, Binary & Hexa Decimal), Introduction to Data Processing, Concepts of files and its types.
  6. Introduction of Internet Technology and Protocol, LAN, MAN, WAN, Search Engines, Introduction to online and offline messaging, World Wide Web Browsers, Web publishing, Creation and maintenance of websites, HTML interactivity tools, Multimedia and graphics, Voice mail and Video Conferencing, Introduction to e-Commerce.
  7. Security: Protecting Computer Systems from virus and malicious attacks, Introduction to Firewalls and its utility, Backup & Restoring data.
  8. Algorithms for problem solving, Introduction to C language, Principles and Programming Techniques, Introduction of Object Oriented Programming (OOPs) concepts, Introduction to “Integrated Development Environment” and its advantages.




click here for C language