rutura / the-c-20-masterclass-source-code Goto Github PK
View Code? Open in Web Editor NEWSource code for the C++ 20 Masterclass on udemy
Home Page: https://www.udemy.com/course/the-modern-cpp-20-masterclass/?couponCode=ENDSEPT2021
Source code for the C++ 20 Masterclass on udemy
Home Page: https://www.udemy.com/course/the-modern-cpp-20-masterclass/?couponCode=ENDSEPT2021
https://www.programiz.com/cpp-programming/std-namespace
Checkout above link for more explanation
I do not want to misinform others, so please correct me if I'm wrong.
Dear Daniel Gakwaya,
I wanted to thank you for creating this fantastic C++ course and for sharing the code examples on this repository. I have found the material to be very informative and the code examples to be helpful in improving my understanding of C++.
I noticed that there were an error in the comment mentioned below, the returned valued is actually being treated as a reference since the function returns a reference and the result var was declared as a reference also which leads to that action, the mentioned error may fit the second declaration of result which is commented out. I hope this was useful.
Thank you once again for your hard work in creating this course, and I look forward to continuing my learning journey with your guidance.
Best regards,
Hussein Sawan
c.zip
this is my problem please solwa my problem
in pointer arithematic lecture 120 , code line 22 it should be *(p_arr1 +i) but u mistakely did *(p_arr0+i). Kindly correct this sir
I noticed when playing with your code that:
if(!(result == true)){ std::cout << number1 << " is NOT less than " << number2 << std::endl; }
and
if(result != true){ std::cout << number1 << " is NOT less than " << number2 << std::endl; }
function the same way. Why use the ! ( ==) notation when just != seems easier to interpet?
This line explanation on Udemy (timestamp => 5.12) regarding this needs to be reviewed
std::bitset<16>(data)
As you are explaining that your integer variable "data" is 16 bits (4 bytes) but it is declared as short so it should be 8 bits (2 bytes)
I know this may not seem a big issue, but people who have just gotten into coding might find this confusing.
I keep getting the following error when trying to compile the code as provided in 16.4MultipleFiles_CompilationModelRevisited: undefined reference to `incr_mult(int, int)' collect2.exe: error: ld returned 1 exit status
I copied the files which should be fine. I cannot find any solution, I tried everything from reinstalling GCC to restarting my pc. Please help
067 source code (c++ lecture )
https://github.com/rutura/The-C-20-Masterclass-Source-Code/tree/main/9.VariableLifetimeAndScope/9.2VariableScope
Because of this issue , only we get output from the main function, not from the local function. program must be like this ..
#include<bits\stdc++.h>
int global_var1{23};
void some_function()
{
int local_var{10};
std::cout<< " Inside function global_var"<< global_var1<< std::endl;
std::cout<< " Inside function local_var :"<< local_var<< std::endl;
}
void some_other_function()
{
std::cout<< " Inside function global_var"<< global_var1<< std::endl;
//local_var=5;
}
int main ()
{
some_function();
some_other_function();
std::cout<< " Inside main function global_var" << global_var1<<std::endl;
return 0;
}
Starting build...
cmd /c chcp 65001>nul && C:\mingw64\bin\g++.exe -g -std=c++20 C:\repos\C++FromUdemy\VSCODEGCCCONFIGURATION*.cpp -o C:\repos\C++FromUdemy\VSCODEGCCCONFIGURATION.vscode\rooster.exe
cc1plus.exe: fatal error: C:\repos\C++FromUdemy\VSCODEGCCCONFIGURATION*.cpp: Invalid argument
compilation terminated.
Build finished with error(s).
I noticed that it was said the videos are updated in the commit history, but where to find them, the c++ 31 hours in Youtube?
some other codes/other websites, I found they don't use "std::". instead, some of them said that "using namespace std" after header filer is replacing this "std::".
is this a good practice to use the "std::" every time?
First of all, thanks and great credit for the course!
I have a question about course part 13.3.
If this is the wrong place for such questions, delete it.
As an example, it is clearest.
#include
int main(){
const char* p_c_message{"Hello World! Hallo World!"};
/* why is this forbidden
char* p_c_message{"Hello World! Hello World!"};*/
// but like this, it is ok. Where is the difference
char message1[]{"Hello World! Hello World!"};
char* p_message1{nullptr};
message1[0] = 'C';
p_message1=message1;
std::cout << "sizeof(message) " <<sizeof(message1) << std::endl;
std::cout << "sizeof(p_message) " <<sizeof(p_message1) << std::endl;
std::cout << "p message; " << p_message1<< std::endl;
std::cout << "sizeof(p const message) " <<sizeof(p_c_message) << std::endl;
std::cout << "p const message; " << p_c_message<< std::endl;
return 0;
}
When we browse the main folder rutura/The-C-20-Masterclass-Source-Code using web browser some subfolders are not sorted correctly. It's good to add additional '0' for folders where number of chapter is less or equal 9
For example instead of "5.OperationsOnData" it would be probably better to have "05.OperationsOnData". Isn't it?
The section numbers and headings in the repo don't match the sections in the course syllabus:
https://www.udemy.com/course/the-modern-cpp-20-masterclass/learn/lecture/24458218#content
I got this file vc140.pdb instead of filename.exe i tried different kind of solution on the internet but same problem keeps out at every run
Line #51 should be:
sandbox_var &= 0b000001100;
The project's folder arrangement can be changed so that all of the folders come sequentially, starting from 00, 01...
If you approve, then I can do that by adding a PR. Please let me know what do you think about that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.