#include<stdio.h> #include<conio.h> #include<windows.h> #define SIZE 5 int display(); int insert(); int deletedata(); int cqueue[SIZE]; int front=0; int rear=0; int data; int main() {int ch; while(1) { printf("\nCircular Queue Operation \n"); printf("1.Insert Data\n2.Delete Data\n3.Display Data\n4.Exit"); printf("\nChoose Your option : "); scanf("%d", &ch); switch(ch) { case 1: system("cls"); insert(); break; case 2: system("cls"); deletedata(); break; case 3: system("cls"); display(); break; case 4: exit(0); break; default: system("cls"); printf("Invalid Option Please press a Valid Option "); } } getch(); } int insert() { if(front==(SIZE-1)) printf("The Circular Queue is Full"); else { printf("Enter a element tobe inserted "); scanf("%d", &data); rear = (rear + 1) % SIZE; cqueue[rear] = data; } } int deletedata() { if (front!=rear) { { front = ((front + 1) % SIZE); data=cqueue[front]; printf("Element is deleted"); } } else printf("\nCircular Queue is empty"); } int display() { int i,j; if(rear==front) printf("Circular Queue is Empty"); else printf("Elements in circular queue are:\t"); { for (i = front+1; i < rear; i =(i + 1)%SIZE) printf("%d ", cqueue[i]); printf("%d ", cqueue[i]); } } |
Wednesday, April 30, 2014
Circular Queue using Function in C program
Saturday, April 19, 2014
Facebook Page's New Look
Facebook announced a new looks for pages last week. The new design including two columns similar to the old version, but the right column is now the Page's timeline and the left includes information about the brand or corporation. In the previous design, both columns served as the Timeline; posts were staggered between the left and right columns as users scrolled down.
![]() |
NEW LOOK |
![]() |
OLD LOOK |
<< operator overloading in C++
//simple << operator overloading example in C++
#include<iostream.h>
#include<conio.h>
using namespace std;
class log
{
int s;
public:
friend ostream &operator<<(ostream &, log &);
};
ostream &operator<<(ostream &dout,log &a)
{
dout<<"Enter a value of s : ";
cin>>a.s;
dout<<"Hey"<< a.s;
return (dout);
}
int main()
{
log a1;
cout<<a1;
getch();
}
/* OUTPUT:
Enter a value of s : 6 [6 is input data from user]
Hey6*/
Thursday, April 17, 2014
Top ten popular sites in Nepal
- Facebook.com
A social utility that connects people, to keep up with friends, upload photos, share links and videos.
- Google.com
Enables users to search the world's information, including webpages, images, and videos. Offers unique features and search technology.
- Google.com.np
Nepali version of Google.
- Youtube.com
YouTube is a way to get your videos to the people who matter to you. Upload, tag and share your videos worldwide!
- Onlinekhabar.com
online news from Nepal
- Ekantipur.com
ekantipur delivers latest news updates on national and international issues including politics,sports, business and entertainment with photo, audio and video.
- Yahoo.com
A major internet portal and service provider offering search results, customizable content, chatrooms, free e-mail, clubs, and pager.
- Blogspot.com
- Wikipedia.org
A free encyclopedia built collaboratively using wiki software. (Creative Commons Attribution-ShareAlike License).
- Nagariknews.com
Online Nepali News Portal.
The report is updated on 17th april, 2014.
Sunday, April 13, 2014
how to download android application from google play store from computer
Android Operating system is becoming popular day by day, Because of its more popular apps and we can also get it at cheap rate in the market as compared to other product like Apple. and of course most of the apps can be downloaded from google play store for free. such features making it to use on the computer using different kinds of emulator like Bluestack , Windroid Emulator and many more. To use android application through computer we need to download apk file which can not be downloaded directly from Google play store. But today i am going to share with you, how can we download android application from Google play store from the computer with simple steps.
Steps :
- First, Go to Google play store official site from here.
- Now search the application you want to download and click that application.
- You will see something following picture.
- now copy that selected link(app id) and go to http://apps.evozi.com/apk-downloader/ and paste the link that you have copied and click on 'Generate Download Link' (It may take few second or minute to complete, according to the size of a file).
- After the completion of process you will see a new button saying click here to download [app-name] now then click on that button.
- finally you will get apk file of an application , now you can install it to any emulator and can also install to the mobile devices.
Saturday, April 12, 2014
How to change boot animation of android devices
What is an android boot animation?
Android Boot animation is a term for a graphical representation of the boot process of an android operating system.
Short definition of changing boot animation of an android devices.
Boot animation of an android devices can be changed with different methods like using android terminal, using computer and using root browser app like root explorer. But easier and fast method is done by using root explorer.
How to change boot animation of an android devices ?
- first download the bootanimation.zip file (link are given at the last of the post).
- change the file name into bootanimation.zip (In case of other name).
- Now open Root Explorer (download root explorer from here)
- Open Root explorer and once inside, locate your original boot animation file (bootanimation.zip) in /system/media.
- And save original bootanimation.zip to sd card (optional).
- Now browse the bootanimation.zip that you have downloaded from here and copy and paste it to the /system/media folder (make sure it's read/write).
- Now reboot the phone.
Note: You have to make sure that the file name is correct (bootanimation.zip) for the system to recognize your boot animation, and boot properly.
BOOT ANIMATION FILES:
Other boot animations will be added soon.......
Friday, April 11, 2014
Top ten Punk Rock bands
TOP 10
The Misfit
Founded in 1977
The Misfits (2011) L-R Eric "Chupacabra" Arce (Drums),
Jerry Only (Bass/Vocals), & Dez Cadena (Guitar).
TOP 09
My Chemical Romance
formed in 2001.
Gerard Way- lead singer
other members Gerard Way, Frank Iero, Ray Toro, Mikey Way, Matt Pelissier, Bob Bryar.
TOP 08
The Offspring
formed in 1984
Doug Thompson (1984–1984), Dexter Holland (1984–)-lead singer
other : Dexter Holland, Kevin 'Noodles' Wasserman, Greg K.
TOP 07
The Clash
English punk rock band that formed in 1976.
Lead singer: Joe Strummer (1976–1986).
TOP 06
S** Pistol
Formed in London in 1975.
Lead singers: John Lydon (1975–1978), John Lydon (1996–).
TOP 05
Sum 41
Canadian rock band from Ajax, Ontario, Canada formed in 1976.
Lead singers: Marc Costanzo (1996–1997), Jon Marshall (1997–1998), Deryck Whibley (1996–).
Other Members : Deryck Whibley, Steve Jocz, Marc Costanzo.
TOP 04
The Ramones
American punk rock band that formed in the New York City neighborhood of Forest Hills, Queens, in 1974.
Lead singer: Joey Ramone (1974–1996).
TOP 03
Rise Against
American punk rock band from Chicago, Illinois, formed in summer 1999.
Members : Tim McIlrath, Zach Blair, Joe Principe and Brandon Barnes.
TOP 02
Blink 182
American rock band formed in Poway in 1992.
Members: Thomas DeLonge, Travis Barker, Mark Hoppus, Scott Raynor
TOP 01
Green Day
American punk rock band formed in 1987.
Lead vocalist and guitarist Billie Joe Armstrong, bassist and backing vocalist Mike Dirnt, drummer Tré Cool and guitarist.
Ranking is done by the ONLINE VOTER.
Thursday, April 10, 2014
Top ten Richest people in the history ever
Name : Cornelius Vanderbilt.
Net worth : $185 Billion
About :- Cornelius Vanderbilt made his first fortune on the steamboat industry but didn't see his wealth really explore until he invested in railroads at the age of 70.Top 09
Name : Henry Ford
Net worth : $199 Billion
About :- Ford Motor company founder Henry Ford built an iconic brand which we all still know and see today.Top 08
Name : Muammar Gaddafi
Net worth : $200 Billion
About :- After his death in 2011 reports surfaced that Gaddafi had a net worth of $200 billion. Nearly $70 billion was seized in foreign bank estate. Reset of his wealth comes from Libya's oil fields.
Top 07
Name : William the Conqueror
Net worth : $229.5 Billion
About :- William the Conqueror was most famous for invadung ans subsequently seizing England in 1066. He died in 1087 leaving $229.5 billion to his sons.Top 06
Name : Mir Osman Ali Khan
Net worth : $230 Billion
About :- He was the ruler of hydrabad until the country was invaded by neighbour India. He has a personal collection of goldworth of more than $100 millions and owned $400 millions of jewels. He also owned more than 40 ROLL Royces.Top 05
Name : Nikolai Alexanderovich Romanov
Net worth : $300 Billion
About :- Nikolai Alexanderovich Romanov ruled the Russian empire from 1894 to 1917 when Bolshevik Revolutionists overthrew and murdered him and his family.Top 04
Name : Andrew Carnegie
Net worth : $310 Billion
About :- Andrew Carnegie led the enormous expansion of the late 19th century. Made most of his fortune when he sold his steel company to JP Morgan.Top 03
Name : John D.Rockefeller
Net worth : $340 Billion
About :- His company standard oil dominated American oil production. It wa broken into amaller companies that you probably recognize today : AMOCO, CHEVRON CONOCO and EXXONMOBIL.Top 02
Name : The Rothschild Family
Net worth : $350 Billion
About :- They established european banking and finance houses starting in the late 18th century.Top 01
Name : Mansa Musa
Net worth : $400 Billion
About :- He lived from 1280-1337 and ruled the Malian empire. His wealth came from his country's production of salt and gold
Subscribe to:
Posts (Atom)