[LC++]declaring and using manipulating global variables

Julien Patrick Claassen julien at c-lab.de
Fri May 16 09:17:02 UTC 2003

  This is slightly [OT], because I'm interested in something more c-specific.
  I want to create a global variable and manipulate it in several functions,
so that it is globally changed. I wanted to do it in a nice way(meaning no
dirty temporary solution). At the moment I create a variable in main() and
pass its address to the functions, which need to edit its value. But I'm not
very happy with this.
  Thanks for any help.
  Kindest regards

Julien Patrick Claassen
jclaassen at gmx.de
julien at c-lab.de

Fuerstenallee 11
33102 Paderborn

Phone: (+49) 5251 60 6060
Fax: (+49) 5251 60 6065


More information about the tuxCPProgramming mailing list