AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Languages, Compilers and Interpreters C,C++,C#,.NET,Java,PHP,Perl,SQL and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Sep 21, 2002, 09:29   #1
В бой аргхххххххх!
 
hov's Avatar
 
Join Date: Sep 2002
Location: Vik, Medieval Norway
Posts: 1,478
Rep Power: 6
Reputation: 42
Send a message via ICQ to hov
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!
hov is offline   Reply With Quote Quote selected
Old Sep 21, 2002, 15:35   #2
Administrator
 
greka's Avatar
 
Join Date: Sep 2001
Location: @work
Posts: 5,337
Rep Power: 10
Reputation: 23
Send a message via ICQ to greka
Post

>parzvec vor bolor objectneri hamar
najc inchi "parzvec" ?

))
__________________
И повешенные могут качаться в неположенную сторону. /С.Е.Лец/
greka is offline   Reply With Quote Quote selected
Old Sep 21, 2002, 21:24   #3
Младенец
 
Join Date: Jul 2002
Location: Подполье
Posts: 23
Rep Power: 0
Reputation: 10
Arrow

hov inchqanov gitem et dzevov haytararac popoxakani hascen kompilyacyai jamanak arden texadruma kompilyator@...dra hetevanqov ete klasi mi obekti et popoxakani arjeq@ poxvuma et hasceov gtvox qo depqum 4 baytum et tivna grvum, urish andamneric et klasi inchqan dimes tiv popoxakanin nyn hasceica vercnelu...
__________________
It's nice to be important, but it's more important to be nice...
Фармозон is offline   Reply With Quote Quote selected
Old Sep 22, 2002, 00:41   #4
В бой аргхххххххх!
 
hov's Avatar
 
Join Date: Sep 2002
Location: Vik, Medieval Norway
Posts: 1,478
Rep Power: 6
Reputation: 42
Send a message via ICQ to hov
Post

To >>> Greco El
chishtn asats harct kam patasxant chhaskaca....
Es stegh lriv kody chei grel haves chkar ( chnaiats arden mi etqan es topicum greci ..) mi erku hat funkcia ei shinel kardal/grelu hamar..

To >>> Фармозон
Thanks...
Aisinqn voch mi banov chi tarbervum sovorakan static memberic ?
__________________
Rock Hovhannes.

Дневник
Stryfe.Am - Coming Soon!
hov is offline   Reply With Quote Quote selected
Old Sep 22, 2002, 12:44   #5
Академик
 
Join Date: Aug 2002
Location: Yerevan, Armenia
Posts: 4,443
Rep Power: 6
Reputation: 41
Send a message via ICQ to W_z_rd
Post

hov jan, es harcit portzem patasxanel, baytz te da en harceritsa, vor aveli lav e C++ girq vercnes kardas.

Peremennie obyavlennie static pomeshayutsya v global`nuyu oblast` dannix programmi, tuda zhe, kuda pomeshayutsya vse global`no ob'yavlennie peremennie. V etom smisle nevazhno gde ti obyavish peremennuyu - v samoy funkcii, ili kak static member klassa. Raznica tol`ko v 'dostupnosti' peremennoy: static member klassa dostupen iz vsex funkciy klassa, a static peremennaya funkcii 'vidima' tol`ko v toy samoy funkcii, v kotoroy ona ob'yavlena (chto, vprochem, spravedlivo ne tol`ko dlya 'static' lokal`nix peremenix).
__________________
Stuck between heaven and hell; dunno where to go...
W_z_rd is offline   Reply With Quote Quote selected
Old Sep 23, 2002, 14:46   #6
Administrator
 
greka's Avatar
 
Join Date: Sep 2001
Location: @work
Posts: 5,337
Rep Power: 10
Reputation: 23
Send a message via ICQ to greka
Post

2 hov: static popoxakannery mtacvac ein henc ajn npatakov, vor nrranq linen STATIC, ankax amen inchic.

dranq inch-vor imastov GLOBAL popoxakanner en.


isk du harcnum es "inchi a tenc" ...
__________________
И повешенные могут качаться в неположенную сторону. /С.Е.Лец/
greka is offline   Reply With Quote Quote selected
Old Sep 23, 2002, 19:18   #7
В бой аргхххххххх!
 
hov's Avatar
 
Join Date: Sep 2002
Location: Vik, Medieval Norway
Posts: 1,478
Rep Power: 6
Reputation: 42
Send a message via ICQ to hov
Post

To W_z_rd > Ha arden skseci patkeracnel inch eq uzum asel.
To Greco El > Asem. Ughaki es chei mtatsum vor amentegh grats staticy nuin imasty uni.

Thanks, Hov.
__________________
Rock Hovhannes.

Дневник
Stryfe.Am - Coming Soon!
hov is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:43.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link