which one do you prefer or think is better?
type 1:
type 2:Code:int main()
{
cout << "this is line 1" << endl;
cout << "this is line 2" << endl;
cout << "this is line 3" << endl;
cout << "this is line 4" << endl;
}
Code:void function(short unsigned int x)
{
cout<<"this is line " << x << endl;
}
int main()
{
function ( 1 );
function ( 2 );
function ( 3 );
function ( 4 );
}