Fancorico  Hunt

Fancorico Hunt

1592894872

C++ Futures and Promises for beginners

What are futures and promises and why do we need them?

We need futures and promises for asynchronous execution. I always visualize it to be like a communication channel. Probably the example that has stuck in my head is from Arthur O’Dwyer’s video of Pat the Postman and Frosty the sleepy snowman and their adventure with the mailbox.

It goes like this -

Pat is going to deliver the letter, Frosty is waiting for a letter. Frosty could use the polling mechanism and check the mailbox every 10 seconds, but frosty is lazy and prefers to sleep.

So, they come up with a mechanism, Frosty sleeps next to the mailbox, whenever Pat comes, she puts the letter in the mailbox and clashes her cymbals and goes away. This wakes Frosty up and now he has full access to the mailbox.

(In case you did not realize it P in Pat is for Promise and F in Frosty is for Future)

This is image title

#cplusplus

What is GEEK

Buddha Community

C++ Futures and Promises for beginners
Sival Alethea

Sival Alethea

1624305600

C++ Tutorial for Beginners - Full Course. DO NOT MISS!!!

This course will give you a full introduction into all of the core concepts in C++.
⭐️ Contents ⭐
⌨️ (0:00:00) Introduction
⌨️ (0:01:38) Windows Installation
⌨️ (0:04:54) Mac Installation
⌨️ (0:08:44) Setup & Hello World
⌨️ (0:12:29) Drawing a Shape
⌨️ (0:19:55) Variables
⌨️ (0:31:43) Data Types
⌨️ (0:39:15) Working With Strings
⌨️ (0:49:00) Working With Numbers
⌨️ (0:59:41) Getting User Input
⌨️ (1:05:32) Building a Calculator
⌨️ (1:09:28) Building a Mad Libs
⌨️ (1:13:45) Arrays
⌨️ (1:20:03) Functions
⌨️ (1:29:47) Return Statement
⌨️ (1:35:22) If Statements
⌨️ (1:47:15) If Statements (con’t)
⌨️ (1:55:58) Building a Better Calculator
⌨️ (2:02:20) Switch Statements
⌨️ (2:10:47) While Loops
⌨️ (2:18:53) Building a Guessing Game
⌨️ (2:29:18) For Loops
⌨️ (2:38:32) Exponent Function
⌨️ (2:45:21) 2d Arrays & Nested Loops
⌨️ (2:54:55) Comments
⌨️ (2:59:11) Pointers
⌨️ (3:13:26) Classes & Objects
⌨️ (3:25:40) Constructor Functions
⌨️ (3:34:41) Object Functions
⌨️ (3:41:43) Getters & Setters
⌨️ (3:54:04) Inheritance

Course developed by Mike Dane. Check out his YouTube channel for more great programming
📺 The video in this post was made by freeCodeCamp.org
The origin of the article: https://www.youtube.com/watch?v=vLnPwxZdW4Y&list=PLWKjhJtqVAblfum5WiQblKPwIbqYXkDoC&index=10
🔥 If you’re a beginner. I believe the article below will be useful to you ☞ What You Should Know Before Investing in Cryptocurrency - For Beginner
⭐ ⭐ ⭐The project is of interest to the community. Join to Get free ‘GEEK coin’ (GEEKCASH coin)!
☞ **-----CLICK HERE-----**⭐ ⭐ ⭐
Thanks for visiting and watching! Please don’t forget to leave a like, comment and share!

#c++ #c++ tutorial #c++ tutorial for beginners #c++ tutorial for beginners - full course #core concepts in c++.

Tamale  Moses

Tamale Moses

1624240146

How to Run C/C++ in Sublime Text?

C and C++ are the most powerful programming language in the world. Most of the super fast and complex libraries and algorithms are written in C or C++. Most powerful Kernel programs are also written in C. So, there is no way to skip it.

In programming competitions, most programmers prefer to write code in C or C++. Tourist is considered the worlds top programming contestant of all ages who write code in C++.

During programming competitions, programmers prefer to use a lightweight editor to focus on coding and algorithm designing. VimSublime Text, and Notepad++ are the most common editors for us. Apart from the competition, many software developers and professionals love to use Sublime Text just because of its flexibility.

I have discussed the steps we need to complete in this blog post before running a C/C++ code in Sublime Text. We will take the inputs from an input file and print outputs to an output file without using freopen file related functions in C/C++.

#cpp #c #c-programming #sublimetext #c++ #c/c++

Dicey Issues in C/C++

If you are familiar with C/C++then you must have come across some unusual things and if you haven’t, then you are about to. The below codes are checked twice before adding, so feel free to share this article with your friends. The following displays some of the issues:

  1. Using multiple variables in the print function
  2. Comparing Signed integer with unsigned integer
  3. Putting a semicolon at the end of the loop statement
  4. C preprocessor doesn’t need a semicolon
  5. Size of the string matters
  6. Macros and equations aren’t good friends
  7. Never compare Floating data type with double data type
  8. Arrays have a boundary
  9. Character constants are different from string literals
  10. Difference between single(=) and double(==) equal signs.

The below code generates no error since a print function can take any number of inputs but creates a mismatch with the variables. The print function is used to display characters, strings, integers, float, octal, and hexadecimal values onto the output screen. The format specifier is used to display the value of a variable.

  1. %d indicates Integer Format Specifier
  2. %f indicates Float Format Specifier
  3. %c indicates Character Format Specifier
  4. %s indicates String Format Specifier
  5. %u indicates Unsigned Integer Format Specifier
  6. %ld indicates Long Int Format Specifier

Image for post


A signed integer is a 32-bit datum that encodes an integer in the range [-2147483648 to 2147483647]. An unsigned integer is a 32-bit datum that encodes a non-negative integer in the range [0 to 4294967295]. The signed integer is represented in twos-complement notation. In the below code the signed integer will be converted to the maximum unsigned integer then compared with the unsigned integer.

Image for post

#problems-with-c #dicey-issues-in-c #c-programming #c++ #c #cplusplus

Sadie  Ratke

Sadie Ratke

1589837640

C++ Tutorial for Beginners - C++ Structures | Struct declaration

Welcome to this course on C++ Tutorial for Beginners. In this video we will see How to use C++ Structures. A struct (or structure) allows us to group variables of different data types together into a single unit. In this video we will see c++ structure with example.

C++ is general purpose, compiled, object-oriented programming language and its concepts served as the basis for several other languages such as Java, Python, Ruby, Perl etc.

The goal of this course is to provide you with a working knowledge of C++. We’ll start with the basics, including syntax, operators, loops, and functions. This Course will explain you how to use data structures and create your own Functions. This Course will show you the details of the powerful object and template systems so you can create useful classes and objects.

#c #c# #c++ #programming-c

Learn C# Basics - Complete C# Tutorial For Beginners

In this C# tutorial for complete beginners you will learn C# programming from scratch. We hope you enjoy our C Sharp beginners tutorial!
tutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
This C# tutorial for complete beginners teaches you the fundamental basics of C# (C Sharp) and the powerful .NET framework. If you want to get into IT, develop games, apps or desktop applications this is the perfect place for you.

Youtube channel: tutorialsEU - https://www.youtube.com/watch?v=UKaZ2S4AJAA

#c #c# #c++ #programming-c