Nov
28
2008
28
2008
C++ Program for Linear search
C++ Program for Linear search
/************************************************************** Author: Arun Vishnu M V Web: www.arunmvishnu.com Description: C++ Program for Linear search. ***************************************************************/ #include; #include ; void main() { int array[100],n,found=0,i,find; clrscr(); cout<<"How many numbers--> "; cin>>n; cout<<"Enter "< >array[i]; cout<<"Enter a number to find--> "; cin>>find; for(i=0;i < n;i++) { if(array[i]==find) { found=1; cout<<"\n" << find << " found at position: " << (i+1); } } if(found==0) cout<<"\nSorry! " << find << " does not found."; getch(); } //---------------------- END--------------------
Related Posts
Latest Posts
- Samsung Galaxy S3 Price Revealed
- Introducing Google Drive
- Google Account Activity gives you a monthly summary of your account activity across many Google products
- Apple released iOS 5.1
- You won’t be actually able to take 41MP photos using Nokia 808 PureView
- Apple Releases Mac OS X Mountain Lion 10.8 Developer Preview
- A walk down memory lane
- What is the real meaning of Facebook “Like”?
- Wish you and your family a very Happy and Prosperous New Year 2012!
- Import Orkut’s albums to Google+
Tags
android
apple
c and cpp
Cheats
download
downloads
Entertainment
Film
friendship
Fun
gadgets
Games
gmail
google
greetings
india
Internet
ipad
iphone
java script
linux
love
mac
microsoft
mobile
News
office
Personal
photos
Programming
review
Security
software
source code
technology
Tips & Tricks
video
videos
virus
web
web development
windows
windows 7
worm
yahoo
Recent Comments
- Vikesh Kumar on C++ Program for QUICK SORT
- pratikchavan on C++ Program for QUICK SORT
- suraj on C++ Program Program for Binary Search.
- saravanan on Enabling REGEDIT and Task Manager
- VP on I Got My GirlFriend

An article by
requested
i want these program plz sed me
explain please…
pyare arun ji
mujhe aap se ek baat kehni hai
.
.
.
.
.
..
.
.
.
.
..
.
.
.
.
.
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
.
..
.
.
.
.
.
.
.
.
.
.
.
.
aapke program mein 8 error ate hai . yeh btao braces shuru ek bar krke 3 bar aap khatm kaise kr skte ho
)))))
@Rishu
.. The program is correct, but the formating plugin i uses in this site is removing few portions of the program in specific patter. I have updated the pattern