Added: 3 years ago
From: thenewboston
Views: 80,274
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (177)

Sign In or Sign Up now to post a comment!
  • Do arrays have to be integers or can they also like doubles???

  • system("pause>null"); makes the Press Any Key to continue thing go away.

  • can we use double instead of int in arrays?

  • @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).

  • 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 use cin.get

    

  • @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()

  • 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.

  • Okay, you have a lot of trolls, but damn this video was useful.

  • 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.

  • Your sisters nine? What an an accident! (no offence)

  • lol @ 3:17 "in this variable, right heow!"

  • @garrettchap1 More like 03:13 :D

  • OK. IS IT JUST ME OR IS THIS SO FAR, SEEMINGLY WAAAAY EASIER THAN JAVA??

  • You can actually put using namespace STD; outside the int main() and this means you only have to use it once

  • @DazKins haha true everytime I see his vdeos. It really bothers me. such a bad habbit of his.

  • @DazKins he has really sloppy code in some places. Not sure if I should even follow his turorials

  • what is int main() for?

    what is using namespace std for?

  • @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.

  • @dydziooo

    Don't just jump on in with the 10th video if you don't know anything.Go and watch the first one.

  • @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.

  • Thank you for posting this video. Great tutorial, will subscribe.

  • Thank you!

  • moooooree!

  • Dude.... U ROCK!

    These Videos help BIGTIME!

    Thanks for taking the time to make them :)

  • @tdude63owns

    What? lol

  • i'm watching this because i took 0 points at my informatics exam.maybe 0,25.

  • Comment removed

  • Comment removed

  • is this like a multy int?

  • it is better than describe in tutorial;

    int ages[3]={12,15,14};

    cout<<ages[1];

  • i just relized your accent is like jessica simpson

  • It just makes them that much better.

  • you guys learn this in college?????????? ,,where i live we have to do it in school

  • 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..

  • c++ is easier and more logical then pascal

  • you are terrible at cpp. your layout is all wrong. AND using namespace std; is ment to be after the included librarys.

  • @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.

  • OMG I KNOW A GUY WHOS 19 TOO. WHAT ARE THE CHANCES!!!!!!

  • @TrollsArePeople HOLY SHIT PROBALLY 1 TO A MILLIE WO.... WO .... TOTALLY COOL

  • @TrollsArePeople LMFAO. btw nice grab on that name.

  • @TrollsArePeople OMG SO DO I!!!!!

  • @TrollsArePeople Use C++ to calculate the chances! 

  • @TrollsArePeople Hey cutie, I'm 19 ;)

  • thanks for taking your knowledge to youtube. you are a blessing. :P

  • macs pwn windows.

  • @mrlogan1144 Then explain why mac has bootcamp,

  • Right Heeya , right here.

  • moah thx 4 this tutorial , its really usefull ! :D

  • its a dictionary for python 

  • @didagoal

    No, not a dictionary, something like a list.

  • Hey thanks for the clear explanation.Can you please tell me how to use removeAt function to remove an element from array..

  • is there any function where i can get the Upper Bound of the array? thks! nice tutorial anyway! :)

  • Thanks! This is a great review for my upcoming quiz on arrays today.

  • subscribed!

  • Please donate to Buckys christmas present 2010. See the general forum on his website for details, thanks :)

  • LOL 1:00 transcribed audio says:

    i mean in miami beach is because they were really talking about the future now...

  • @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.

  • ROFL at 3:15 Eric Cartman Impersonation.

  • best c++ tuts ever that had existed in the history of life :P

  • thank you so much for these videos. ive learned more here than in my 1 year of university in which i dropped out...

  • Comment removed

  • @FusionGTZ Lmfao.

  • thanks for the help man.

    Tuts 1-10 done

    Will do more tomorrow gotta sleep

    :]

  • Oh wow, it didn't include the spacing rofl.

  • 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.
  • Why do you have to use an array? not just seperate values?

  • @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.

  • I am sure, you have a cute sister.

  • dejavu

  • quick question, i am learning c++ from your vids, is c# completely different and are games using c#?

  • I get this I hope I can program my own things when i got through all this easy stuff....

  • @superbarnie Bucky has a mac so he is a fag?

  • @yorslam he also has a lots of pc's

  • @yorslam He has XP.

  • @IkeGaineyFilms look Objective C Programming Tutorial he has more than one computer

  • @yorslam a MAC with winxp

  • Great job. I thinnk my CS teacher should watch these videos.

  • Great tutorials. You have helped me phenomenally in c++.

  • Nice and simple, thank you.

  • 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.

  • posted on my birthday!

  • Thanks this made things more clear.

  • 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.

  • yay useful for tic tac toe

  • i agree with mp4rk0ur his way is much easier

  • 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!

  • arrays are important too

  • 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

  • watch the other parts of the tutorial

    he said it earlier

  • hmm

    cin>>age;

  • really useful for me

    thanx

    keep going bro

  • youre the beSt

  • I wonder how i create a array to store names? any ideas

  • 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)

  • What happens if i want to add ages[1]+ages[3]

  • then you have to specify ages[3]

    for that you have to put your array as ages[4]

    or 4+anything

  • Comment removed

  • 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!

  • maybe with the for loop? in java it's done with a for loop.

  • A[0]=2;

    A[1]=4;

    A[2]=5;

  • A[3] = { 2, 4, 5 };

  • @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...

  • "Expected primary-expression before "int""

    Help! :(

  • Good video man. Well done.

  • yap

  • 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

  • How is starting you counting at zero confusing? O.o?

    you are really strange guy who made this video, you really are....

  • Because people are use to saying 1, 2, 3, 4, 5....

    Usually, people ignore 0 outside of programming.

  • 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

  • if u asked a GENIUS to multiply 50 numbers each of 5 digits in 1 minute ... HE/SHE will NEVER success in that XD

  • ARRAYS!!! :D

    I LOVE YOU :3

    Arrays were one of the things I love learning the most in gml...

  • this is better explained than what i first learned in college, simple and clear

  • thank you so much, very very helpful

  • pls who knows where i can learn comprehensive and detailed C++ programing in Canada. i need it urgently

  • Dude you shouldn't be using system("pause") its a windows only feature and so becomes useless if usingt a mac or linux!

  • Only when you bend over

  • @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.

  • @superbarnie no theyre not ur breains are fags :p

  • @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 >They arnt for fags, their for people who intend not to program. Therefor you are a fag, and a retard.

  • @superbarnie i would say 1/2

    macs are a lot better then pc's in many ways axcept in gaming

    but they are gay

  • @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 :)

  • @superbarnie um macs are better than pc's so um how are they for fags?

  • @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 ya but i just love macs so much!

  • @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.

  • then use it when u got mac or linux dude.

  • I hope you're using linux, and not a mac!

  • Linux4Life! :D

  • 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!!!!!!!!!!!!!!!!!!!!!!!!!­!!!

  • this is soooo helpful!

  • 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!!

  • Even I think, that cin.get() is much better, because on some Pc, the system("Pause") doesn't work.

  • 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

  • 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.

  • lmao, it's been bugging me too since the early videos!

  • +1.. i think its wierd lol o.o im not used to seeing that

  • //i like this vid

  • lol comment :D

    // lol nice comment :3

  • //Good videos! I am learning alot about C++!

  • and here's another comment....bananas are yellow. Fin.

  • thanks

  • You rock man!

  • 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.

  • is there like a comment in C++ like there is in HTML and Javascript?

  • // here's my comment

  • nice name-:D

  • /* heres a nother comment */

  • Thanx bro. u ve a good way for explaination.

  • 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

  • RTFM , on IDGaF

  • Thank you for all the time you are putting into these tutorials.

    Much appreciated!

  • why did you put 'using namespace std; ' in the main? Me and everyone else i've ever seen puts it outside after the includes.

  • 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?

  • great video it helped me alot thanxxx bro!!

  • do you know how to make turtle graphics?

  • Nice!!

    Its GOOD!!

  • really good

  • Cool, well explained for noobs.

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more