Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

5 New Posts About C, C++, And Python

5 New Posts About C C++ And Python

Hello C++ Developers. In today’s round-up of recent posts on LearnCPlusPlus.org, we have 5 new C and C++ posts with some very simple examples that can be used with a modern C++ Compiler that supports C++17. We also dabble a little with Python too, just for good measure!

Why is Python useful to C++ developers?

Python is one of my latest programming languages that I had to learn. I tried to stay avoid it for a long time – it’s a long story, so hear me out! You may not know, but the first release of TensorFlow, the well-known machine learning library, used C++ as the language. The TensorFlow team moved to Python. Then a ‘Lego Mindstorms course for students’ forced me to learn micro Python 4-5 years ago. Even though in my daily work I specialize in AI areas still I stayed away from using Python too often and my primary programming language is mostly C++ usually with C++ Builder.



Python is hugely popular and has some really useful libraries. It is one of the favorite languages of new-generation programmers, including my son 🙂 Python is simple, and easy to learn, and it’s particularly strong in the field of AI and machine learning (ML). If you are a C++ developer, you might want your users to be able to analyze data with AI modules or frameworks written in the Python language in your applications. Let’s imagine you want the users to carry out a few buttons clicks to do some heavy AI analysis. That way you get the best of both worlds by having the raw speed and power of C++ which can run Python modules and make use of their vast ecosystem of libraries and routines. Do you know, you can use Python language in C++ very easily? This week, we will show how you can integrate your C++ application with the Python language. 

Do you want to learn more about to create beautiful Python GUI applications?

If you have not visited before you should definitely visit the PythonGUI.org website which is a superb resource with lots of great information, full working examples and a whole host of tips, tricks, and free libraries to help you create gorgeous GUI application with Python.

Here’s a sample post from PythonGUI.org about some recent updates about Python4Delphi and the Delphi-Python EcoSystem.

What are the important features of C and C++ programming?

In the programming world today, Python programming language is very popular – perhaps second only to C++. Python is easy to use, and it is more popular because of support from big companies like Google. One of the areas Python is particularly successful are with libraries and frameworks for AI technology and machine learning. It is a great object-oriented, interpreted, and interactive programming language. Python has very clear syntax. It has modules, classes, exceptions, very high-level dynamic data types, and dynamic typing. There are interfaces to many system calls and libraries, as well as to various windowing systems. New built-in Python modules are easily written in C or C++. Python is also usable as a scripting extension for applications written in other languages that benefit from its ease of use. In the first post, we will show how you can integrate your C++ application with the Python language.

This post describes a simple way to run Python scripts in your C++ programs https://learncplusplus.org/how-to-use-the-python-language-in-a-c-app/

What new C++ posts are there today?

The C++ language has millions and millions of keywords, and commands with every new library or feature addition. In programming, it is hard to memorize all of these keywords. Sometimes when we are using some keywords, we may have some questions about them, because we want to learn and memorize them logically. If you are using C or C++, we may have these questions about some type declarations, i.e. wchar_ttime_tsize_t, etc. Why do they have _t (underscore-t) at the end of them? What does a type followed by a _t mean in C++? In the next post, we explain why some types are followed by _t and some are not. https://learncplusplus.org/what-is-_t-underscore-t-in-c-why-some-types-followed-by-_t/

Operating Systems consist of a lot of system commands, and In C++, we can run system commands by using the std::system() command. In C++ Builder, we can retrieve the output of these commands into components, for example into a Memo (TMemo), or into a ListView (TList). This allows you to use the benefits of operating system commands in activities such as Windows development. You can use any other back-end applications, including other installed programming languages like Python, Node.js, and so on. In the next post, we explain how to execute a command and get the output in C++ Builder.

C and C++ are arguably the most powerful programming languages that can be used to develop native C++ iOS apps for the ARM based Apple mobile devices. Most C++ compilers support the C language, that means you can code in C language in a C++ IDE. In the next post, we explain how you can use C language on iOS applications. https://learncplusplus.org/how-to-learn-c-programming-2/

Despite all the support from the operating system and powerful compilers which spot errors and ‘not responding’ loops, sometimes our C++ apps need to be made to terminate. Alternatively, we sometimes need to indicate that the program has run and exited successfully – or unsuccessfully – from whatever the task the app was undertaking. In the next post we explain how you can we exit from a running C or C++ app in iOS or in any other operating systems. https://learncplusplus.org/how-to-exit-from-a-program-in-c-and-c/

Learn with examples about C and C++ today

LearnCPlusPlus.org has been producing daily articles for more than 2 years at the time of writing and is packed full of educational posts about C and C++. Here are our post picks for today.

We like to hear your feedback. You motivate us so much with your likes and comments on social media (find us on Facebook, LinkedIn, Reddit, Twitter and all over) and here on the blogs too. Thank you for your valuable comments and questions. All of them help improve the quality of our future posts and new code in these posts.

We have a lot of unique posts waiting to come. We keep adding new topics every week about C++ in general and specific topics for C++ Builder, Dev-C++, and for the other C++ compilers. Please keep following our LearnCPlusPlus.org website for the latest posts and updates. Feel free to comment and share with your colleagues, students, members – knowledge is power, and knowledge shared is empowering.

Learn what’s new next coming C++ Builder

According to David’s post, C++ Builder is aiming to include some amazing features; CLANG v15, support for C++20 and a lot of C++23 features, Win64 primary OS, new code completion, Visual Assist C++ navigation and refactoring, and lots more.

Disclaimer: All new features and improvements discussed in posts regarding future versions of RAD Studio are not committed until completed, and GA released.

Note also that a month ago, Embarcadero also announced the release of RAD Studio 11 Alexandria Release 3, also known as RAD Studio 11.3, along with Delphi 11.3 and C++Builder 11.3. This release is focused on quality and improvements, building on the great new features in RAD Studio 11 Alexandria three previous releases.

C++ Builder is the easiest and fastest C and C++ IDE for building simple or professional applications on the Windows, MacOS, iOS & Android operating systems. It is also easy for beginners to learn with its wide range of samples, tutorials, help files, and LSP support for code. RAD Studio’s C++ Builder version comes with the award-winning VCL framework for high-performance native Windows apps and the powerful FireMonkey (FMX) framework for cross-platform UIs.

There is a free C++ Builder Community Edition for students, beginners, and startups; it can be downloaded from here. For professional developers, there are Professional, Architect, or Enterprise version.

Exit mobile version