Friday, November 25, 2011

Program to sort a link list

--------------Program to Sort a Link List----------------



#include <iostream>


using namespace std;
struct node
{
    int data;
    node* next;
}*q;
void add(int n)
{
    node* p;
    if(q==NULL)
    {
        p=new node;
        p->data=n;
        p->next=q;
        q=p;
    }
    else
    {
        node *a=q;
        while(a->next)
        {
            a=a->next;
        }
        p=new node;
        p->data=n;
        p->next=NULL;
        a->next=p;
    }
}
void sort(node* q) //sort link list
{
    node *i,*j;
    int t;
    for(i=q;i!=NULL;i=i->next)
    {
        for(j=i->next;j!=NULL;j=j->next)
        {
            if(i->data>j->data)
            {
                t=i->data;
                i->data=j->data;
                j->data=t;
            }
        }
    }
}
void show(node* p)
{
    node *a=p;
    while(a)
    {
        cout<<a->data<<"->";
        a=a->next;
    }
}
int main()
{
    q=NULL;
    add(5);
    add(4);
    add(3); add(2); add(1);
    show(q);
    sort(q);
    cout<<"\nsorted list is:";
    show(q);
    return 0;
}

Tuesday, November 8, 2011

Samsung Galaxy Note

Samsung Galaxy Note


Also known as Samsung GT-N7000
GENERAL2G NetworkGSM 850 / 900 / 1800 / 1900
3G NetworkHSDPA 850 / 900 / 1900 / 2100
Announced2011, September
StatusAvailable. Released 2011, October
SIZEDimensions146.9 x 83 x 9.7 mm
Weight178 g
DISPLAYTypeSuper AMOLED capacitive touchscreen, 16M colors
Size800 x 1280 pixels, 5.3 inches (~285 ppi pixel density)
- Gorilla Glass display
- TouchWiz UI v4.0
- Multi-touch input method
- Accelerometer sensor for UI auto-rotate
- Touch-sensitive controls
- Proximity sensor for auto turn-off
- Gyroscope sensor
SOUNDAlert typesVibration; MP3, WAV ringtones
LoudspeakerYes
3.5mm jackYes
MEMORYPhonebookPractically unlimited entries and fields, Photocall
Call recordsPractically unlimited
Internal16GB/32GB storage, 1 GB RAM
Card slotmicroSD, up to 32GB, 2 GB included
DATAGPRSClass 12 (4+1/3+2/2+3/1+4 slots), 32 - 48 kbps
EDGEClass 12
3GHSDPA, 21 Mbps; HSUPA, 5.76 Mbps
WLANWi-Fi 802.11 a/b/g/n, DLNA, Wi-Fi Direct, Wi-Fi hotspot
BluetoothYes, v3.0+HS
Infrared portNo
USBYes, v2.0 microUSB (MHL), USB On-the-go
CAMERAPrimary8 MP, 3264x2448 pixels, autofocus, LED flash
FeaturesGeo-tagging, touch focus, face and smile detection, image stabilization
VideoYes, 1080p@30fps
SecondaryYes, 2 MP
FEATURESOSAndroid OS, v2.3 (Gingerbread)
CPUDual-core 1.4GHz ARM Cortex-A9 processor, Mali-400MP GPU, Exynos chipset
MessagingSMS(threaded view), MMS, Email, Push Mail, IM, RSS
BrowserHTML
RadioStereo FM radio with RDS
GamesYes
ColorsBlack, White
GPSYes, with A-GPS support
JavaYes, via Java MIDP emulator
- S Pen stylus
- NFC connectivity (optional)
- Active noise cancellation with dedicated mic
- NFC support (optional)
- TV-out (via MHL A/V link)
- SNS integration
- Digital compass
- MP4/DivX/XviD/WMV/H.264/H.263 player
- MP3/WAV/eAAC+/AC3/FLAC player
- Organizer
- Image/video editor
- Document editor (Word, Excel, PowerPoint, PDF)
- Google Search, Maps, Gmail,
YouTube, Calendar, Google Talk, Picasa integration
- Adobe Flash 10.1 support
- Voice memo/dial/commands
- Predictive text input (Swype)
- Samsung ChatON
- Barometer sensor

BATTERYStandard battery, Li-Ion 2500 mAh



Price will be approx: $666.67 or  ` 34,000