I have a school project that requires to do a c++ program that shows the informations on the hard-disk. Informations like: the number of partitions and their names, partitions capacity, etc. My teacher said that can be done in about 15 lines. I have tried some things but nothing worked. Can you help me with this one, please? I am new in C++.
C++ itself knows nothing about hard-drives. Functions for fetching information on that sort of thing may be provided by your operating system. What operating system are you using?
drive letter: C
mount name: \\?\Volume{eac8793c-84d9-11e5-80b4-806e6f6e6963}\
device name: \Device\HarddiskVolume2
total bytes: 214379261952
used bytes: 29090553856
free bytes: 185288708096