#include #include #include "lists/hardware.h" #include "lists/cpu.h" #include "include/setcpu.h" #include "include/sethardware.h" void* ptr = &A7800x3d; int main() { using namespace std; /* Error Checking cout << "Main pointer address for A7800x3d: " << &A7800x3d << endl; cout << "A7800x3d pointer before the value set is :" << &A7800x3d->manufacturer << endl; cout << "A7800x3d value before change is: " << A7800x3d->manufacturer << endl; A7800x3d->manufacturer = "AMD"; cout << "A7800x3d manufacturer is: " << A7800x3d->manufacturer << endl; cout << "A7800x3d pointer after the change to AMD is: " << &A7800x3d->manufacturer << endl; */ // A7800x3d->manufacturer = "AMD"; // Cat out both CPU's that have been created for sanity cout << "i75820k manufacturer is: " << Ii75820k->manufacturer << endl; cout << "A7800x3d manufacturer is: " << A7800x3d->manufacturer << endl; cout << "Lets try the setCPU function!\n"; cout << "A7800x3d main clock speed is: " << A7800x3d->mainclock << endl; setHardwaremanufacturer(A7800x3d, "AMD"); setCPUcores(A7800x3d, 8); setCPUthreads(A7800x3d, 16); setCPUclock(A7800x3d, 4.8, 5.1); // clock is base, boost cout << "A7800x3d new main clock speed is: " << A7800x3d->mainclock << endl; cout << "A7800x3d manufacturer is: " << A7800x3d->manufacturer << "\n\n\n"; // Start of Hardware Dictionary Test // Hardwaredictadd(A7800x3d, "manufacturer", "Ganome Himself"); system("sleep 3s"); return 0; }