|
#include <iostream>
using namespace std;
int k = 1;
int main ()
{
int i = 4;
// #####################################
int fun (int); // Note that the return type here is int
// #################################
fun (i);
cout << "(1)" << i << ',' << k << endl;
return 0;
}
// ############################################# ######
void fun (int m) // The type defined here is void,
// ¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥
{
m + = k;
k + = m;
{/// The braces are many
char k = 'B';
cout << "(2)" << char (k-'A ') << endl;
} ///// Ibid
cout << "(3)" << m << ',' << k << endl;
}
// It means that there is a function with the same name that has no life and starts to be defined
And a declared function is not defined |
|