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

clinux (C/Linux)
(#289369@0)
2001-12-7 -05:00

回到话题: C++ help, simple question

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT杂谈

URL:   
http://www.rolia.net/zh/post.php?f=0&p=289369