I'm just new to programming in general and I've just started the C++ tutorial but I'm not really sure if I understand what the code does..
DoesCode:#include <iostream>
using namespace std;
float function ( float x, float y );
int main()
{
float x;
float y;
cout<<"Please input two numbers to be multiplied: ";
cin>> x >> y;
cin.ignore();
cout<<"The product of your two numbers is "<< function ( x, y ) <<"\n";
cin.get();
}
float function ( float x, float y )
{
return x * y;
}
acces a libary? And if so what/what kind of libary?Code:#include <iostream>
And what doesdo? Does it acces a certain part of the libary iostream?Code:using namespace std;
sends a 0 (succes) or a 1 (failure) to the operating system. But what does () do?Code:int main()
And I dont really understand the chapter about Functions (I'm 15 still getting English at school) located here: http://www.cprogramming.com/tutorial/lesson4.html.
Can someone explain this part to me in a bit more understandeble English together with the programming terms so that i know what they mean?
Thank you.
(PS: I hope this post complies to the general forum rules.)