Skip to content

Instantly share code, notes, and snippets.

@CallumHoward
Last active May 11, 2019 08:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CallumHoward/77173c1762dba6e6c659ab97cf68532e to your computer and use it in GitHub Desktop.
Save CallumHoward/77173c1762dba6e6c659ab97cf68532e to your computer and use it in GitHub Desktop.
C++ Course

C++ Course

Contents

Resources

Week 1

Week 2

Week 3

Week 4

Week 5

Week 6

Week 7

Week 8

@CallumHoward
Copy link
Author

Feel free to add questions and discussions here, just sign in with GitHub to comment!

@ChelseaShannon
Copy link

ChelseaShannon commented May 11, 2019

Question 1: - I can't remember if we already covered this. Sorry if we did.
Is there much difference between printf and std::cout? Should we have a preference?
The latter seems more widely used in our examples. But the following was mentioned in one of the above exercises.
"Note: You can also use cin and cout instead of scanf and printf; however, if you are taking a million numbers as input and printing a million lines, it is faster to use scanf and printf."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment