- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
struct Base // ñòðóêòóðà äàííûõ
{
char tiker[50];
char per[50];
//int dateymd;
float openPrice;
float maxPrice;
float minPrice;
float closePrice;
float volume;
float war;
float Doch;
float Risk;
//
};
struct Analys
{
char tiker[35];
float OgDoh;
float Risk;
float kov;
};for ( int i= 0; i<k; i++)
{ if ( vec[i].OgDoh <0)
{ vec[i].OgDoh = 0;
for (int j=0;j<kol;j++)
{VecBase[i+j].Doch = 1000;}
}
};
vec.erase(remove_if(vec.begin(), vec.end(), remover(0) ),
vec.end());
VecBase.erase(remove_if(VecBase.begin(), VecBase.end(), Remover(1000) ),
VecBase.end());
vec.shrink_to_fit();
VecBase.shrink_to_fit();