consolidate all repos to one for archive
This commit is contained in:
11
semester_2/programiranje_2/naloga0701/Racunalnik.cpp
Normal file
11
semester_2/programiranje_2/naloga0701/Racunalnik.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
//
|
||||
// Created by Nik on 22/04/2022.
|
||||
//
|
||||
|
||||
#include "Racunalnik.h"
|
||||
|
||||
Racunalnik::Racunalnik(int poraba, int volumen) : poraba(poraba), volumen(volumen) {}
|
||||
|
||||
std::string Racunalnik::toString() const {
|
||||
return "Poraba:" + std::to_string(poraba) + "W Volumen:" + std::to_string(volumen) + " \n";
|
||||
}
|
||||
Reference in New Issue
Block a user