Learn C++ in ? Minutes

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

Came across this during my travels around the internet...

 

https://learnxinyminutes.com/doc...

 

It'll depend on your reading speed but you might read all of that in perhaps 15-20 minutes?

 

Now I'm not saying you will be a total C++ expert after that (I'm still a "beginner" and have been doing it for about a decade!) but you will get a good idea of some of the "extra things" you can achieve in C++ that are what makes it "better" than C.

 

There's a ton of functionality in C++ but I thought that page made a pretty good stab at picking out the bits you might probably use most often.

 

Worth a read if you might consider moving on to C++.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There's one for C, too: https://learnxinyminutes.com/docs/c/

 

and Python: https://learnxinyminutes.com/docs/python/

 

(and many, many more...)

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yet no page to drill assembler through my thick skull  angry

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

W4GNS. wrote:

Yet no page to drill assembler through my thick skull  angry

Which is kind of the exact reason people use C/C++/Python/etc these days! For high level languages the semantics (apart from things like interrupt handlers) are 100% standardized so you can take the same programming knowledge to anything from the lowliest Attiny4 to a Cray-XMP. But for Asm it's quite different syntax for every underlying architecture.

 

(sorry for C/Asm war - I use both - but these days the only reason for Asm is for things hugely timing critical like video generation or WS2812 LED strings or whatever)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

The worst experience ever I learn a programming language is C!!!

 

Its naming is completely misleading!!!

 

Structure is not a structure!  It is simply an "Order Set of Data"! angry

 

Class is not a Class!  It is simply an "Order Set of Data"! angry

 

Computer guys, please do not invent new term if it can be expressed in daily words!  angry

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

HKPhysicist wrote:
The worst experience ever I learn a programming language is C ... Class is not a Class!

Errr ... C does not have "classes" at all!

 

Structure is not a structure!

Really? How so?

 

So how would you define a "structure" ?

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:

 

learnxinyminutes

 

 

If you know what is preventing from learning a programming language - just say the opposite.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Those are pretty good. One "little" program that demonstrates so many things (with good - useful - comments)!

 

Jim

 

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:

Came across this during my travels around the internet...

 

https://learnxinyminutes.com/doc...

 

It'll depend on your reading speed but you might read all of that in perhaps 15-20 minutes?

 

It makes a lot of terminological and factual mistakes when it goes into specifics. What I don't understand is why it even thought necessary to go into some strange niche specifics. For example, it claims that `nullptr` is convertible to `bool` in 

 

bool* pt = new bool;
// There is an exception made for bools.
// This is to allow you to test for null pointers with if(!ptr),
// but as a consequence you can assign nullptr to a bool directly!
*pt = nullptr;  // This still compiles, even though '*pt' is a bool!

This is not true. The implicit `nullptr` to `bool` conversion is only possible in direct-initialization contexts. The above assignment will not compile in modern C++.

 

P.S. Apparently the tutorial is written with C++11 in mind (and we are way past C++11 already).

Dessine-moi un mouton

Last Edited: Thu. Dec 16, 2021 - 07:45 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

We might try to deny, but the C-language is a first step in non-human intelligence.

C++ is a natural super-extension, which tends to be in friendly-relations with us.

Actually, C use a human brain for pre-processor, for how long, I do not know.
Yet, I think that is good to be in friendly terms with this C-beings, for a mere survival.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

grohote wrote:
C++ is a natural super-extension, which tends to be in friendly-relations with us.

 

This language has become far too complex for that.