hardwaredb/main.cpp

43 lines
1.1 KiB
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"
2025-01-28 10:06:50 -07:00
2025-01-28 13:38:55 -07:00
void setupCPU(std::string model, float mainclock, int cores){
i75820k.model = model;
i75820k.mainclock = mainclock;
i75820k.cores = cores;
};
//
2025-01-28 10:06:50 -07:00
int main() {
using namespace std;
/* Trying to declare a class with name A7800x3d
CPU A7800x3d;
A7800x3d.manufacturer = "AMD";
A7800x3d.ReleasedYear = 2024;
A7800x3d.architecture = "Zen 4";
A7800x3d.boostclock = 5.2;
A7800x3d.mainclock = 4.8;
*/
2025-01-28 13:38:55 -07:00
// referencing the function a7800x3d from cpu.h and initialize the class
// a7800x3d();
// a7800x3d(4.8, 5.2);
setupCPU("i75820k", 3.2, 6);
cout << "cores: " << i75820k.cores << endl;
2025-01-28 10:06:50 -07:00
2025-01-28 13:38:55 -07:00
// cout << "Setting 7800x3d Manufacturer to AMD : " << a7800x3d("test") << endl;
// cout << "Setting the clock speeds to: Main: " << a7800x3d(4.8,5.2) << endl;
2025-01-28 10:06:50 -07:00
// cout << "The Manufacturer is: " << A7800x3d.manufacturer << endl;
// cout << "The Main Clock Speed is: " << A7800x3d.mainclock << endl;
// cout << "The Boost Clock Speed is: " << A7800x3d.boostclock << endl;
2025-01-28 10:06:50 -07:00
system("sleep 3s");
return 0;
}