define it in s1.c as a global variable, i.e. in the very beginning before any functions. in s2.c, define "extern int xxx", then you can modify it in s2.c
This post has been archived. It cannot be replied.
Page address has been copied.
To share, click to copy page address.
Share Online by QR Code
Back To Topic:
C++ help, simple question
Back To Forum: