added double jump and sitting state

This commit is contained in:
nihonium 2023-02-25 19:34:24 +03:00
parent 2e5c5a8dde
commit 90d07dde3f
Signed by: nihonium
GPG key ID: 0251623741027CFC
148 changed files with 13050 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#include <iostream>
using std::cout, std::endl;
struct Book {
char title[100];
int pages;
float price;
};
void addPrice(Book& b, float x) {
b.price += x;
}
int main() {
Book b = {"One Hundred Years of Solitude", 456, 1200};
float x = 15.6;
addPrice(b, x);
cout << b.price << endl;
}