Earn Money at Homeis now not a hard Work.Once i meet a freelancer Mr.Tahir jamalin my university Who used to work at Fiverr.I sought the procedure from Him and started to work as well.Then i decided to Make a Tutorial on Fiverr.Fiverr is a Best marketing and Working place for Freelancers.You can Sell any thing here Only in 5$.Work on fiverr is Very simple.But for work here you Need Some skills Such As*.-Graphics designing*.-Search Engine Optimization*.-Article writing*.-Logo DesigningSkills is Not A Problem But Thats Good for Earning Big Money.The famous services on fiverr is The above Mention in article So I think Learn some thing About this before started work on fiverr.And check your self then which work best for your career on Fiverr.How To start Work on fiverrpeople who want to start work onfiverr follow our guidelines.Working on fiverr is nothing hard but this is very simple.see The below steps1.First Register an a Account With your Email Address.*.Register Now / Join Nowin Registration process you needa Email address Like Gmail/yahoo Etc.When you can Visit the registration link Then add this email in the box.and click on Continue.See SnapshotAfter Add Your email address in the Box Then open your Email and Follow the instruction Which is send you via fiverr to your account.Fiverr send also to you alink for complete your registration.Now Complete your profile and start selling.Start Selling on fiverrbefore start any work on fiverr complete your profile informationand Then Go to start marketing here.Before sell any thingApply for payoneer mastercard Because without payoneer master card you can not Getearnmoney in pakistan.*.payoneer in pakistan video guide in urduFor sell anything or working on fiverr Create a Gig and publish it on your profile.Before publishing a Gig Remember Then write Goodand informative Description and info about your Gig.You can also add A video file to your gig because Video is better for sell And Earn more money on fiverr.How To create a Gig On fiverr?Gig is just the information about your work.Create a gig By Clicking on your profile and then Click onCreate a Gig and now add Gig title.For example : I will Create for you a logo*.Select Category *.Upload a Image about your Gig *.Add Description about your Gig *.Add Tags to your fiverr gigs *.Add Duration *.Add important instruction for buyersNow Click onSave and Continue.Your Gig is Now ready but in nextSteps you can also upload a video file about Your Gig But Thisis optional.After completing your gig Share This On your social Media Profiles and wait for Orders.Now watch The Below Complete video Guide in urdu.How To start work on fiverr (Video Tutorial)How to start selling on fiverrHow To Get Orders On fiverrThe article is only the short introduction of Fiverr and Working on fiverr Tips.To know More about Fiverr and learn Some thing Great Watch OUR 30 mints Fiverr Complete video training In urdu.This complete course is a Chance for you to start work online.
Read More..
Tebak Gambar APK FREE Download Android Apps APK Download
Tebak Gambar APK FREE Download - Android Apps APK Download: Tebak Gambar APK for Android Free Download latest version of Tebak Gambar APP for Android..
Read More..
How to earn money from twitter

In urdu
Facebook Aur Twitter ki jab bat ati ha
Bhot sy log Facebook ki trf jaty haa but twitter Facebook sy bhtr ha earning k muamlay maa
Guide
Step by step
Is available
Here.




How to unblock youtube in pakistan complete method in urdu hindi tutorial
Youtube is a powerful & famous world wide Video sharing website.Million people Using youtube for many purposes. Some people using this for Entertainment and many people using this formaking money online.but No doubt then youtube is a good place For watching & sharing videos. Youtube is Blocked in pakistan from the last some years.Why is Youtube blocked in pakistan?youtube is a social network & every one is be able to share videos on this website. But somepeoples using this for abusive works. And sometime youtube taking action against them. But as a Big social media website they have some rule & they are working under this. IN 2012 Pakistan blocked youtube because of blasphemy. The video-sharing website has been blocked in the country since September 2012 over its hosting a movie that sparked furious protests around the world.and Govt Banned youtube in pakistanhow to open Youtube in pakistan?My today article is about how tounblock youtube in pakistan . i am going to share my favorite methods which i am using for opening youtube in my country. In 2014 i got a software and in the start of 2014 i got an a Chrome extension but before thisi used proxies for youtube. I got different results from every methods, proxies is not best if you want to upload videos on your channel and Software is not best if you are using or browsing other websites on internet.because its will decrease your internet speed. Zenmate Extension is the good option in my opinion but now i am going indetail then which is the good method and why?1: proxy for youtube in pakistanThousands of proxy websites is available on internet.You can open any proxy & then open youtube. But i am not like proxiesbecause in this method I Got many problems.1: Slow speed is the main problem2: Uploading problems when i want to upload videos on youtube3: a Big number of ads in proxy websites.2: Open youtube by a softwarei got a software from a friend which name was Ultra Surf andafter using somedays i reject this. Because its also a proxy. But thats good & working well if you are using youtube just for watching videos. Hotspot shield is also a software Which you can use for Unblock any website.3: Zenmate Extension:Yes This is my favorite Extensionand i Uploaded 10 videos just in 2 hours by the help of this. You can visitZenmate.com and then install this extension in google chrome. When you want to open youtube then just activate this extension and browse youtube and easily login and upload your videos. But you can also watch the below video tutorial for Understanding completely.I think the video tutorial is a complete solution of all your problems about youtube. watch This video & then share with yourfriends. If you are still facing any problem then please Just comment here & i will solved your problem. Above all methodsis safe and 100% working.
Read More..
How to check your website on google adsense ban checker
Is your website be able to googleadsense? Maybe you have no answer . but now i found a tool which is very helpful and workingtool for adsense ban checking. i also shared here a tutorial aboutmake money with google adsense in urdu& described every thing about adsense. but recently i got this tool and then Thought about a tutorial.how does This working?basically this is a website bannedcheck.com and have a good rating in google search.because i choose this. If any one have a website and wantto get a google adsense account but not know then his account is banned or working then they can check this tool first.This is just a website which we can use for adsense ban checkinghow to check your website?first of all visitbannedcheck.comhere is a box where you can puttyour website url & then click on submit button. if you want to check another person website then just enter his website URL and apply this method. after submitting this website will be give you a result about adsense ban.you can watch the below tutorial for Learning more about this. watch tutorial about adsense ban checkerthis tutorial is very important for every one who wish about Google adsense. Video is in urdu& hindi language but if you not understand this video then comment below and ask your question , i will answer you .
Read More..
Top 5 Christmas Android APK Games to Download

Download Christmas Games APK for Android
It is the season of giving and for those who will be spending quality time not just with their families but also with their smartphones; this is the time to download Christmas games apk on your Android devices. Here are 5 games for you to download and try them out! Warning: Kids will probably love your smartphone with these Christmas apk games more than the gifts you get them! :)
1) Santa Fly And Try 5 APK
Santa Fly And Try 5 APK is a game where you will be role playing as Santa! Your goal will be to deliver gifts to children all around the world in time or else there will be a lot of sad children and we definitely do not want that now, do we? Now it is not that easy as there are many obstacles that Santa will be facing. This game is sure to be a hit with the kids especially with the awesome graphics they have in store. There are magical journeys to take place and various levels that add in a lot fun moments. Also the whole flight stimulator experience is excellent! You can download Santa Fly And Try 5 APK file and transfer it to your smartphones or tablets and then install it. Download it today and help spread smiles to millions of digital children!
2) Ski Safari 2 APK
Even if it is not a white Christmas you can still enjoy Ski Safari 2 APK as you wind down slopes amidst cabins, yetis and penguins! Oh and make sure that you collect coins so that you can shop within the game. Ski Safari 2 APK begins with an avalanche and soon you find yourself on a snowboard on which you will be able to hop and perform backflips. Cool? Yes and there is more. Ski Safari 2 apk comes not just with snow but also other environments. Yes, you now can ski around in a prehistoric era with dinosaurs accompanying you. Now THAT is cool! The game starts easy and gets progressively harder as you ski through the levels A lot of fun is what this game is about. Download Ski Safari 2 APK and Check it out!
3) Angry Birds Seasons APK
Does not matter what season it is, Angry birds will always be in style. Except, this time they arrive in this winter season to entertain you and let your anger melt away. 25 levels of awesomeness as you can play this classic game in a complete winter mode. Angry Birds apk is THE game for all ages. Your gadget is incomplete without an Angry Bird game. Download Angry Birds apk NOW!
4) Santa Rockstar APK
Not happy with Santa just delivering goodies? How about making him a rock star? This is the Guitar Hero version and it does what the name says. You can make Santa groove to a whole lot of Christmas based songs. Furthermore users can also customize the guitars and choose their own play styles. Fun app to have on your gadgets. We highly recommend you to download Santa Rockstar APK, you will really love this game.
5) Tappy Run Xmas APK
Tappy Run Xmas APK is a running based game similar to Temple Run and hundred other running based games but hey its Christmas and here is the Xmas version that you should try! The graphics of Tappy Run Xmas apk are cute and the gameplay is simple. Perfect for all ages.
Final Word
Spread a lot of cheers and play with and against your kids as you try to reach high scores this season. Enjoy!
Apps to make android mobiles looks like windows mobile
There are many apps in android which make android mobiles looks like windows mobiles.If you are bored of android OS you can try these apps to get the feel of windows mobiles.The apps i have mentioned are free of cost and you can download directly from the play store with the link provided.With these apps you get the look of windows 8.0 in your android mobile and it got every features which are provided in windows phones.
Launcher 8 Free - Download

Launcher 8 free is a great app for windows 8 UI and its a false Wp8.With this app you get the exact look of windows phone.you can change the tile size ,change the theme and can also set the background.Download this app from the link provided above .
Windows 8 Lock Screen - Download

With WIndows 8 lock screen you can get the exact look of lock screen as available in windows phones.You can also change the lock screen wallpaper and set date and time.
Launcher 8 Free - Download

Launcher 8 free is a great app for windows 8 UI and its a false Wp8.With this app you get the exact look of windows phone.you can change the tile size ,change the theme and can also set the background.Download this app from the link provided above .
Windows 8 Lock Screen - Download

With WIndows 8 lock screen you can get the exact look of lock screen as available in windows phones.You can also change the lock screen wallpaper and set date and time.
Get Download Any do To do List Task List Premium v3 4 9 1 APK Files
ads free apk, android games, android market download, Any.do To-do List | Task List Premium download torrent, Any.do To-do List | Task List Premium v3.4.9.1 apk torrent, download Any.do To-do List | Task List Premium apk torrent, download Any.do To-do List | Task List Premium apps apk, download Any.do To-do List | Task List Premium mediafire, download Any.do To-do List | Task List Premium v3.4.9.1 apk mediafire, full apps apk, full modded apps apk, mega mod apk, mod apk torrent, modded apps, unlocked apk
File Available on Download Any.do To-do List | Task List Premium v3.4.9.1 APK
Pokémon Shuffle Mobile APK FREE Download Android Apps APK Download
Pokémon Shuffle Mobile APK FREE Download - Android Apps APK Download: Pokémon Shuffle Mobile APK for Android Free Download latest version of Pokémon Shuffle Mobile APP..
Read More..
Dumb Ways to Die 2 APK FREE Download Android Apps APK Download
Dumb Ways to Die 2 APK FREE Download - Android Apps APK Download: Dumb Ways to Die 2 APK for Android Free Download latest version of Dumb Ways..
Read More..
Generate Income with Cheap Reseller Hosting Business in Pakistan
Generate income online with cheap reseller hosting business in Pakistan with the comfort of your home. You can providecheap webhosting in Pakistanwith the help ofResellerClub.comwebsite which is providing web hosting at very affordable rates. You will find manycheap hosting provider in pakistan but notreseller hosting pakistan. Many people comprise the quality of service when it comes tocheapest web hosting in pakistan. But with this site you dont need to go for poorservice as you will not only get premium service but excellent customer support at an affordable price.What is Web HostingYou need two things in order to run any site Domain and Hosting. Domain is the actual name of your site and hosting where you place all your files online. Domain name can be purchased from $10 to $15 per year where as hosting packages vary depending on the disk size and bandwidth.What is Reseller ClubReseller Club is a king in reseller web hosting business and if you have only $8 in your pocket than you can start your business today. It means that if you have only rupees 1000 in your pocket than no body can start you from your bright future.How to Join the SiteVisit the site from the office link mention below and click on Resell Now button.Join NowAfter that they will ask you to Signup with your personal information. Please provide your real working information as they can any time ask for verification. After that pay your money with PayPal or Payoneer Mastercard or any Visa debit card and confirm your account.





Read More..





How to do Social media marketing with facebook ads in urdu
In facebook marketing Facebook ads playing a Big rule. If you wantto do Best marketing Then you can take Advantages From this. Recently i shared my advertisement on facebook just in 1$ an i Got very better Result. Facebook ads IS not Just Useful for Sharing Posts But You Can also Promote Your Page & website. If You want to participate in this You need tocreate a Facebook page. You can easily Promote your page & website links with this great service. I think facebook launched this Ads System Specially for those peoples who have Just a small amount of money. Its very different from other advertisement networks.How much money needed For facebook ads?its depend on you how much youwant to spent on facebook ads.if you want to Run your advertisement for 7 days then you can pay 7$ But If you want toRun it for one day then you an Spend just 1$. So maximum 1 dollar is required. Facebook will not charge this amount immediately But will give you a Special time to Pay your bill.You can Pay Your Bill via Paypal or Payoneer. Since Paypal is not available in Pakistan & some other countries So you canUse Payoneer master cardfor This Purpose.Benefits Of Facebook adsIf you want toEarn money from facebookThen its not a bad way.you can use it for Getting more money via social media. In this piece of article we will take a lookon facebook ads benefits.1.Its will give you good result in cheap rates2.Its a good source for getting More likes3.If you have a blog or website then this is a Big source for getting targeted traffic to your blog & website4.You can get Targeted likes easily5.Not a Big money required butVery small amount6.Its a Good Source for small business to share with world7.A good way to get more views on your Videosif you want to start a campaign on facebook then you need to use some techniques which not possible For Me to share in This article . so i created Facebook ads complete video training in urdu & hindi.You can start Learning from Below videos.#1: Facebook ads Video tutorial#2: Facebook ads video tutorialIf You Can Run Your advertisement Systematically Then its a Long term beneficial thing for you. For Effective resultsUsekeywords Planner toolsfor It. Because In facebook ads WE also need it in some Time.
Read More..
C code to implement Link list with all operations
This program will show how to:
1. Append element at the end of link list
2. Concatenate two link lists
3. Free all nodes in a link list
4. Reverse a link list
5. Delete last element of link list
6. Delete nth element of link list
7. Combine two ordered link list into single ordered link list
8. Find union of two link lists
9. Find intersection of two link lists
10. Insert after nth element in a link list
11. Delete every second element of a link list
12. Place elements in order in a link list
13. Calculate sum of data of a link list
14. calculate number of elements in a link list
15. Make second copy of a link list
16. Move node forward to nth positions in a link list
#include <stdio.h>
#include <conio.h>
typedef struct node{
int info;
struct node *link;
}NODE;
NODE* create(NODE *start)//for creating a list
{
NODE *temp,*t;
int n,i;
printf("Enter no of nodes you want to insert:");
scanf("%d",&n);
for(i=0;i<n;i++)
{
temp=(NODE*) malloc(sizeof(NODE));
printf("Enter data for node %d:",i+1);
scanf("%d",&temp->info);
temp->link=NULL;
if(start==NULL)
start=temp;
else
{
t=start;
while(t->link!=NULL)
t=t->link;
t->link=temp;
}
}
return start;
}
void disp(NODE *start)//for printing a list
{
NODE *t;
printf("
Elements of the list:");
for(t=start;t!=NULL;t=t->link)
{
if(t->link!=NULL)
printf("%d->",t->info);
else
printf("%d",t->info);
}
printf("
");
}
NODE* append(NODE *start)//append element at end
{
NODE *t,*temp;
temp=(NODE*) malloc(sizeof(NODE));
printf("Enter data to be appended:");
scanf("%d",&temp->info);
for(t=start;t->link!=NULL;t=t->link);
t->link=temp;
temp->link=NULL;
return start;
}
NODE* concat(NODE *s1,NODE *s2)//concatenate 2 lists
{
NODE *t;
t=s1;
while(t->link!=NULL)
t=t->link;
t->link=s2;
return s1;
}
NODE* fr(NODE *start)//free all nodes in a list
{
NODE *t;
t=start;
while(t!=NULL)
{
t=start;
start=t->link;
free(t);
}
return start;
}
NODE* rev(NODE *start)//to reverse a list
{
NODE *t1,*t2,*s;
for(t1=start;t1->link!=NULL;t1=t1->link);
s=t1;
while(t1!=start)
{
for(t2=start;t2->link!=t1;t2=t2->link);
t1->link=t2;
t1=t2;
}
t1->link=NULL;
return s;
}
NODE* dellast(NODE *start)//delete last element
{
NODE *t,*t2;
for(t=start;t->link->link!=NULL;t=t->link);
t2=t->link;
free(t2);
t->link=NULL;
return start;
}
NODE* deln(NODE *start)//delete nth element
{
int i=1,n;
NODE *t,*t2;
printf("
Enter pos no of element to be deleted:");
scanf("%d",&n);
t=start;
if(n!=1)
{
while(i<n-1)
{
t=t->link;
i++;
}
t2=t->link;
t->link=t2->link;
free(t2);
}
else
{
start=t->link;
free(t);
}
return start;
}
NODE* sort(NODE*);
//to combine 2 ordered lists into a single ordered list
NODE* comb(NODE *s1,NODE *s2)
{
s1=concat(s1,s2);
s1=sort(s1);
return s1;
}
NODE* uni(NODE *s1,NODE *s2)//to find the union of 2 lists
{
NODE *s3,*t,*t2,*t3,*temp;
int flag=1;
s3=(NODE*) malloc(sizeof(NODE));
s3=NULL;
t=s1;
while(t!=NULL)
{
temp=(NODE*) malloc(sizeof(NODE));
temp->info=t->info;
temp->link=NULL;
if(s3==NULL)
s3=temp;
else
{
t2=s3;
while(t2->link!=NULL)
t2=t2->link;
t2->link=temp;
}
t=t->link;
}
t2=s2;
while(t2!=NULL)
{
t=s1;
flag=1;
while(t!=NULL)
{
if(t->info==t2->info)
{
flag=0;
break;
}
t=t->link;
}
if(flag==1)
{
for(t3=s3;t3->link!=NULL;t3=t3->link);
temp=(NODE*) malloc(sizeof(NODE));
temp->info=t2->info;
t3->link=temp;
temp->link=NULL;
}
t2=t2->link;
}
return s3;
}
NODE* inter(NODE *s1,NODE *s2)//to find the intersection of 2 lists
{
NODE *s3,*t1,*t2,*t3,*temp;
s3=(NODE*) malloc(sizeof(NODE));
s3=NULL;
t1=s1;
while(t1!=NULL)
{
t2=s2;
while(t2!=NULL)
{
if(t1->info==t2->info)
{
temp=(NODE*) malloc(sizeof(NODE));
temp->info=t1->info;
temp->link=NULL;
if(s3==NULL)
s3=temp;
else
{
for(t3=s3;t3->link!=NULL;t3=t3->link);
t3->link=temp;
}
break;
}
t2=t2->link;
}
t1=t1->link;
}
return s3;
}
NODE* insertn(NODE *s)//to insert at nth position
{
NODE *t,*t2,*temp;
int n,i=1;
printf("Enter data:");
temp=(NODE*) malloc(sizeof(NODE));
scanf("%d",&temp->info);
printf("Enter position no at which element has to be inserted:");
scanf("%d",&n);
t=s;
if(n!=1)
{
while(i<n-1)
{
t=t->link;
i++;
}
t2=t->link;
t->link=temp;
temp->link=t2;
}
else
{
temp->link=s;
s=temp;
}
return s;
}
NODE* del2(NODE *s)//delete every 2nd element in a list
{
NODE *t1,*t2;
t1=s;
while(t1!=NULL)
{
t2=t1->link;
t1->link=t2->link;
free(t2);
t1=t1->link;
}
return s;
}
NODE* sort(NODE *s)//to place elements in increasing order
{
NODE *t1,*t2;
int temp;
for(t1=s;t1->link!=NULL;t1=t1->link)
{
for(t2=t1->link;t2!=NULL;t2=t2->link)
{
if(t1->info>t2->info)
{
temp=t1->info;
t1->info=t2->info;
t2->info=temp;
}
}
}
return s;
}
int sum(NODE *s)//to find the sum of elements in a list
{
int sum=0;
NODE *t;
for(t=s;t!=NULL;t=t->link)
sum+=t->info;
return sum;
}
int elements(NODE *s)//to find the number of elements in a list
{
int n=0;
NODE *t;
for(t=s;t!=NULL;t=t->link)
n++;
return n;
}
NODE* copy(NODE *s1)//to make a second copy of the list
{
NODE *s2,*t,*temp,*t2;
s2=NULL;
t=s1;
while(t!=NULL)
{
temp=(NODE*) malloc(sizeof(NODE));
temp->info=t->info;
temp->link=NULL;
if(s2==NULL)
s2=temp;
else
{
t2=s2;
while(t2->link!=NULL)
t2=t2->link;
t2->link=temp;
}
t=t->link;
}
return s2;
}
NODE* forward(NODE *s)//to forward a node by n positions
{
NODE *t1,*t2,*t3;
int n1,n2,i;
printf("Enter position of the node you want to move:");
scanf("%d",&n1);
printf("Enter no of positions you want to move:");
scanf("%d",&n2);
t1=s;
i=1;
while(i<n1)
{
t1=t1->link;
i++;
}
t2=s;
i=1;
while(i<n1+n2)
{
t2=t2->link;
i++;
}
t3=s;
if(t1!=s)
while(t3->link!=t1)
t3=t3->link;
t3->link=t1->link;
if(t1==s)
s=s->link;
t1->link=t2->link;
t2->link=t1;
return s;
}
void main()
{
NODE *s1,*s2;
int ch;
s1=NULL;
s2=NULL;
while(1)
{
clrscr();
printf("Enter choice:
");
printf(" 1.Append element at end
2.Concatinate two lists
");
printf(" 3.Free all nodes in a list
4.Reverse a list
");
printf(" 5.Delete last element
6.Delete nth element
");
printf(" 7.Combine two ordered list into single ordered list
");
printf(" 8.Find union of two lists
9.Find intersection of two lists
");
printf("10.Insert after nth element
11.Delete every second element
");
printf("12.Place elements in order
13.Return sum of data
");
printf("14.Return number of elements
15.Make second copy of list
");
printf("16.Move node forward to n positions
17.Exit
");
scanf("%d",&ch);
clrscr();
if(ch>0&&ch<=16)
s1=create(s1);
disp(s1);
switch(ch)
{
case 1:s1=append(s1);break;
case 2:s2=create(s2);disp(s2);s1=concat(s1,s2);break;
case 3:s1=fr(s1);
printf("List freed
");
disp(s1);
break;
case 4:s1=rev(s1);break;
case 5:s1=dellast(s1);break;
case 6:s1=deln(s1);break;
case 7:s2=create(s2);disp(s2);s1=comb(s1,s2);break;
case 8:s2=create(s2);disp(s2);s1=uni(s1,s2);break;
case 9:s2=create(s2);disp(s2);s1=inter(s1,s2);break;
case 10:s1=insertn(s1);break;
case 11:s1=del2(s1);break;
case 12:s1=sort(s1);break;
case 13:printf("Sum of elements=%d",sum(s1));break;
case 14:printf("Number of elements=%d",elements(s1));break;
case 15:
s2=copy(s1);
printf("Second list:
");
disp(s2);
break;
case 16:s1=forward(s1);break;
case 17:exit(0);break;
default:printf("Wrong choice.Enter again");break;
}
if(ch!=3&&ch!=13&&ch!=14&&ch!=15&&ch>0&&ch<=16)
{
printf("
Result:");
disp(s1);
}
s1=fr(s1);
s2=fr(s2);
getch();
}
}
1. Append element at the end of link list
2. Concatenate two link lists
3. Free all nodes in a link list
4. Reverse a link list
5. Delete last element of link list
6. Delete nth element of link list
7. Combine two ordered link list into single ordered link list
8. Find union of two link lists
9. Find intersection of two link lists
10. Insert after nth element in a link list
11. Delete every second element of a link list
12. Place elements in order in a link list
13. Calculate sum of data of a link list
14. calculate number of elements in a link list
15. Make second copy of a link list
16. Move node forward to nth positions in a link list
#include <stdio.h>
#include <conio.h>
typedef struct node{
int info;
struct node *link;
}NODE;
NODE* create(NODE *start)//for creating a list
{
NODE *temp,*t;
int n,i;
printf("Enter no of nodes you want to insert:");
scanf("%d",&n);
for(i=0;i<n;i++)
{
temp=(NODE*) malloc(sizeof(NODE));
printf("Enter data for node %d:",i+1);
scanf("%d",&temp->info);
temp->link=NULL;
if(start==NULL)
start=temp;
else
{
t=start;
while(t->link!=NULL)
t=t->link;
t->link=temp;
}
}
return start;
}
void disp(NODE *start)//for printing a list
{
NODE *t;
printf("
Elements of the list:");
for(t=start;t!=NULL;t=t->link)
{
if(t->link!=NULL)
printf("%d->",t->info);
else
printf("%d",t->info);
}
printf("
");
}
NODE* append(NODE *start)//append element at end
{
NODE *t,*temp;
temp=(NODE*) malloc(sizeof(NODE));
printf("Enter data to be appended:");
scanf("%d",&temp->info);
for(t=start;t->link!=NULL;t=t->link);
t->link=temp;
temp->link=NULL;
return start;
}
NODE* concat(NODE *s1,NODE *s2)//concatenate 2 lists
{
NODE *t;
t=s1;
while(t->link!=NULL)
t=t->link;
t->link=s2;
return s1;
}
NODE* fr(NODE *start)//free all nodes in a list
{
NODE *t;
t=start;
while(t!=NULL)
{
t=start;
start=t->link;
free(t);
}
return start;
}
NODE* rev(NODE *start)//to reverse a list
{
NODE *t1,*t2,*s;
for(t1=start;t1->link!=NULL;t1=t1->link);
s=t1;
while(t1!=start)
{
for(t2=start;t2->link!=t1;t2=t2->link);
t1->link=t2;
t1=t2;
}
t1->link=NULL;
return s;
}
NODE* dellast(NODE *start)//delete last element
{
NODE *t,*t2;
for(t=start;t->link->link!=NULL;t=t->link);
t2=t->link;
free(t2);
t->link=NULL;
return start;
}
NODE* deln(NODE *start)//delete nth element
{
int i=1,n;
NODE *t,*t2;
printf("
Enter pos no of element to be deleted:");
scanf("%d",&n);
t=start;
if(n!=1)
{
while(i<n-1)
{
t=t->link;
i++;
}
t2=t->link;
t->link=t2->link;
free(t2);
}
else
{
start=t->link;
free(t);
}
return start;
}
NODE* sort(NODE*);
//to combine 2 ordered lists into a single ordered list
NODE* comb(NODE *s1,NODE *s2)
{
s1=concat(s1,s2);
s1=sort(s1);
return s1;
}
NODE* uni(NODE *s1,NODE *s2)//to find the union of 2 lists
{
NODE *s3,*t,*t2,*t3,*temp;
int flag=1;
s3=(NODE*) malloc(sizeof(NODE));
s3=NULL;
t=s1;
while(t!=NULL)
{
temp=(NODE*) malloc(sizeof(NODE));
temp->info=t->info;
temp->link=NULL;
if(s3==NULL)
s3=temp;
else
{
t2=s3;
while(t2->link!=NULL)
t2=t2->link;
t2->link=temp;
}
t=t->link;
}
t2=s2;
while(t2!=NULL)
{
t=s1;
flag=1;
while(t!=NULL)
{
if(t->info==t2->info)
{
flag=0;
break;
}
t=t->link;
}
if(flag==1)
{
for(t3=s3;t3->link!=NULL;t3=t3->link);
temp=(NODE*) malloc(sizeof(NODE));
temp->info=t2->info;
t3->link=temp;
temp->link=NULL;
}
t2=t2->link;
}
return s3;
}
NODE* inter(NODE *s1,NODE *s2)//to find the intersection of 2 lists
{
NODE *s3,*t1,*t2,*t3,*temp;
s3=(NODE*) malloc(sizeof(NODE));
s3=NULL;
t1=s1;
while(t1!=NULL)
{
t2=s2;
while(t2!=NULL)
{
if(t1->info==t2->info)
{
temp=(NODE*) malloc(sizeof(NODE));
temp->info=t1->info;
temp->link=NULL;
if(s3==NULL)
s3=temp;
else
{
for(t3=s3;t3->link!=NULL;t3=t3->link);
t3->link=temp;
}
break;
}
t2=t2->link;
}
t1=t1->link;
}
return s3;
}
NODE* insertn(NODE *s)//to insert at nth position
{
NODE *t,*t2,*temp;
int n,i=1;
printf("Enter data:");
temp=(NODE*) malloc(sizeof(NODE));
scanf("%d",&temp->info);
printf("Enter position no at which element has to be inserted:");
scanf("%d",&n);
t=s;
if(n!=1)
{
while(i<n-1)
{
t=t->link;
i++;
}
t2=t->link;
t->link=temp;
temp->link=t2;
}
else
{
temp->link=s;
s=temp;
}
return s;
}
NODE* del2(NODE *s)//delete every 2nd element in a list
{
NODE *t1,*t2;
t1=s;
while(t1!=NULL)
{
t2=t1->link;
t1->link=t2->link;
free(t2);
t1=t1->link;
}
return s;
}
NODE* sort(NODE *s)//to place elements in increasing order
{
NODE *t1,*t2;
int temp;
for(t1=s;t1->link!=NULL;t1=t1->link)
{
for(t2=t1->link;t2!=NULL;t2=t2->link)
{
if(t1->info>t2->info)
{
temp=t1->info;
t1->info=t2->info;
t2->info=temp;
}
}
}
return s;
}
int sum(NODE *s)//to find the sum of elements in a list
{
int sum=0;
NODE *t;
for(t=s;t!=NULL;t=t->link)
sum+=t->info;
return sum;
}
int elements(NODE *s)//to find the number of elements in a list
{
int n=0;
NODE *t;
for(t=s;t!=NULL;t=t->link)
n++;
return n;
}
NODE* copy(NODE *s1)//to make a second copy of the list
{
NODE *s2,*t,*temp,*t2;
s2=NULL;
t=s1;
while(t!=NULL)
{
temp=(NODE*) malloc(sizeof(NODE));
temp->info=t->info;
temp->link=NULL;
if(s2==NULL)
s2=temp;
else
{
t2=s2;
while(t2->link!=NULL)
t2=t2->link;
t2->link=temp;
}
t=t->link;
}
return s2;
}
NODE* forward(NODE *s)//to forward a node by n positions
{
NODE *t1,*t2,*t3;
int n1,n2,i;
printf("Enter position of the node you want to move:");
scanf("%d",&n1);
printf("Enter no of positions you want to move:");
scanf("%d",&n2);
t1=s;
i=1;
while(i<n1)
{
t1=t1->link;
i++;
}
t2=s;
i=1;
while(i<n1+n2)
{
t2=t2->link;
i++;
}
t3=s;
if(t1!=s)
while(t3->link!=t1)
t3=t3->link;
t3->link=t1->link;
if(t1==s)
s=s->link;
t1->link=t2->link;
t2->link=t1;
return s;
}
void main()
{
NODE *s1,*s2;
int ch;
s1=NULL;
s2=NULL;
while(1)
{
clrscr();
printf("Enter choice:
");
printf(" 1.Append element at end
2.Concatinate two lists
");
printf(" 3.Free all nodes in a list
4.Reverse a list
");
printf(" 5.Delete last element
6.Delete nth element
");
printf(" 7.Combine two ordered list into single ordered list
");
printf(" 8.Find union of two lists
9.Find intersection of two lists
");
printf("10.Insert after nth element
11.Delete every second element
");
printf("12.Place elements in order
13.Return sum of data
");
printf("14.Return number of elements
15.Make second copy of list
");
printf("16.Move node forward to n positions
17.Exit
");
scanf("%d",&ch);
clrscr();
if(ch>0&&ch<=16)
s1=create(s1);
disp(s1);
switch(ch)
{
case 1:s1=append(s1);break;
case 2:s2=create(s2);disp(s2);s1=concat(s1,s2);break;
case 3:s1=fr(s1);
printf("List freed
");
disp(s1);
break;
case 4:s1=rev(s1);break;
case 5:s1=dellast(s1);break;
case 6:s1=deln(s1);break;
case 7:s2=create(s2);disp(s2);s1=comb(s1,s2);break;
case 8:s2=create(s2);disp(s2);s1=uni(s1,s2);break;
case 9:s2=create(s2);disp(s2);s1=inter(s1,s2);break;
case 10:s1=insertn(s1);break;
case 11:s1=del2(s1);break;
case 12:s1=sort(s1);break;
case 13:printf("Sum of elements=%d",sum(s1));break;
case 14:printf("Number of elements=%d",elements(s1));break;
case 15:
s2=copy(s1);
printf("Second list:
");
disp(s2);
break;
case 16:s1=forward(s1);break;
case 17:exit(0);break;
default:printf("Wrong choice.Enter again");break;
}
if(ch!=3&&ch!=13&&ch!=14&&ch!=15&&ch>0&&ch<=16)
{
printf("
Result:");
disp(s1);
}
s1=fr(s1);
s2=fr(s2);
getch();
}
}
0
comments
Posted by
inthe
How To Send SMS Message In Android
Android layout file to textboxes (phone no, sms message) and button to send the SMS message.
File : res/layout/main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/textViewPhoneNo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Enter Phone Number : "
android:textAppearance="?android:attr/textAppearanceLarge" />
<EditText
android:id="@+id/editTextPhoneNo"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:phoneNumber="true" >
</EditText>
<TextView
android:id="@+id/textViewSMS"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Enter SMS Message : "
android:textAppearance="?android:attr/textAppearanceLarge" />
<EditText
android:id="@+id/editTextSMS"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine"
android:lines="5"
android:gravity="top" />
<Button
android:id="@+id/buttonSend"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Send" />
</LinearLayout>
File : SendSMSActivity.java – Activity to send SMS via
SmsManager.package com.mkyong.android;
import android.app.Activity;
import android.os.Bundle;
import android.telephony.SmsManager;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class SendSMSActivity extends Activity {
Button buttonSend;
EditText textPhoneNo;
EditText textSMS;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
buttonSend = (Button) findViewById(R.id.buttonSend);
textPhoneNo = (EditText) findViewById(R.id.editTextPhoneNo);
textSMS = (EditText) findViewById(R.id.editTextSMS);
buttonSend.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
String phoneNo = textPhoneNo.getText().toString();
String sms = textSMS.getText().toString();
try {
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(phoneNo, null, sms, null, null);
Toast.makeText(getApplicationContext(), "SMS Sent!",
Toast.LENGTH_LONG).show();
} catch (Exception e) {
Toast.makeText(getApplicationContext(),
"SMS faild, please try again later!",
Toast.LENGTH_LONG).show();
e.printStackTrace();
}
}
});
}
}
File : AndroidManifest.xml , need SEND_SMS permission.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mkyong.android"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="10" />
<uses-permission android:name="android.permission.SEND_SMS" />
<application
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".SendSMSActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
See demo :
Subscribe to:
Posts (Atom)