Hi,
I would like to know is it possible to use c++ code to control pc hardware?

what hardware are you referring to?

The short answer is "yes and no".

The C++ standard specifies no direct means of accessing hardware. However, with the help of non-standard techniques (which are operating system and hardware specific) it is possible to control hardware. Technically, those techniques are beyond scope of the C++ standard but, in practice, with support of suitable compilers and their libraries it is possible to find ways ....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.