Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters

Reply
 
Thread Tools

static variables in class member functions
Old 21.09.2002, 09:33   #1
hov
В бой аргхххххххх!
 
hov's Avatar
 
Join Date: 09 2002
Location: Vik, Medieval Norway
Age: 42
Posts: 1,513
Rep Power: 5
Post static variables in class member functions

Example code

Code:
  
class aaa
{
public:
   f()
   {
       static int tiv=5;
   }
};
Asem vor ashxatacneluc heto parzvec vor bolor objectneri hamar pahvuma tiv-i mi hat kopia. Orinak ete mi objekti mejic tiv++; anes heto mi urish objecti mejic cout << tiv; kstanas mekov metsatsrats arjeq. Aisinq voncvor sovorakan class-i andam static popoxakany.
Hetaqrqir klini mi qich manramasn bacatrutiunner lsel.

Hov.
__________________
Rock Hovhannes.

Дневник
Stryfe.Am - Coming Soon!
Reply




Реклама:
реклама

All times are GMT. The time now is 00:44.
Top

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.