Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int postac;
- void move(int x, int y) {
- postac += x;
- return; // zwraca 'nic' i kończy funkcje
- postac += y;
- }
- int dodawanie(int x, int y) { // argumenty funkcji - x i y
- int wynik = x + y;
- return wynik;
- }
- // Jeżeli piszesz ten sam kod drugi raz to napisz funkcje która ten kod realizuje
- using namespace std;
- namespace nauka {
- int x;
- int y;
- }
- namespace stdd {
- void cout(); // deklaracja
- void cout() { //definicja
- "chuj Ci w dupe";
- }
- }
- void main() {
- int wynik;
- wynik = dodawanie(5, 2);
- std::cout << wynik;
- std::cin.get();
- std::cin.get();
- return ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement