hardwaredb/main.cpp
2025-01-28 12:17:10 -07:00

31 lines
836 B
C++

#include <iostream>
#include <string>
#include "lists/hardware.h"
#include "lists/cpu.h"
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;
*/
// referencing the function a7800x3d from cpu.h
a7800x3d("AMD");
cout << "Setting 7800x3d Manufacturer to AMD : " << a7800x3d("test") << endl;
cout << "Setting the clock speeds to: Main: " << a7800x3d(4.8,5.2) << endl;
// 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;
system("sleep 3s");
return 0;
}