Sorry you had to search that long but I'm glad I was able to help! :) Are you a computer science student? If so, what IDE do you use the most? I wanted to make similar videos for different IDE's.
i was about to ask how do we keep the changes but i had discovered it keeps automatically by mistakenly closing lol. many thanks for the video. you literally saved my days
Thanks soo much for this. However, the opposite is happening for me. For example if program 1 was last one that I built, program 2 runs and vice versea? Not sure and probably something I can overlook for now as the main issue was running two separate files under the same workspace. You're the best!
What if I don't initially save the 2 programs as a workspace but separately, and then realizing I want to open them as a workspace? Thanks for the video
You should be able to open the two files separately in a workspace and then save the new workspace. After that, opening that workspace should re-open those 2 files too.
Yes, you can have multiple files in the same project. In fact many people will split their project's functions and classes up from the main.cpp program. You basically put your functions and classes in a .h file and then use the #include directive in your main.cpp source code so that you can call those functions in the .h file and work with the classes in that .h file.
But how should I run multiple C programs in one project? I have saved 7 C files with mains in the same program but it keeps on compiling the latest one only.
You can't do that, the language doesn't allow it. That's why this video was created. You can only have 1 main.cpp. Keep in mind, main is a function. You can't have two functions of the same data type, name and parameters. How is the program to know which one you want to use? Even when overloading functions, there has to be a slight difference in the parameter list with overloaded functions.
@@bp3016 There is a way actually. I figured it out later. You can just check the "do not compile" option for every program except the one you want to run. This isn't a great coding practice tho and I was a noob back then
@@MrudulJain Really? Okay cool! Thank you for sharing that. I can explore that and perhaps make a new video. I'm glad this one has helped so many people. How are you doing with C++? Done any major projects?
Sorry, I'm not sure. I hate visual studio and I'll never attempt using it. It's a horribly complicated IDE. If you don't have to use it, literally anything else would be easier for coding in C++.
@@bp3016 i'll be using it more oftenly now, i hve started learning again c++and i have already started using it, i appreciate it makes it so easier to account for work ur doing or learning.
A simple video that includes an effective answer! Thank you so much bro :)
Glad it helped :)
Been really confused and finally found someone who knows my concern😔 thank you so much sir
I saw this video from Uzbekistan. It was useful for me . Thank you so much bro.
Finally, I found this video, thanks a lot
i work on visual studio 2019 and this helped me a lot!! thank you !!!
Thanks man!! I searched about it everywhere in google but finally found your video..
Finally i found what i was searching for .
🙌🙌
I really like this video. You did very well. I have been searching for a video likes this for weeks before I chanced on this one
Sorry you had to search that long but I'm glad I was able to help! :)
Are you a computer science student? If so, what IDE do you use the most? I wanted to make similar videos for different IDE's.
i was about to ask how do we keep the changes but i had discovered it keeps automatically by mistakenly closing lol. many thanks for the video. you literally saved my days
Glad it helped :)
dude is a legit individual. thank you
I really need it ! Thank you so much !
Thank you so much
I lost my 4 hours for finding this...video
Me too
Many thanks for your extremely helpful tutorial , it is one of the best I have seen. God Bless you.
Great Video, exactly what I was looking for. Thank you for taking your time and sharing the info !
Glad it helped!
Thank you so much, i got my problem solved from your vedio at 02:19 about saving different projects or file ,am happy ..thanks once again BP
Glad I could help :)
@@bp3016 working on codeblocks at this moment 😊thank you..
If i want to create a class of complex numbers separately and want to complex.h file in my main. how can i do that. i can't find the solution of it.
Thanks a lot man! It was bothering me so much.
Thanks for the video. It was helpful. On an unrelated note, I found the background music to be quite soothing to the ears, could you tell its name?
It's from a game called Xenosaga. It's the music that plays when using an ingame feature called the U.M.N. ruclips.net/video/OfS1nWtqZwU/видео.html
@@bp3016 Thanks a lot for the reply!
Thanks dude! It helped me a lot!
That was really helpful, many thanks for sharing.
Thanks soo much for this. However, the opposite is happening for me. For example if program 1 was last one that I built, program 2 runs and vice versea? Not sure and probably something I can overlook for now as the main issue was running two separate files under the same workspace. You're the best!
Thank you. It is helpful.
Exactly! Thank you very much!
What if I don't initially save the 2 programs as a workspace but separately, and then realizing I want to open them as a workspace? Thanks for the video
You should be able to open the two files separately in a workspace and then save the new workspace. After that, opening that workspace should re-open those 2 files too.
I try so many time and i dont know why it doesnt show the main.cpp, can u help me??
If I add multiple files in the same project, will it work? of course, files name are different
Yes, you can have multiple files in the same project. In fact many people will split their project's functions and classes up from the main.cpp program. You basically put your functions and classes in a .h file and then use the #include directive in your main.cpp source code so that you can call those functions in the .h file and work with the classes in that .h file.
Had also problems to register. There is somewhere a link to register via mobile. This worked.
It's crazy this is still broken. lol
But how should I run multiple C programs in one project? I have saved 7 C files with mains in the same program but it keeps on compiling the latest one only.
You can't do that, the language doesn't allow it. That's why this video was created. You can only have 1 main.cpp. Keep in mind, main is a function. You can't have two functions of the same data type, name and parameters. How is the program to know which one you want to use? Even when overloading functions, there has to be a slight difference in the parameter list with overloaded functions.
@@bp3016 There is a way actually. I figured it out later. You can just check the "do not compile" option for every program except the one you want to run. This isn't a great coding practice tho and I was a noob back then
@@MrudulJain Really? Okay cool! Thank you for sharing that. I can explore that and perhaps make a new video. I'm glad this one has helped so many people.
How are you doing with C++? Done any major projects?
@@bp3016 I switched to Java & JS. My last project was a simple Student Database Management System, nothing to brag about
I use Python much more now. I got into machine learning.
Thanks, u solved my issue
Thanks dude.
Thank you so much
Glad it could help :)
That's awesome! Thank you very much sir^_^
thank you sm !!
Thanks dude
waoo its amazing and easy for me thanks sir
THANK YOU
How can I do this in Visual Studio Community?
Sorry, I'm not sure. I hate visual studio and I'll never attempt using it. It's a horribly complicated IDE. If you don't have to use it, literally anything else would be easier for coding in C++.
Thank you
thanks
Thank you so very much
thanks
You're welcome. :)
@@bp3016 i'll be using it more oftenly now, i hve started learning again c++and i have already started using it, i appreciate it makes it so easier to account for work ur doing or learning.
@@fantarefentez Glad I could help :)
@@bp3016 your're not doing more videos?... ur explanation method was really nice