hello, simple stupid question, for pros, i have 2 cpp files, 1 has a function, the other is the main function, the 1 cpp file that has the main of course needs to have a declare of the function from the other cpp file so the function exists, yes i would use header, but i know if its (see below), what if it is an int and has 2 parameters, how do i declare that? can i get an example? or string?
Basically you put exactly what you would put if you were about to define a function (i.e. add the body)
Except it isn't necessary to specify parameter names if all you're doing is declaring it.
would i just put this above into the other cpp file just like above?