📚 Learn how to solve problems and build projects with these Free E-Books ⬇️ C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook 🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/ Experience the power of practical learning, gain career-ready skills, and start building real applications! This is a step-by-step course designed to take you from beginner to expert in no time! 💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10). Use it quickly, because it will be available for a limited time.
Thank you so much for your lecture. It's very good and it helps me alot. I have a question regarding to deallocate memory: What if we don't call delete[]myArray but just only call myArray = NULL; ? Can you explain what will happen?
Love your videos! Currently in my last year for my bachelors and have this crazy 7 hour long test at the end of the semester where 1/4 of it tests my c++ knowledge. If I get anything less than a 70 on the test I auto fail no matter what I have on anything else turned in during the semester. Reviewing c++ with your tutorials is seriously boosting my confidence! thank you..
I am very happy when I see you .. I love your lessons very much, although I suffer from an understanding of the English language, but I somehow benefit ... My love for you and I wish you success and excellence .. from Palestine
I didn't quite understand this topic when it was taught at school so I am glad that you explained it well here and I was able to understand it. Thank you.
What I like about those videos is that they are detailed, and if I'm not mistaken, you're using the official cppreference documentation, and that is good because I recognize things from our Professor's lecture. He also uses that site as a source, which makes what is thought detailed and enough, despite most videos that talk about the concepts shortly.
Thank you for the tutorial, it cleared many things up for me. Do you think you could expand on this lesson to explain creating dynamic multi-dimensional arrays at runtime?
Great job! Keep it up! Also, I wanted to ask you if you're gonna do some GUI tutorials in C++... Your explanations are a golden mine... Don't keep them only for yourself! 😉
Thanks for this video, I needed it as a refresher/maybe I never learned this(?) - anyhow thanks for making a concise explanation that didn't get long winded.
9:55 I thought that when we did "new" the array changes from fixed where it was originally one after each other and that's why "myArray+I" would work. But doesn't new make the addresses not continuously right after each other? So why does it work with new?
#include using namespace std; int main(){ int size; cin >> size; int arr[size]; system("pause>0"); // return 0; } So here's was my code and this got me *no errors*, maybe its because of the new versions of C++ but doesn't it oppose the whole concept of dynamic array?
All In hear is disarray ... ... ... Okay, I'm bad at this. But really, I hated arrays and pointers when I first practiced with them. Your tut is very helpful
Question: When I try running the example at 4:31, I do not get the error that the expression must have constant value. The program compiles and runs. After some research I found it may have to do with the compiler language standard, I believe my computer defaults to C99. I was wondering if you had any thoughts on this. I am having some trouble setting the proper language standard. Note: I am using terminal commands to compile (g++ ... ) and run (./my_program) Do programmers usually set a standard before starting a project?
Same bro! I tried doing the example at that timestamp and it works just fine. I didn't even have to do the dynamic allocation thing. Any idea yet why this works?
My VS Code doesn't throw me a warning if I try to dynamically allocate an array without the pointer, like at 4:06 . In fact, it just lets me run the code without issue. Has something changed with C++ since this video? Is it still necessary to use a pointer to create an array of dynamic size?
Variable length arrays (VLAs) are allowed in C99 and many C++ choose to accept them as well. Try compiling it with stricter warning options and you should see something like "warning: variable length array is used [-Wvla]"
4:31 i dont get any error when i try this the program was running just fine with me and i made the user fill the array with the size they put please help i dont understand where the problem is
what if we used header file #include "bits/stdc++.h" ...i mean this can be used to declare dynamic arrays in which the user can specify the size of array , but i want to to know the concept behind...can you clear this please ? and thanks for making the data structures playlist it is really good !
can you compare some of these concepts and syntax compatible with C? I know since C is not a OOP so one wouldn't expect to see classes there. But concepts like this would be in C as well.. Can you please talk about malloc(), calloc(), free() and realloc(). What is the difference, which one is better in what conditions. etc..
sense when is C not OOP? if you open a file you initialize a FILE *. if you read from a file you pass in a FILE *, if you write to a file you pass in the FILE *, if you close a file you pass in a FILE *. the only difference, in this case, is that C++ implicitly passes in the FILE * into the functions of a class as it's this pointer. malloc(), realloc(), calloc(), are handled by the new keyword in c++, but can still be used, and the rules for their use don't change regardless. If you allocate with malloc, or reallocate with realloc, you must call free() on that allocated memory. if you new some memory, you must delete the memory, and if you new an array you must call delete[] on the array. These rules also apply to the Win32 API calls that allocate memory, and their allocation and deallocation must use the matching allocation and deallocation functions.
I have an excercise where I am given a dynamic array A of strings, I need to implement function foo(string &A, string s) to append the string s to the array A. So if I am not provided with the size of the array, how can I solve this? tysm for any suggestions.
📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.
Thank you so much for your lecture. It's very good and it helps me alot.
I have a question regarding to deallocate memory: What if we don't call delete[]myArray but just only call myArray = NULL; ? Can you explain what will happen?
You are a very good teacher. you specify the problem, explain it, and then finally solve it for us.
I do love your pronunciation! For a non native english speaker (like me), it is very easy to understand you :-)
🤗🥰🥰
Thank you! I was so frustrated by my dynamic arrays assignment in class, I spent hours trying to get it to work. This helped clear things up! :)
🤞🥰🥰
Aight. Finally something good on UA-cam
🤞🥰
Bro this woman is singlehandedly carrying me through my course
i have followed so many coding channels, yet this remains as one of the best for me.
This was way more helpful than my lecture videos for class. Thank you
Of all online tutorials, you are the best! Not only in C++. You must teach in universities. Charismatic!
Love your videos! Currently in my last year for my bachelors and have this crazy 7 hour long test at the end of the semester where 1/4 of it tests my c++ knowledge. If I get anything less than a 70 on the test I auto fail no matter what I have on anything else turned in during the semester. Reviewing c++ with your tutorials is seriously boosting my confidence! thank you..
7 hours ?
which country are you from bro?
how was your test, sir? also, 7 hours? how do you survive?
what did you get? what are you doing now?
which uni, sounds crazy lol
I am very happy when I see you .. I love your lessons very much, although I suffer from an understanding of the English language, but I somehow benefit ... My love for you and I wish you success and excellence ..
from Palestine
Thank you so much! 🇵🇸🥰
I love how you explain things going on in memory!
I have been binge watching your videos and must I say, THIS ONE RIGHT HERE!!! It made everything make perfect sense.
❤️🚀✨️
Why didn't I find your channel earlier?😩 You explained it very well I understood this topic within seconds ❤
thank you so much, this video help me alot to finish my school assignment
From giving up coding to understanding it all. Your channel is amazing .Thank you so much . I promise to buy you coffee with my first salary :)
I didn't quite understand this topic when it was taught at school so I am glad that you explained it well here and I was able to understand it. Thank you.
@Feev6r Yes, it is.
@Feev6r But it depends on the school you attend.
Thank you for your videos. It is much easier for people who are not native English to perceive your speech than other bloggers
amazing explanation Saldina!!! TOP!
are you planning to make a smart pointers video soon??
Yes 😊
What I like about those videos is that they are detailed, and if I'm not mistaken, you're using the official cppreference documentation, and that is good because I recognize things from our Professor's lecture. He also uses that site as a source, which makes what is thought detailed and enough, despite most videos that talk about the concepts shortly.
Thank you for the tutorial, it cleared many things up for me. Do you think you could expand on this lesson to explain creating dynamic multi-dimensional arrays at runtime?
I plan to do multidimensional as well 😊
I was frustrated but now i finally found how to declare and enter value in dynamic array thank you.
I just find your channel and you save my lots of time🥰🥰🥰
🚀🚀✨️
You are a very good teacher. Please continue making videos on C++. PLease make videos on Data structures using C++.
Thanks! Really great video. You explained everything perfectly and with great detail. Had no fluff and was quick.
First and foremost, thank you for all of these fantastic tutorials. We would appreciate it if you could use the dark mode for future tutorials.
Thanks. I did that already for later videos 😊
It was reeeaallyyy helpful, I can't say how much this video means to me. Thanks!!!
Very helpful and professional tutorials!
Just subbed you today after watching 5 of your vids thanks for putting effort
Welcome! 🤗🥰
Thank you code beauty. Your way of teaching is really helpful in understanding these c++ topics. Now I feel more confident. Thank you very much.
Well I am totally in love with your way of teaching c++ stuff and specifically I love this tutorial.
Ms saldina by far your the best:))))
At 4:32, I don't get the problem by taking input of size different everytime...why would it be an error...I'm not getting error..pls look onto this
simple and easy to follow, love it !
simp
I dont get an error when I run the code in 4:27. why is that?
Thank you so much for this video! You are so knowledgeable and can explain better than a college professor.
Yes this girl explains really good. 😊
Highly appreciate the videos! Thanks for your effort! Greatly explained!
Thank you, I finally understand DMA in C++..
How can someone be that perfect in teaching ! U're so beautiful ilu ❤
Thank you so much and I'm happy that my videos help you! ❤️🥰
Great job! Keep it up!
Also, I wanted to ask you if you're gonna do some GUI tutorials in C++... Your explanations are a golden mine... Don't keep them only for yourself! 😉
Thanks for sharing another great lesson, a video for algorithms would be great too. Many thanks 🤓👍
Thanks for this video, I needed it as a refresher/maybe I never learned this(?) - anyhow thanks for making a concise explanation that didn't get long winded.
Thank you so so much.... finally understood all my doubts are clear...thank you so much for explaining this in so simple way...👍👍👍😃😃❤️❤️
This is enlightening thank you!
I am not getting an error when I write what you wrote till 4:59 😐😐😐😐😐😐😐😐😐😐
Really nice explanation, thank you!
I have been trying to swap the elements of a dynamically allocated array but the program behaves wierdly of an array which is declared at runtime?
came here from freecodecamp video. loving your content
I do not get an error if i don't specify array dimension before compiling, running it and cout sizeof gets the right dimension.
great practice on de-allocate
Thanks for your video. Hoping that you will make a video about linked list someday !
ua-cam.com/video/HKfj0l7ndbc/v-deo.html
🤗🤗
Best explanation! Much appreciated.
Excellent video!
Will you do video about std::make_unique and std::make_shared?
Thanks a lot for clearing my concepts
I love your channel!
this video cleared my concept
Amazing your explanation
9:55 I thought that when we did "new" the array changes from fixed where it was originally one after each other and that's why "myArray+I" would work. But doesn't new make the addresses not continuously right after each other?
So why does it work with new?
Thank you so much, the explanation is really satisfying
that's all I can say 😄
beautiful teacher and fun programming is best
#include
using namespace std;
int main(){
int size;
cin >> size;
int arr[size];
system("pause>0");
// return 0;
}
So here's was my code and this got me *no errors*, maybe its because of the new versions of C++ but doesn't it oppose the whole concept of dynamic array?
I was about to comment the same thing.
I had to get up and check again why I didn’t get error.
@codebeauty can you please explain?
Thanks
Thank you so much for such amazing videos. I hope you could do videos about “sort” and “iterator”. Thank you
Omg a good dynamic array deallocation explanation thank youuuuuu
🤗🤗😊
4:15 It works on my IDE but you said that it shows error ... The size of array can be specified at runtime
Interesting well explained this was very helpful thank you.
I cant say thank you enough👏👏
I love you, sorry and thank you for all!! I'm learning a lot!
Hi, thanks for video. I have question if it is better to use nullptr compare to NULL ?
It is better to use nullptr 😃
All In hear is disarray ...
...
...
Okay, I'm bad at this. But really, I hated arrays and pointers when I first practiced with them. Your tut is very helpful
Happy to hear that! ☺️🤗🤗
Question: When I try running the example at 4:31, I do not get the error that the expression must have constant value. The program compiles and runs. After some research I found it may have to do with the compiler language standard, I believe my computer defaults to C99. I was wondering if you had any thoughts on this. I am having some trouble setting the proper language standard. Note: I am using terminal commands to compile (g++ ... ) and run (./my_program) Do programmers usually set a standard before starting a project?
Same bro! I tried doing the example at that timestamp and it works just fine. I didn't even have to do the dynamic allocation thing. Any idea yet why this works?
Please make videos on Data structures and algorithms in c++
I already have some video about data structures ☺
Great explanation! Thanks :)
At 5:36 how did you add // quickly to comment that out?
Great job!
My VS Code doesn't throw me a warning if I try to dynamically allocate an array without the pointer, like at 4:06 . In fact, it just lets me run the code without issue. Has something changed with C++ since this video? Is it still necessary to use a pointer to create an array of dynamic size?
nice video, helped me lot!
Thank you for the explanation
Your teach very cleared I love you 😘
Really beauty coding
Is it weird that when I run the code at 4:12 on g++ 13.0.1, I get no errors?
If it's not broken, don't fix it 😁
Hi mam ur the one who motivated me and do u remember me?
Thank you . appreciate your effort .
int size;
coutsize;
int array[size];
doing it like this does not give any errors to me. can someone explain.
Same here. I'm not sure why x.x
Variable length arrays (VLAs) are allowed in C99 and many C++ choose to accept them as well. Try compiling it with stricter warning options and you should see something like "warning: variable length array is used [-Wvla]"
same
can you make videos regarding to STL in C++?
4:31 i dont get any error when i try this the program was running just fine with me and i made the user fill the array with the size they put
please help i dont understand where the problem is
Very interesting video, you're amazing Saldina ;-) Thank you very much for the time you spend making those videos ;-)
what if we used header file #include "bits/stdc++.h" ...i mean this can be used to declare dynamic arrays in which the user can specify the size of array , but i want to to know the concept behind...can you clear this please ? and thanks for making the data structures playlist it is really good !
Excellent. I have a question. Why don't we need the zise of array when we delete? How compiler know how many bytes it need to free? Thank you!
Thank you vary much sa for all your video 🙏🙏🙏
Thanks. I learned something.
can you compare some of these concepts and syntax compatible with C? I know since C is not a OOP so one wouldn't expect to see classes there. But concepts like this would be in C as well.. Can you please talk about malloc(), calloc(), free() and realloc(). What is the difference, which one is better in what conditions. etc..
sense when is C not OOP? if you open a file you initialize a FILE *. if you read from a file you pass in a FILE *, if you write to a file you pass in the FILE *, if you close a file you pass in a FILE *. the only difference, in this case, is that C++ implicitly passes in the FILE * into the functions of a class as it's this pointer. malloc(), realloc(), calloc(), are handled by the new keyword in c++, but can still be used, and the rules for their use don't change regardless. If you allocate with malloc, or reallocate with realloc, you must call free() on that allocated memory. if you new some memory, you must delete the memory, and if you new an array you must call delete[] on the array. These rules also apply to the Win32 API calls that allocate memory, and their allocation and deallocation must use the matching allocation and deallocation functions.
Finally. Thank you.
I have an excercise where I am given a dynamic array A of strings, I need to implement function foo(string &A, string s) to append the string s to the array A. So if I am not provided with the size of the array, how can I solve this? tysm for any suggestions.
Nice explanation mam thank you so much
thanks for upload ,really helpfull
can I ask how do you set up so that when you finish the line of code, every words and codes of yours had the spaces between them automatically
What is the extension which is automatically formatting the code?
Using NULL or nullptr is the same thing?
what key switches do you have