Giter Club home page Giter Club logo

the-c-20-masterclass-source-code's Introduction

The-C-20-Masterclass-Source-Code

the-c-20-masterclass-source-code's People

Contributors

rutura avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

the-c-20-masterclass-source-code's Issues

Undefined reference error

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

vc140.pdb

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

Confusing explanation in chapter "Printing Integers in Binary"

std::cout << "data (bin) : " << std::bitset<16>(data) << std::endl;

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.

naming convention for folders

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?

Error in the comment of declared result that stores the returned value of a function

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

int& result = max(x,y); // Error : Can not treat return value as a reference

CH10.2IfStatements

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?

U forget to call the function

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;

}

Section 13.3 const char *

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;

}

About the video...

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?

why should i use :std::: everytime?

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?

Arrangement issue

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.