Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////
- //basic programming cheat sheet///
- //////////////////////////////////
- void DoSomething(){ // void means function! without returns
- int getal; //declares a variable of type int
- getal = 5; //set variable to 5
- getal = DoSomethingElse(getal);
- /// oeveel is getal ? :D
- }
- int DoSomethingElse(int getal){ // a function that returns a int and requires a int
- int newgetal = getal + 2;
- return newgetal;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement