C++Introduction to C++Language FeatureLearn C++

How To Include Or Exclude Trailing Backslashes On Windows

How can I add a trailing backslash to a path string? How can I remove trailing backslash from the end of path string? What is the C++ ExcludeTrailingBackslash method? What is the IncludeTrailingBackslash method? What is difference between the ExcludeTrailingBackslash and ExcludeTrailingPathDelimiter methods? What is the difference between IncludeTrailingBackslash and…
Read more
C++Introduction to C++Language FeatureLearn C++

How to Get Disk Information in C++ on Windows?

How can I get disk size information in C++ Builder? How can I get disk free size information in C++ Builder? How can I calculate free percentage of a disk? Let’s answer these questions. C++ has a lot of great libraries to operate on files, folders and disks. We can create or delete directories by using System Commands that we explained before in this post or we can use C++ standard…
Read more
C++C++11C++14C++17Introduction to C++Learn C++

How To Use Malloc() And Free() Functions In C/C++

How can we use memory in C and C++? How can I allocate something in memory? How can I manage memory dynamically? What kind of memory methods or functions are used for the Dynamic Memory Management? How can I use malloc()? How can I use free()? What is Static Memory Allocation? What is Dynamic Memory Allocation? What is difference between Static Memory Allocation and Dynamic Memory Allocation?
Read more
C++Introduction to C++Language FeatureLearn C++

How To Use ForceDirectories Method To Create Folders In C++

ForceDirectories Method (System:SysUtils:ForceDirectories) is a SysUtils Method listed in Disk And Directory Support Routines that creates a new directory, including the creation of parent directories as needed. ForceDirectories creates a new directory as specified in Dir, which must be a fully-qualified path name. If the directories given in the path do not yet exist, ForceDirectories attempts…
Read more