29 lines
691 B
C++
29 lines
691 B
C++
#pragma once
|
|
#include "hardware.h"
|
|
using namespace std;
|
|
|
|
CPU i75820k;
|
|
|
|
|
|
// 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;
|
|
|
|
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;
|
|
};
|