[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 516

 
Reshetov >>:

Объявляйте переменные как статические (static) до определения функций. Эти переменные не инициализируются при вызове функций (если принудительно в теле функции не проинициализировать) и хранят свои значения между вызовами.


Oh, thanks, I'll give it a try.
 
How do I translate from strings to dowbles?
 
 
There is a variable S of string type, how can it be compared to the number 1? if (s=1) alert (1);
 
vlandex писал(а) >>
There is a variable S of string type, how can it be compared to number 1? if(s=1) alert (1);


if(s=="1") Alert(1);

 
Vinin >>:


if(s=="1") Alert(1);

Thanks, that's right, I remember... and I used to put one equal, I get confused with other languages...

 
with other languages... with what?
 
VB, Delphi
 
And now the variable double has to be assigned a string value? H(double)=S(string)
 
Are you kidding me?
Reason: