C++ Tutorial 22: Multiple File Projects

  Рет қаралды 48,569

Creel

Creel

Күн бұрын

Пікірлер: 26
@leythecg
@leythecg 7 ай бұрын
absolutely fantastic in content and presentation! Many thanks!
@arpitpatel5814
@arpitpatel5814 3 жыл бұрын
Excellent , Great , No words to appreciate enough. Thank You.
@4Y0P
@4Y0P 9 жыл бұрын
Love the effort you put in with the slideshow and everything, great video!
@NevenaPerovic
@NevenaPerovic 10 жыл бұрын
What a great tutorial!! :) :) Thanks a lot! I wish I had such detailed classes once when I started learning c++! Cheers!
@DownloadableFox
@DownloadableFox 3 жыл бұрын
Yooo. This video is like super old however I really want to thank you for it. I was really having problems understanding how headers worked and I had a lot of problems inside my code because of the lack of guards. Seriously thanks!
@kerimbendov5017
@kerimbendov5017 3 жыл бұрын
21:17 how do c++ know that when u wtite Rectangle(sideLen, sideLen) u actually mean the width and height? İ mean, u havent declared anything called "sideLen" in rectangle, so it may be anything, why width and heigth. İ would really appreciate if u helped me with this question, cuz i'm a lil bit confused right now 😅
@jessicajumelles8944
@jessicajumelles8944 4 жыл бұрын
Awesome to know about #pragma once. always wondered why it showed up when I created a new file lol. Also, I added the #ifndef and #define in all my .h files. still having issues. I'm using a function template so the error I'm getting is function template has already been defined. :(
@nicholasfazzolari3647
@nicholasfazzolari3647 9 жыл бұрын
So extremely useful. Thanks for creating this video.
@orionemoray3990
@orionemoray3990 4 жыл бұрын
thank you for this, learned a lot.
@cigoli3542
@cigoli3542 4 жыл бұрын
How to Compiler multiple files in vscode?
@mandarparkhi3708
@mandarparkhi3708 4 жыл бұрын
very useful. Thanks.
@zeinabrahmani963
@zeinabrahmani963 4 жыл бұрын
Thank you. Could you please make a similar tutorial for VSCode as well?
@luiswittrock223
@luiswittrock223 3 жыл бұрын
There is literally nothing that would change using VSCode or any other text editor. You still just have to create new files .h or .cpp and write your code into it and than compile.
@zeinabrahmani963
@zeinabrahmani963 3 жыл бұрын
@@luiswittrock223 Thanx for your reply. Yes, the creation of the .h and .cpp files are exactly the same. What I found difficult in VS Code is the configuration of the .json files, i.e. how can I make the VS Code find these .h and .cpp files when the files are put in different folders. For example, I have a repository that puts the .cpp files in several folders and it's hard to set the path for all these .cpp files one by one.
@luiswittrock223
@luiswittrock223 3 жыл бұрын
@@zeinabrahmani963 I think in that case it's easier to just use a makefile.
@zeinabrahmani963
@zeinabrahmani963 3 жыл бұрын
@@luiswittrock223 Yes, that's what I am doing now. But I really wish to be able to debug the codes in VS code. Thanx.
@forresterickson6225
@forresterickson6225 3 жыл бұрын
Might want to explain what "#pragma once" is about for us beginners. ... resuming watching.
@forresterickson6225
@forresterickson6225 3 жыл бұрын
This helped: en.wikipedia.org/wiki/Pragma_once
@AiswaryaRamesh-r5t
@AiswaryaRamesh-r5t Жыл бұрын
Can you please provide this code
@herootaku5682
@herootaku5682 8 жыл бұрын
hey, why rectangle.h/circle.h are included in main.cpp but not rectangle.cpp/circle.cpp
@lucianoribeiro9096
@lucianoribeiro9096 7 жыл бұрын
because is this the correct way. In general, you as a client don't have acess of the implementation of the .cpp of a class, only the things that it does, that are listed in .hpp. In other words, you need to know what it does and not how it does.
@DiegoJaraPalomino
@DiegoJaraPalomino 10 жыл бұрын
Very useful, thanks. There is no tutorial in spanish.
@shibasispatel6624
@shibasispatel6624 7 жыл бұрын
Thanks for making this awesome video. It could have been better if you would have included namespaces.
@shybeeee
@shybeeee 4 жыл бұрын
tks alott
@arpitpatel5814
@arpitpatel5814 3 жыл бұрын
In case may be helpful to those who are new: for VSCode in terminal window (paste and press enter) cd "f:\prac5\" ; if ($?) { g++ main.cpp Shape.h Circle.cpp Rectangle.cpp Square.cpp -o main} ; if ($?) { .\main } Note : f:\prac5\ - Replace with your folder address
@UvUtkarsh
@UvUtkarsh 3 жыл бұрын
but I don't know that why in my case it is not happening.
Multiple Files in C (Header and Source Files)
26:07
Jonathan Muckell
Рет қаралды 19 М.
C++ Header Files
15:10
The Cherno
Рет қаралды 743 М.
The Lost World: Living Room Edition
0:46
Daniel LaBelle
Рет қаралды 27 МЛН
Separating a C++ class into a .h and .cpp files
11:01
drprventura
Рет қаралды 140 М.
C++ 11 Lambda Functions
21:17
Creel
Рет қаралды 73 М.
Let's Create a Compiler (Pt.1)
1:11:03
Pixeled
Рет қаралды 587 М.
Andrew Kelley   Practical Data Oriented Design (DoD)
46:40
ChimiChanga
Рет қаралды 148 М.
Compiling Multi-file C++ Source Code with CMake
9:47
Kea Sigma Delta
Рет қаралды 15 М.
Header & Implementation File for C++ Classes | C++ Tutorial
7:34
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 904 М.
C++ Tutorial 23: Intro to Define
18:52
Creel
Рет қаралды 6 М.