The folowing program will not compile. It says
5 14 C:\C++ stuff\test\main.cpp [Error] expected initializer before 'add'
Can anybody tell me what this means?
In other words you need to have a type for your function parameters. Think of them as just like any other variable you need to define their types so you can use them. Just remmber the parameters are only availuble inside of the functions scope.
The problem is here int function add(int a,int b) You do not need function in there if you want the function to be named add just have this int add(int a,int b)