How can I fix a number between 0 and 1 in table undex??
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi friends I tried to define a new value between 0 and 1 , in table index , for example 0,1,2,3,4,5 is index of table of 6 value , I want insert new value between 0 and 1 for be like that new index 0,val,1,2,3,4,5
define plus(c) (c+1)
#define moins(c) (c)
#define plus(val) (1)
#define moins(val) (0)
#define val (200)
Int main ()
{
Int tab[11];
Int moy[11];
Int c;
For (c=0;c<10;c++)
{
Tab[c]=c+1;
}
Tab[11]=20;
Moy[0]=0;
Moy[1]=tab[11];
For(c=1;c<=11;c++)
{
Moy[plus(c)]=tab[c];
}