background preloader

C/C++

Facebook Twitter

Bartek's coding blog: Lambdas: From C++11 to C++20, Part 1. Lambda expressions are one of the most powerful additions to C++11, and they continue to evolve with each new C++ language standard.

Bartek's coding blog: Lambdas: From C++11 to C++20, Part 1

In this article, we’ll go through history and see the evolution of this crucial part of modern C++. Intro At one of our local C++ User Group meeting, we had a live coding session about the “history” of lambda expressions. Dos and Don'ts · Modern CMake. [Tutorial] Learn to make a game in C++! : learnprogramming. Bgnet A4. Cours réseau C++ - TCP - Un premier serveur : mini-serveur. Il s'agira d'un « miniserveur » : un serveur destiné à gérer un faible nombre de connexions, de l'ordre de la dizaine ou centaine - mais cela peut varier selon le matériel et la puissance possédés.

Cours réseau C++ - TCP - Un premier serveur : mini-serveur

Le serveur tournera sur une machine cliente, un joueur fera office de serveur, et ne sera pas exécuté sur une machine distante dédiée. Il devra donc pouvoir tourner en parallèle du programme principal et ne devra pas bloquer celui-ci. Il s'agit du cas où un joueur fait office d'hôte. Spread Knowledge in Your Company With Your "Daily C++" - Fluent C++

The Dailies are a practice that changed my life as a software developer.

Spread Knowledge in Your Company With Your "Daily C++" - Fluent C++

My goal is to make you benefit from them too, so that you get better in C++, help others get better too, and have a real impact on the quality of your company’s codeline. What Dailies are, and why you should do them The Dailies are a new format of presentation designed for people who need to learn a lot of things and that don’t have much time. And software developers are often exactly in that situation. In short, dailies are presentations of 10 minutes, given every day. S Guide to C Programming. (Click here for other guides!)

s Guide to C Programming

What's Here for Readers: HTML:One section per page (read online) All on one page (read online) One section per page (tarball for download) One section per page (zipfile for download) All on one page (tarball for download) All on one page (zipfile for download) Learning C++ Best Practices - O'Reilly Media. Fffaraz/awesome-cpp: A curated list of awesome C/C++ frameworks, libraries, resources, and shiny things. Inspired by awesome-... stuff. Bartek's coding blog: C++ 17 Features. This year we’ll get a new version of C++: C++17!

Bartek's coding blog: C++ 17 Features

In this mega long article I’ve built a list of all features of the new standard. Have a look and see what we get! Intro Updated: This post was updated 16th June 2017. C++ Tutorial Keywords - 2017. Bogotobogo.com site search: main() Q: What're the right forms of main()?

C++ Tutorial Keywords - 2017

Void main()static int main()int main(char** argv, int argc)int main(int argc, char** argv)int main()inline int main(int argc, char* argv[])int main(char* argv[], int argc)int main(int argc, char* argv[])int main(int argc, char* argv[], char* options[]) Coursera. Introduction à la programmation orientée objet (en C++) A guide to getting started with boost. Boost::asio is "is a cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach.

A guide to getting started with boost

" It currently has many users and is part of the boost family of libraries. Before getting started, we will want to read over the boost::asio overview. It covers a lot of useful information that we should understand the basics of first. This guide is not meant to teach the complete ins and outs of boost::asio library; that is what the documentation is for! This guide will point us in a practical direction for learning the library and getting on our way to using it in our own applications. In addition, we might also want to check out the blog of the boost::asio author as well.

Chip8

GitHub - Microsoft/cpprestsdk: The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services. #include is evil : Comment démêler un graphe d’inclusions en C++ ? 5 février 2008 – 14:46.

#include is evil : Comment démêler un graphe d’inclusions en C++ ?

Asio C++ library. Asio is a cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach.

asio C++ library

What does Asio provide? Asio provides the basic building blocks for C++ networking, concurrency and other kinds of I/O. What kind of applications can use Asio? Asio is used in all kinds of applications, from phone apps to the world's fastest share markets. Asio and Boost.Asio Asio comes in two variants: (non-Boost) Asio and Boost.Asio. License Asio is released under the Boost Software License. C Right-Left Rule (Rick Ord's CSE 30 - UC San Diego) The "right-left" rule is a completely regular rule for deciphering C declarations.

C Right-Left Rule (Rick Ord's CSE 30 - UC San Diego)

It can also be useful in creating them. First, symbols. Read * as "pointer to" - always on the left side [] as "array of" - always on the right side () as "function returning" - always on the right side as you encounter them in the declaration. STEP 1 ------ Find the identifier. This is your starting point. Fluent C++ posts - Fluent C++ Here are all the posts published or planned so far on Fluent C++. I’ll add more, but if you have any suggestion about what would be useful for you to see added to this list, then by all means, let me know! The purpose of this blog is to bring you value, by providing you with tools and insights about expressive code in C++. So tell me how I could be super useful to you! About Attitude The primary focus of the blog is on code so this section is slimmer than the rest, but it’s always useful to consider how to approach code from time to times.

C++ - how can I get a list of files in a folder in which the files are sorted with modified date time. Thread. Public member function Construct thread Constructs a thread object: (1) default constructor Construct a thread object that does not represent any thread of execution. (2) initialization constructor Construct a thread object that represents a new joinable thread of execution. C++11 - Lambda Closures, the Definitive Guide. One of the most exciting features of C++11 is ability to create lambda functions (sometimes referred to as closures). What does this mean? A lambda function is a function that you can write inline in your source code (usually to pass in to another function, similar to the idea of a functor or function pointer). With lambda, creating quick functions has become much easier, and this means that not only can you start using lambda when you'd previously have needed to write a separate named function, but you can start writing more code that relies on the ability to create quick-and-easy functions.

In this article, I'll first explain why lambda is great--with some examples--and then I'll walk through all of the details of what you can do with lambda. Why Lambdas Rock Imagine that you had an address book class, and you want to be able to provide a search function. Anyone can pass a function into the findMatchingAddresses that contains logic for finding a particular function. Basic Lambda Syntax. Boost.Python - 1.61.0. David Abrahams Stefan Seefeld Copyright © 2002-2015 David Abrahams, Stefan Seefeld. Boost.python/HowTo. How to expose... static class data members object x_class = class_<X>("X") .def( ... ) ... ; x_class.attr("fu") = X::fu; x_class.attr("bar") = X::bar; ...

Since version 1.30 you can use class_ method: .add_static_property("name", &fget [,&fset]) static class functions It's likely to be in 1.30 release. Meanwhile you should do something which mirrors pure Python: Creating a CMake Find Package. Tutorial. The most basic project is an executable built from source code files. For simple projects a two line CMakeLists.txt file is all that is required. This will be the starting point for our tutorial. The CMakeLists.txt file looks like: cmake_minimum_required (VERSION 2.6) project (Tutorial) add_executable(Tutorial tutorial.cxx) Note that this example uses lower case commands in the CMakeLists.txt file. Adding a Version Number and Configured Header File. CMake Howto. This document provides a quick overview to CMake — a cross-platform alternative to linux Makefiles and make. For help on using make and Makefiles without CMake, please see Prof.

Newhall's documentation. This document was written for cmake version 2.6, which is installed on the lab machines via stow (as of Jan 2009). Why CMake I personally like CMake because is it seems more intuitive than writing a standard Makefile. . $ tar xzvf cmake.tgz $ cd cmake $ ls CMakeLists.txt w01-cpp/ CMakeLists.txt. CMake Tutorial. Le C en 20 heures – Framabook.

My Most Important C++ Aha! Moments...Ever. [Tutorial] Learn to make a game in C++! : learnprogramming. C++ Programming - Bo Qian's Space. Multithreading in modern C++ C++ QT Samples ,C++ QT Library Examples. Bit manipulation - What are bitwise shift (bit-shift) operators and how do they work? GitHub - alexhultman/uWebSockets: Highly scalable WebSocket server library. Lesson 1: Bresenham’s Line Drawing Algorithm · ssloy/tinyrenderer Wiki. First attempt The goal of the first lesson is to render the wire mesh. To do this, we should learn how to draw line segments. We can simply read what Bresenham’s line algorithm is, but let’s write code ourselves. How does the simplest code that draws a line segment between (x0, y0) and (x1, y1) points look like? Apparently, something like this : void line(int x0, int y0, int x1, int y1, TGAImage &image, TGAColor color) { for (float t=0.; t<1.; t+=.01) { int x = x0*(1. C++ Qt Programming.

Upload. C++ faq - The Definitive C++ Book Guide and List. The Definitive C Book Guide and List. The most dangerous function in the C/C++ world. How to make debugging C++ errors easier. CppCon 2015: Bjarne Stroustrup “Writing Good C++14” Smooth Face Tracking with OpenCV. Many of the applications Synaptitude use something called face detection and gaze detection or eye detection. Essentially, our applications track your face, and where you are looking. Rogue Ninja support in CLion @ Antisocial programmer's blog. Intégration d'OpenGL dans une interface Qt.

C++ Today: The Beast is Back : cpp. Unity 5 is free - is jMonkeyEngine still relevant?jMonkeyEngine. C++ - When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used? Les opérateurs du C++ Five Popular Myths about C++, Part 1 : Standard C++ via reddit.com. PDF Découvrez Ogre 3D. Nos cours. La const-correctness expliquée aux Zéros. 81: Constant Optimization? [C++] Les templates. Langage C++ - Les pointeurs. #include is evil : Comment démêler un graphe d’inclusions en C++ ? The Boost C++ Libraries. Cppreference.com. C9 Lectures: Stephan T. Lavavej - Standard Template Library (STL), 1 of n. Efficient Programming with Components. Modern C++: What You Need to Know via reddit.com. C++ Style Languages: C++, Objective-C, Java, C# C++ Quick Reference Sheet (Cheat Sheet) - C++ Tutorials.

C++ faq - The Definitive C++ Book Guide and List - Stack Overflow. The Definitive C++ Book Guide and List via reddit.com. Qt Training — Learn from the Experts. Cours. Cours. Découverte de la programmation par contraintes. Débugger avec Qt. Créez des programmes en 3D avec OpenGL. Compiler facilement Qt. Compiler et utiliser des applications développées avec Qt sans DLL. [C++] Les conversions de types. [C++] Les templates. Apprenez à programmer en C ! Allocation dynamique en C - complément.