Buckys C++ Programming Tutorials – 33 – Create an Array Using Loops

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

27 responses to “Buckys C++ Programming Tutorials – 33 – Create an Array Using Loops”

  1. Zerkini Avatar

    Is there a way to use the array to determine the stopping point of the for loop? IE: for (int i = 0; i < Bucky.length(); i++) { bucky[i] =99;} ??

  2. Humberto Franyie Avatar

    #include <iostream>

    using namespace std;

    int main()
    {
    int test[10]={9,11,15,12,1,13,22,23,10};

    cout << "Index _________Value" << endl;
    for(int i=0;i<=test[i];i++)
    {
    cout<<" "<<i<<"tt"<<test[i];
    cout<<"n"<<endl;
    }

    return 0;
    }

  3. Muhammad Nouman Avatar

    "I will see you in the next door ", Wow

  4. Muhammad Nouman Avatar

    " There are actually a lot of nines in this soil "

    Pretty Cool huh?

  5. Tariq R. Durrani Avatar

    ohhhhhhh thankssssssssssssssssssssssssssssssssss

  6. Youssri Mhamdi Avatar

    Tell me if I could initialize an array without specifying how many element will I put in it?
    when I use this code it always ends up with a crash
    ________________________________________________
    #include <iostream>

    using namespace std;

    int main(){
    int T[]= {};
    int i=0;

    for (i=0;i<6;i++){
    T[i]= i;
    cout << T[i] << endl;
    }

    return 0;
    }

  7. abdulwahed al-mulla Avatar

    when i display my array it shows nothing !

  8. Dileep Kumar Avatar

    hey Bucky! u did not declared x in the program it should come up with an error.

  9. daineX Avatar

    Why do i need to go college when iv'e got your videos.
    Great job!

  10. Steven Dorsey Avatar

    I was kinda hoping that I would find a video on youtube dealing with while loops and do-while loops, with Arrays being tested. I'm attempting to use one to validate user input to be greater than 0 while they are inputing into the subscripts of the array.

  11. Mahmood Muhenned Avatar

    Thank u very much..
    It's funny that I'm studying civil E and the university force me to study this

  12. stathis stathopoulos Avatar

    And the compiler says "Yes, Sir!"

  13. FingersBlazin Avatar

    Isn't it a little confusing to make an int x, and then an array value like bucky [x]? I don't know if programmers do this in c++ but when I was studying visual basic the book would make all counters like int count1, int count2, etc.

  14. Mgcini Bothwell Avatar

    these videos are  really helpful. I am stuck of my introduction to programing work is there anyone I can contact to help me. I would really appreciate it a  lot. thank you.

  15. রকমারি খবর Avatar

    #include <iostream>

    using namespace std;

    int main()
    {
    int forhad[11];

    cout << "Index – Value" << endl;
    for( x = 0; x <=10; x++)
    {
    forhad[x] = 100;
    cout << x << " —– " << forhad[x] << endl;
    }

    return 0;
    }
    What's is wrong ??? Why I need to declare "x" .. I couldn't run except declaring "x" .. Plz Help

  16. volikoto Avatar

    He should have put "Index – Element Value" not "Element – Value". Element and Value are the same.

  17. I'm a brony. Cry about it. Avatar

    oh shit… I switched 99 with x++ and the output was:

    1 — 0
    3 — 2
    5 — 4
    7 — 6
    9 — 8

    Was not what I was expecting…

  18. Anime 4 You Avatar

    how can i find the least occured digit with an array like 1004, 2111,8??

  19. jing fan wong Avatar

    can the arguments and return values of a function be arrays? like this : int[3] vektorAdd(int x[3], int y[3]){} ???

  20. VeldroN Avatar

    But what is the point ?All those array elements are equal to 99….why would you want that ?

  21. skillzz Avatar

    so when you initialize "int bucky[9];" does that assign 0 to every array element or is it just null?

  22. Leo Bogod Avatar

    amazing tutorials man !

  23. kenneth 92 Avatar

    You can use the if statement

    int x = 50;

    int bucky[50];

    for (int i = 0; i < 50; i++) {

    if (i < 50) {
    bucky[i] = i*i;

    cout << bucky[i]<< endl;

    }
    }

  24. Debadip Choudhury Avatar

    u are cool at teaching.

  25. Mageh-Pro Avatar

    "Check this out… Pretty cool uh?"

Leave a Reply

Your email address will not be published. Required fields are marked *