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
- Your Facebook account hacked? Here’s how to fix it
- Indian Railway Enabled VRM System to travel without the printout of e-ticket
- Amazon Launches $199 Kindle Fire Android Tablet
- Download Windows 8
- How to change APN settings in iPhone iOS Beta 7
- Steve Jobs Resigns as CEO of Apple
- How to open camera app when the iPhone is locked?
- Firefox 5 released
- Download Firefox 4
- How to run Turbo C IDE on Windows 7
Tags
apple
c and cpp
Cheats
download
downloads
Entertainment
error
Film
friendship
Fun
gadgets
Games
gmail
google
greetings
india
Internet
iphone
java script
linux
love
mac
microsoft
mobile
News
office
onam
Personal
photos
Programming
review
Security
software
source code
technology
Tips & Tricks
video
videos
virus
web
web development
windows
windows 7
worm
yahoo

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