Thursday, 31 January 2013

C++ Project (Bubble Sort)

Following C++ Program Sorts Characters in Ascending Order......
I also Used Templates, it will help you alot....

Regards,
Mudassar Malik


Here is the code,, Copy it and paste it in C++ editor and Compile....
Don't Forget to practice it....


#include<iostream>
#include<conio.h>

using namespace std;

template<class type>
void Sort(type* arr,int s)
{
type temp;

for(int i=0;i<s-1;i++)
{
for(int j=1;j<s-i;j++)
{
if(arr[j-1]>arr[j])
{
temp=arr[j-1];
arr[j-1]=arr[j];
arr[j]=temp;
}
}
}


}


void main()
{
char *Array;
int Size;

cout<<"Enter Size of Array: ";
cin>>Size;
cout<<endl;

    Array=new char[Size];

for(int i=0;i<Size;i++)
{
cout<<"Enter Value: ";
cin>>Array[i];
cout<<endl;
}

cout<<"Unsorted Array: "<<endl;

for(i=0;i<Size;i++)
{
cout<<" "<<Array[i];
}
cout<<endl;


Sort<char>(Array,Size);


cout<<"Sorted Array: "<<endl;

for(i=0;i<Size;i++)
{
cout<<" "<<Array[i];
}
cout<<endl;



  getch();
}

Celluon Laser Projection Keyboard


Compatible OS: iOS 4 and later, Mac OS 10 and later, Android 2.2 and later, Windows XP/Vista/7 and later, and any device with Bluetooth HID support.

1)Bluetooth connection mode
2)Input power: 0.5 - 5 V DC adapter
3)Built-in battery, no external power supply, uses about 150 minutes.
4)Projection keyboard size is about 241 x 106 mm (the macbook keyboard size)



Top 15 reasons why running is good for your health…..!


Soccer Ball Generates Power from Play


Soccer Ball Generates Power from Play
- It’s called “ Socket”, & developed by Uncharted Play.
- It converts rolling and bouncing into electricity.
- 30 minutes of play can provide 3 hours of lamp light.
- Created for the developing countries.


World’s 1st Microchip Pills


——————————-
Bye Bye to all expensive scans, X-rays and other unnecessary tests prescribed by doctors. World’s first microchip pill has been introduced and approved by FDA.


The microchip is a normal digital chip made up of silicon with traces of magnesium and copper and is no bigger than the size of a normal medicine. Once the microchip is ingested, it gets activated by the digestive fluids of stomach and starts generating electric signals. These signals are received by a battery operated patch on the patient’s skin which forwards the medical information to a mobile app on patient’s consent. The battery operated patch has a life of seven days and in the mean duration, it is responsible for receiving all the inner-body conditions from the microchip.



Conceptual Art Work....

A beautiful art work to give concept of Pollution….!



Frozen Smoke

Aerogel, also know as frozen smoke, is the world’s lowest density solid, clocking in at 96% air. If you hold a small piece in your hand, it’s practically impossible to either see or feel, but if you poke it, it’s like styrofoam. It supports up to 4,000 times its own weight and can withstand a direct blast from two pounds of dynamite. It’s also the best insulator in existence!

Amazing

Amazing Example of Recycling… Must Share With Others. 

Tuesday, 29 January 2013