hardwaredb/main.cpp

34 lines
843 B
C++
Raw Normal View History

2025-01-28 10:06:50 -07:00
#include <iostream>
#include <string>
#include "lists/hardware.h"
#include "lists/cpu.h"
#include "include/setcpu.h"
2025-01-28 10:06:50 -07:00
void* ptr = &A7800x3d;
2025-01-28 10:06:50 -07:00
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";
2025-01-28 13:38:55 -07:00
setCPU("A7800x3d", 4.8, 5.2);
setCPU("i75820k", 3.2, 3.8);
// setCPU(A7800x3d, 4.8);
2025-01-28 10:06:50 -07:00
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;
cout << "\n\nThe pointer is: " << ptr << endl;
// cout << "The pointer is: " << *ptr.manufacturer << endl;
2025-01-28 10:06:50 -07:00
system("sleep 3s");
return 0;
}