Home > Back-end >  Consult a basic question!
Consult a basic question!

Time:01-19


So there's a phrase such as x1. CPP inside the

Int number1=10;


Then I need to x2. CPP calls inside the number1 should be how to write



CodePudding user response:

Extern int number1.

CodePudding user response:

See x1. CPP that sentence write in where, if in a function, the other file, even don't have access to other functions of the current file
If it is a global variable, the x2. Add a CPP extern int number; You can access
  • Related