hardwaredb/main.cpp
ganome 22f6da97f4
Wrote a setCPU() function to take of setting properties on CPU
Currently not working! Unable to reference the
model.properties(mainclock)
2025-01-28 15:51:35 -07:00

28 lines
648 B
C++

#include <iostream>
#include <string>
#include "lists/hardware.h"
#include "lists/cpu.h"
#include "include/setcpu.h"
int main() {
using namespace std;
// Set some variables for the spawned CPU's
A7800x3d.manufacturer = "AMD";
A7800x3d.model = "Ryzen 7 7800x3d";
i75820k.model = "i75820k";
i75820k.manufacturer = "Intel";
setCPU("i75820k", 3.2, 3.6);
cout << "The " << A7800x3d.model << "'s Manufacturer is: " << A7800x3d.manufacturer << endl;
cout << "The Main Clock Speed is: " << A7800x3d.mainclock << endl;
cout << "The Boost Clock Speed is: " << A7800x3d.boostclock << endl;
system("sleep 3s");
return 0;
}