@pavlakissss Of course! Just declare your array as double myArray[]; This is possible for all variable types, like float myArray[] or char myArray[] (usually used for making strings).
@CjD115 Actually, it's better to use cin.get() (as @louisrocks40 mentioned it), because system("pause") makes a call to the operating system (expensive), is incompatible with some operating systems and generally it is "dirtier" than cin.get()
How come the using namespace function at the starting of the video is displayed with in the main function when it asks you to list it in the beginning of the program. This is wrong. And I don't think this is another compiler.
main () is for storing commands in basic coupling coaxilation. Arrays can be either in variable int functions or square brackets for elements in data design and text based c++ alphafunctions.
Yes, you could use arrays for this...but if you're looking to make variables that will remain contant and that can be changed just by editing the code, then I would suggest using a constants library. (type const int AGE1 = 21, AGE2 = 19, AGE3 = 9;)
I use arrays for databasing other people (cin) information. I use arrays and vectors actually haha..
@Flyphe This is meant for the functionality of the script, not about the layout. This is for people who learn c++, not for people who criticise others. Share your knowledge with people if you know it better than him. But I doubt and I am normally very optimistic about persons but not this time. People who behave in such a sad manner has to be kicked from YouTube in my opinion. Just to tell you. =) Love you too
@Flyphe using namespace std is meant to be placed after the libraries ONLY if he wants to use it throughout the entire program. All he's doing is using the namespace within the main block. In this case, there's no real difference between the two. Therefore, he could place it where he has it now, or he could place it after the include library statements.
Quick tip...the reason why "ages [2]," worked is because C++ does not read white-space..(blanks). That means you can have coding that looks like this..(but isn't recommended). VVVV int x; x = 9 cout << ages[0] endl; I'm pretty sure that has errors. I just hope you get the point.
@KAPOWH4XZ arrays come in handy when dealing with large set amounts of data...its easier to make one array with 50 slots as opposed to having to hard code 50 individual variables by hand one at a time...it means alot less lines the program will have to progress through and that means a faster runtime...though if your dealing with random variables like in these tutorials it's cool to keep them seperate.
Hi, I've watched all the videos, and I have to say I love them.
I want to create a function that would create x amount of arrays where I say what x is. How can I create a loop that doesn't just put values in an array, but would actually make the array? Thought this would be the most appropiate video to post the question under.
hey man,thanku very much,i'm from pakistan and u really helped me out,.......i hv given ur lecture to my friends nd they all understood the arrays...........thanks agian....
Excellent tutorial, I bought SAMS Teach Yourself C++ and having been sitting here for two days trying to figure out what the hell arrays are. After watching your tutorial I know fully understand the coding and what it all does and I have a much better grasp on what I would use an array for. Thank you very much for taking the time to make this tutorial and I will definitely be watching the others as well!
you need an array of pointers, each element in the pointer array should point to a character array. you're probably better off using another data structure though (linked list)
@mp4rk0ur yup mp4rk0ur your way is very much easier... but i think bucky did it his way so he can explain the computer programming way of counting. human way is 1, 2, 3... computer way is 0, 1, 2...
@superbarnie Unless you can write a Mac OS, why do you think you are so far above it?I prefer Windows by far, but the Mac operating system is an extremely advanced OS.
are u saying that my brains are fags ? if u r then ur terribly mistaken . if u r not then i would like to tell u that no one can understand whatever u r saying.
@superbarnie I think we have a misunderstandment by a lot of people here, who obviously hasn't ever used a Mac before. C++ Programming is very possible on a Mac. Apple do advertise the use of alternative versions, called Carbon-C++ or Cocoa. But if you download the SDK from Apple, Xcode, you can also choose to program in regular C++. So actually Macs are for people who intend to program as well :)
@mariomodguy I know. They crash less often, they make less noise, they are a bit faster, but every designer makes their stuff for pcs because everyone loves pcs. Everyone loves pcs because it has all the better program stuff unlike macs. The designers make more programs for pcs and less for macs because everyone loves pcs. And so on and so on. I would love to have a mac, but no one makes anything good for the mac. Bloodshed is a pc-only thing, and so is a lot of other stuff. :(
@chester10999 Xcode is completely free (if you sign up for their free developer thing) and does C/C++. Uses almost the same exact code as what he shows on the screen.
whoah. this is the quickes anyone has ever explained arrays. and through this tutorial i actually understood how they work, and why the actually exist!!!!!!!!!!!!!!!!!!!!!!!!!!!!
system("PAUSE") is annoying, my firewall asks if I want to give permission to my program to execute cmd.exe (thank you Comodo) I have found though that using cin.get(); isbetter and apprantely uses less memory. I don't know how big of a difference this will make but over the next few years through College I will find out if it makes massive changes or not. Good videos all round though!!
thenewboston - do you know that you can click Ctrl + S to save automatically and then you can press F9 to compile without taking a long time to do all of that . . . and by the way i am a bigener can you tell me why would i use Arrays in my future cuz i still dont get it man . . . please help me
I often thought that myself but as i have started game programming it has become very usefull as when creating zombies i don't want to make 50 one by one so i make a array "zombie" which could hold the health stats and looks. and I am sure they could be used in many other ways too :-)
I often thought that myself but as i have started game programming it has become very usefull as when creating zombies i don't want to make 50 one by one so i make a array "zombie" which could hold the health stats and looks. and I am sure they could be used in many other ways too :-)
dude please help me build this program that lets the user input 5 grades on it and the program will tell which grade is the highest. my professor said i need to use arrays. that's just what we are into now so just make a simple program that does the job. i promise, i'll subscribe to anyone that can help me.
hey i'm trying to write a program having a single dimesional array with 5 elements= { 12, 54, 65, 40, 40 } , the program should ask the user to enter one of the above elements and the output should be like this:
Enter the integer to search: 54
Position 1: 54
the aim is to output the index of the number being searched.
you knwo how for array 1,2, and 3 you named then 0,1 and 2? could you change them from numerals to a word so could 0 be me then 1 be him and 2 be her? just as an example you know?
Do arrays have to be integers or can they also like doubles???
BartMan5impson 1 week ago
system("pause>null"); makes the Press Any Key to continue thing go away.
16yearoldwhiteboy 1 week ago
can we use double instead of int in arrays?
pavlakissss 1 week ago
@pavlakissss Of course! Just declare your array as double myArray[]; This is possible for all variable types, like float myArray[] or char myArray[] (usually used for making strings).
MrAlditho 1 week ago
when i try to run it i get an error at the: system("pause"); and it's exactly how you set it up. i rewrote the whole thing...
CjD115 1 month ago
@CjD115 use cin.get
louisrocks40 2 weeks ago
@CjD115 Actually, it's better to use cin.get() (as @louisrocks40 mentioned it), because system("pause") makes a call to the operating system (expensive), is incompatible with some operating systems and generally it is "dirtier" than cin.get()
MrAlditho 1 week ago
I use arrays in dark basic pro, im so glade I watched thease videos, Im startibg to see c++ is alot like dark basic so im learning fast.
mystic81006 2 months ago
Okay, you have a lot of trolls, but damn this video was useful.
trueredexe 3 months ago
How come the using namespace function at the starting of the video is displayed with in the main function when it asks you to list it in the beginning of the program. This is wrong. And I don't think this is another compiler.
independentapples 3 months ago
Your sisters nine? What an an accident! (no offence)
runescapedaydreamer 3 months ago
lol @ 3:17 "in this variable, right heow!"
garrettchap1 4 months ago
@garrettchap1 More like 03:13 :D
Phunfo 4 months ago
OK. IS IT JUST ME OR IS THIS SO FAR, SEEMINGLY WAAAAY EASIER THAN JAVA??
NehiThompson 4 months ago in playlist C++ 4
You can actually put using namespace STD; outside the int main() and this means you only have to use it once
DazKins 5 months ago
@DazKins haha true everytime I see his vdeos. It really bothers me. such a bad habbit of his.
liuqibat 5 months ago
@DazKins he has really sloppy code in some places. Not sure if I should even follow his turorials
Thevideoclown 4 months ago
what is int main() for?
what is using namespace std for?
dydziooo 5 months ago
@dydziooo int main() == int main(void). void is nothing, so it's ok not to write it.
'int' shows the return value type. most of the time, the return value of the main function is 0, which is an integer.
'main' is the name of the function, since it is the main function of the short program, we call it main.
inside (), we can enter the data type we want to bring in. there is nothing we want to bring in here, so leave it blank.
liuqibat 5 months ago
@dydziooo
Don't just jump on in with the 10th video if you don't know anything.Go and watch the first one.
TheOnlyata 5 months ago
@dydziooo
main () is for storing commands in basic coupling coaxilation. Arrays can be either in variable int functions or square brackets for elements in data design and text based c++ alphafunctions.
Thetranslatorguy 4 months ago
Thank you for posting this video. Great tutorial, will subscribe.
thedanphillips 5 months ago
Thank you!
rintintin1219 5 months ago
moooooree!
greenish39 7 months ago
Dude.... U ROCK!
These Videos help BIGTIME!
Thanks for taking the time to make them :)
MRDuran777 7 months ago 21
@tdude63owns
What? lol
Kulopto 7 months ago
i'm watching this because i took 0 points at my informatics exam.maybe 0,25.
loonaloonyluvgood 8 months ago
This has been flagged as spam show
To not show "Press any key to continue..." but still pause it, enter:
system("pause > 0");
and not:
system("pause");
MUTORIALS 8 months ago
Comment removed
MUTORIALS 8 months ago
Comment removed
MUTORIALS 8 months ago
is this like a multy int?
linkinl1 8 months ago
it is better than describe in tutorial;
int ages[3]={12,15,14};
cout<<ages[1];
MsScience1 8 months ago 3
This has been flagged as spam show
#cpphelp on irc.mibbit.net, webclient at mibbit.com
for live help :3
cplusplus0x 9 months ago
i just relized your accent is like jessica simpson
zhir96 9 months ago
It just makes them that much better.
mrlogan1144 11 months ago
This has been flagged as spam show
you guys learn this in college?????????? ,,where i live we have to do it in school,and i am 15
ashish851995 11 months ago
you guys learn this in college?????????? ,,where i live we have to do it in school
ashish851995 11 months ago
Yes, you could use arrays for this...but if you're looking to make variables that will remain contant and that can be changed just by editing the code, then I would suggest using a constants library. (type const int AGE1 = 21, AGE2 = 19, AGE3 = 9;)
I use arrays for databasing other people (cin) information. I use arrays and vectors actually haha..
Werdna3791 11 months ago
c++ is easier and more logical then pascal
mast3rFiLyP 11 months ago
you are terrible at cpp. your layout is all wrong. AND using namespace std; is ment to be after the included librarys.
Flyphe 11 months ago
@Flyphe This is meant for the functionality of the script, not about the layout. This is for people who learn c++, not for people who criticise others. Share your knowledge with people if you know it better than him. But I doubt and I am normally very optimistic about persons but not this time. People who behave in such a sad manner has to be kicked from YouTube in my opinion. Just to tell you. =) Love you too
TheAdsClan 10 months ago
@Flyphe using namespace std is meant to be placed after the libraries ONLY if he wants to use it throughout the entire program. All he's doing is using the namespace within the main block. In this case, there's no real difference between the two. Therefore, he could place it where he has it now, or he could place it after the include library statements.
DrexelDragonO91 9 months ago
OMG I KNOW A GUY WHOS 19 TOO. WHAT ARE THE CHANCES!!!!!!
TrollsArePeople 1 year ago 87
@TrollsArePeople HOLY SHIT PROBALLY 1 TO A MILLIE WO.... WO .... TOTALLY COOL
dylondragon 9 months ago
@TrollsArePeople LMFAO. btw nice grab on that name.
CheeseToastHax 6 months ago
@TrollsArePeople OMG SO DO I!!!!!
basketballdude138 5 months ago
@TrollsArePeople Use C++ to calculate the chances!
Phunfo 4 months ago
@TrollsArePeople Hey cutie, I'm 19 ;)
Peon546 3 months ago
@TrollsArePeople i dont
Thehoboinatux 1 week ago in playlist C++ Programming Tutorials from thenewboston
thanks for taking your knowledge to youtube. you are a blessing. :P
rmmalimet 1 year ago
macs pwn windows.
mrlogan1144 1 year ago
@mrlogan1144 Then explain why mac has bootcamp,
d123s404 11 months ago
Right Heeya , right here.
thekitoper 1 year ago
moah thx 4 this tutorial , its really usefull ! :D
MetallFistGuitar 1 year ago
This has been flagged as spam show
Best C tutorials at programmingforfreshers.blogspot.com
raghuace 1 year ago
its a dictionary for python
didagoal 1 year ago
@didagoal
No, not a dictionary, something like a list.
MUHIREFANFE 1 year ago
This has been flagged as spam show
Hey thanks for the clear explanation.Can you please tell me how to use removeAt function to remove an element from array..
debasish1228 1 year ago
Hey thanks for the clear explanation.Can you please tell me how to use removeAt function to remove an element from array..
debasish1228 1 year ago
is there any function where i can get the Upper Bound of the array? thks! nice tutorial anyway! :)
matrixITALIA 1 year ago
Thanks! This is a great review for my upcoming quiz on arrays today.
YukiaStars2 1 year ago
subscribed!
Gabrielregalado2 1 year ago
Please donate to Buckys christmas present 2010. See the general forum on his website for details, thanks :)
jazzninja77 1 year ago
LOL 1:00 transcribed audio says:
i mean in miami beach is because they were really talking about the future now...
Exbigg 1 year ago
@mmandsa Yes but these tutorials are for people who don't know about headers yet. Once people know more they'll get told by someone to move it.
icekat83 1 year ago
ROFL at 3:15 Eric Cartman Impersonation.
XAutomatedOwnerX 1 year ago
best c++ tuts ever that had existed in the history of life :P
narutorine 1 year ago
thank you so much for these videos. ive learned more here than in my 1 year of university in which i dropped out...
lionhart3001 1 year ago
Comment removed
FusionGTZ 1 year ago
@FusionGTZ Lmfao.
Blackwulf14 1 year ago
thanks for the help man.
Tuts 1-10 done
Will do more tomorrow gotta sleep
:]
IamDuhmb 1 year ago
Oh wow, it didn't include the spacing rofl.
zemaken 1 year ago
zemaken 1 year ago
Why do you have to use an array? not just seperate values?
KAPOWH4XZ 1 year ago
@KAPOWH4XZ arrays come in handy when dealing with large set amounts of data...its easier to make one array with 50 slots as opposed to having to hard code 50 individual variables by hand one at a time...it means alot less lines the program will have to progress through and that means a faster runtime...though if your dealing with random variables like in these tutorials it's cool to keep them seperate.
Cameronngram 1 year ago
I am sure, you have a cute sister.
BeatySword 1 year ago
dejavu
tomek123kotek 1 year ago
quick question, i am learning c++ from your vids, is c# completely different and are games using c#?
konker7777 1 year ago
I get this I hope I can program my own things when i got through all this easy stuff....
AlyoshkaCA 1 year ago
@superbarnie Bucky has a mac so he is a fag?
yorslam 1 year ago 16
@yorslam he also has a lots of pc's
macoronicheez 8 months ago
@yorslam He has XP.
IkeGaineyFilms 7 months ago
@IkeGaineyFilms look Objective C Programming Tutorial he has more than one computer
yorslam 7 months ago
@yorslam a MAC with winxp
NoamElBaZ 5 months ago in playlist TheNewBoston - C++ Programming
Great job. I thinnk my CS teacher should watch these videos.
thekingpoo 1 year ago
Great tutorials. You have helped me phenomenally in c++.
theballerplaya 1 year ago
Nice and simple, thank you.
FreshAnimeEpisodes 1 year ago
Awesome vids man but I have noticed that I can create an array x of 5 elements but looks like I can do this: cin >> x[10] and it'll work just fine.
Airman9519 1 year ago
posted on my birthday!
LozerNumberW 1 year ago
Thanks this made things more clear.
TheSmoothCriminal 1 year ago
Hi, I've watched all the videos, and I have to say I love them.
I want to create a function that would create x amount of arrays where I say what x is. How can I create a loop that doesn't just put values in an array, but would actually make the array? Thought this would be the most appropiate video to post the question under.
CuteKittyCat2 1 year ago
yay useful for tic tac toe
johnzkeePW 1 year ago
i agree with mp4rk0ur his way is much easier
greymaster4 2 years ago
hey man,thanku very much,i'm from pakistan and u really helped me out,.......i hv given ur lecture to my friends nd they all understood the arrays...........thanks agian....
ammar906 2 years ago
Excellent tutorial, I bought SAMS Teach Yourself C++ and having been sitting here for two days trying to figure out what the hell arrays are. After watching your tutorial I know fully understand the coding and what it all does and I have a much better grasp on what I would use an array for. Thank you very much for taking the time to make this tutorial and I will definitely be watching the others as well!
birthnight 2 years ago
arrays are important too
belij82 2 years ago
one question please
if i wanna let the user enter that integers instead of writing it by my self
How can i do that ?
thanx
FAAI2006 2 years ago
watch the other parts of the tutorial
he said it earlier
Kirbydude777 2 years ago
hmm
cin>>age;
eternity899 2 years ago
really useful for me
thanx
keep going bro
FAAI2006 2 years ago
youre the beSt
myytid 2 years ago
I wonder how i create a array to store names? any ideas
totheman 2 years ago
you need an array of pointers, each element in the pointer array should point to a character array. you're probably better off using another data structure though (linked list)
mp4rk0ur 2 years ago
What happens if i want to add ages[1]+ages[3]
BIGdadei 2 years ago
then you have to specify ages[3]
for that you have to put your array as ages[4]
or 4+anything
myytid 2 years ago
Comment removed
mikeymidnight420 2 years ago
dude that is good, but i hace a trouble
i need to save some vaues in my array, for example i have ths array A[3]
i want to save this values 2,4,5 in the array, how i do it? can you help me please!
lexion4 2 years ago
maybe with the for loop? in java it's done with a for loop.
zon3ful 2 years ago
A[0]=2;
A[1]=4;
A[2]=5;
mrperfect44550 2 years ago
A[3] = { 2, 4, 5 };
mp4rk0ur 2 years ago
@mp4rk0ur yup mp4rk0ur your way is very much easier... but i think bucky did it his way so he can explain the computer programming way of counting. human way is 1, 2, 3... computer way is 0, 1, 2...
Cubalisk 1 year ago
This has been flagged as spam show
@mp4rk0ur or even
int A[] = { 2, 4, 5 };
EmuAddict 1 year ago
"Expected primary-expression before "int""
Help! :(
SPfan1993 2 years ago
Good video man. Well done.
dcbirdman420 2 years ago
yap
MegaKechup 2 years ago
if you want your program (or user) to decide the size of an array at runtime. try this, (called dynamically allocated array)
int size_of_array;
cin >> size_of_array;
int *dyn_Array = new int [size_of_array];
there it is
0121ryanh117 2 years ago
How is starting you counting at zero confusing? O.o?
you are really strange guy who made this video, you really are....
TheReasonWhyGuy 2 years ago
Because people are use to saying 1, 2, 3, 4, 5....
Usually, people ignore 0 outside of programming.
0121ryanh117 2 years ago 2
if u ask a kid to count to 5, he or she will say 1,2,3,4,5, not 0,1,2,3,4
supernerdygeek 2 years ago
if u asked a GENIUS to multiply 50 numbers each of 5 digits in 1 minute ... HE/SHE will NEVER success in that XD
1thebest2 2 years ago
ARRAYS!!! :D
I LOVE YOU :3
Arrays were one of the things I love learning the most in gml...
TheReasonWhyGuy 2 years ago
this is better explained than what i first learned in college, simple and clear
hoyun 2 years ago 46
thank you so much, very very helpful
shady3one3 2 years ago 2
pls who knows where i can learn comprehensive and detailed C++ programing in Canada. i need it urgently
MegaKechup 2 years ago
Dude you shouldn't be using system("pause") its a windows only feature and so becomes useless if usingt a mac or linux!
Picklesman 2 years ago
This has been flagged as spam show
MACS ARE FOR FAGS!!
superbarnie 2 years ago 85
Only when you bend over
VannyARTS 2 years ago
@superbarnie Unless you can write a Mac OS, why do you think you are so far above it?I prefer Windows by far, but the Mac operating system is an extremely advanced OS.
FOOFlGHTERS 1 year ago 2
@superbarnie no theyre not ur breains are fags :p
TheRealAuxiliary 1 year ago
@TheRealAuxiliary
are u saying that my brains are fags ? if u r then ur terribly mistaken . if u r not then i would like to tell u that no one can understand whatever u r saying.
superbarnie 1 year ago
@superbarnie >They arnt for fags, their for people who intend not to program. Therefor you are a fag, and a retard.
MrNukesftw 1 year ago
@superbarnie i would say 1/2
macs are a lot better then pc's in many ways axcept in gaming
but they are gay
TheGOffice 1 year ago
@superbarnie I think we have a misunderstandment by a lot of people here, who obviously hasn't ever used a Mac before. C++ Programming is very possible on a Mac. Apple do advertise the use of alternative versions, called Carbon-C++ or Cocoa. But if you download the SDK from Apple, Xcode, you can also choose to program in regular C++. So actually Macs are for people who intend to program as well :)
MyIQis0 1 year ago 2
@superbarnie um macs are better than pc's so um how are they for fags?
mariomodguy 1 year ago
@mariomodguy I know. They crash less often, they make less noise, they are a bit faster, but every designer makes their stuff for pcs because everyone loves pcs. Everyone loves pcs because it has all the better program stuff unlike macs. The designers make more programs for pcs and less for macs because everyone loves pcs. And so on and so on. I would love to have a mac, but no one makes anything good for the mac. Bloodshed is a pc-only thing, and so is a lot of other stuff. :(
chester10999 1 year ago
@chester10999 ya but i just love macs so much!
mariomodguy 1 year ago
@chester10999 Xcode is completely free (if you sign up for their free developer thing) and does C/C++. Uses almost the same exact code as what he shows on the screen.
johnschmidt11 9 months ago
then use it when u got mac or linux dude.
sevenmeyou 2 years ago
I hope you're using linux, and not a mac!
lolkiwi 2 years ago
Linux4Life! :D
HealyHQ 2 years ago
whoah. this is the quickes anyone has ever explained arrays. and through this tutorial i actually understood how they work, and why the actually exist!!!!!!!!!!!!!!!!!!!!!!!!!!!!
GNSstudios 2 years ago
this is soooo helpful!
skysowell 2 years ago
system("PAUSE") is annoying, my firewall asks if I want to give permission to my program to execute cmd.exe (thank you Comodo) I have found though that using cin.get(); isbetter and apprantely uses less memory. I don't know how big of a difference this will make but over the next few years through College I will find out if it makes massive changes or not. Good videos all round though!!
ryancfcsas 2 years ago
Even I think, that cin.get() is much better, because on some Pc, the system("Pause") doesn't work.
Sonicdarc 2 years ago
thenewboston - do you know that you can click Ctrl + S to save automatically and then you can press F9 to compile without taking a long time to do all of that . . . and by the way i am a bigener can you tell me why would i use Arrays in my future cuz i still dont get it man . . . please help me
MrMM9090 2 years ago
hello MrMM9090,
I often thought that myself but as i have started game programming it has become very usefull as when creating zombies i don't want to make 50 one by one so i make a array "zombie" which could hold the health stats and looks. and I am sure they could be used in many other ways too :-)
hope that helped,
HelpfullProgrammer.
helpfullprogrammer 2 years ago 2
This has been flagged as spam show
hello MrMM9090,
I often thought that myself but as i have started game programming it has become very usefull as when creating zombies i don't want to make 50 one by one so i make a array "zombie" which could hold the health stats and looks. and I am sure they could be used in many other ways too :-)
hope that helped,
HelpfullProgrammer
helpfullprogrammer 2 years ago
lmao, it's been bugging me too since the early videos!
night5life 2 years ago
+1.. i think its wierd lol o.o im not used to seeing that
theMastrgamr 2 years ago
//i like this vid
unstman12 2 years ago
lol comment :D
// lol nice comment :3
09106073576 2 years ago
//Good videos! I am learning alot about C++!
ryancfcsas 2 years ago
and here's another comment....bananas are yellow. Fin.
cazthegamer 2 years ago
thanks
jassongs 2 years ago
You rock man!
miamimanni 2 years ago
dude please help me build this program that lets the user input 5 grades on it and the program will tell which grade is the highest. my professor said i need to use arrays. that's just what we are into now so just make a simple program that does the job. i promise, i'll subscribe to anyone that can help me.
bstosnbata 2 years ago
is there like a comment in C++ like there is in HTML and Javascript?
TypicalProgrammer15 2 years ago
// here's my comment
iSuckedUrMomsDICK 2 years ago
nice name-:D
balu65 2 years ago
/* heres a nother comment */
eliteveteran 2 years ago
Thanx bro. u ve a good way for explaination.
khalidtn2 2 years ago
hey i'm trying to write a program having a single dimesional array with 5 elements= { 12, 54, 65, 40, 40 } , the program should ask the user to enter one of the above elements and the output should be like this:
Enter the integer to search: 54
Position 1: 54
the aim is to output the index of the number being searched.
Sample run 2:
Enter the integer to search: 40
Position 3: 40
Position 4: 40
lenoko 3 years ago
RTFM , on IDGaF
balu65 2 years ago
Thank you for all the time you are putting into these tutorials.
Much appreciated!
downinthevalley59 3 years ago
why did you put 'using namespace std; ' in the main? Me and everyone else i've ever seen puts it outside after the includes.
hendrix5045 3 years ago 2
you knwo how for array 1,2, and 3 you named then 0,1 and 2? could you change them from numerals to a word so could 0 be me then 1 be him and 2 be her? just as an example you know?
soccergod561234 3 years ago
great video it helped me alot thanxxx bro!!
lokocanari 3 years ago 2
do you know how to make turtle graphics?
gd131 3 years ago
Nice!!
Its GOOD!!
mitulgoku 3 years ago
really good
MegaKechup 2 years ago
Cool, well explained for noobs.
MasterBott01 3 years ago