restructured

This commit is contained in:
nihonium 2022-10-22 18:26:37 +03:00
parent c495b7c47f
commit 66cefdfd63
Signed by: nihonium
GPG key ID: 0251623741027CFC
204 changed files with 538 additions and 13662 deletions

View file

@ -0,0 +1,20 @@
#include <iostream>
using std::cout, std::endl;
struct Book {
char title[100];
int pages;
float price;
};
bool isExpensive(const Book& b) {
if (b.price > 1000) {
return true;
}
return false;
}
int main() {
Book b = {"One Hundred Years of Solitude", 456, 1200};
cout << isExpensive(b) << endl;
}