29 lines
691 B
C
Raw Normal View History

#pragma once
#include "hardware.h"
2025-01-28 13:38:55 -07:00
using namespace std;
2025-01-28 13:38:55 -07:00
CPU i75820k;
2025-01-28 13:38:55 -07:00
// Testing a function to create the class - cant access the class from main function though.
void a7800x3d(){
CPU A7800x3d;
cout << "Initial Main Clock: " << A7800x3d.mainclock << "\n" << A7800x3d.boostclock << endl;
};
void a7800x3d(float mainclock, float boostclock){
CPU A7800x3d;
A7800x3d.mainclock = mainclock;
A7800x3d.boostclock = boostclock;
2025-01-28 13:38:55 -07:00
std::cout << "Main clock is: " << A7800x3d.mainclock << "\nBoost clock is: " << A7800x3d.boostclock << endl;
// return mainclock, boostclock;
};
std::string a7800x3d(std::string man){
CPU A7800x3d;
A7800x3d.manufacturer = "AMD";
return man;
};