Click here to Skip to main content
16,005,206 members

Comments by Dirquez Marquez (Top 5 by date)

Dirquez Marquez 7-Sep-14 22:57pm View    
thanks for your help i managed to solve it
Dirquez Marquez 30-Aug-14 14:48pm View    
array declaration:

int ID_EMEI[20][2];

//hre i am storing data to the array reading from a long string of elements separated by "-"
while(getline(breaker, temp_string, '-')){ ///this is a way for splitting

if(word1.length() < 1)
word1 = temp_string;

else if(word1.length() > 1)
word2 = temp_string;

istringstream(word1) >> ID_EMEI[index][0];
istringstream(word2) >> ID_EMEI[index][1];

index +=1;

}
Dirquez Marquez 11-Apr-13 18:57pm View    
thanks to everyone and am sorry for the stupid question,i got it
Dirquez Marquez 11-Apr-13 18:23pm View    
void arreipopulation( int arrei[VALUE])
{

srand(time(0));

int rnd = 0;
rnd = (1+ rand()% 42);

for(int d=0;d
Dirquez Marquez 11-Apr-13 18:22pm View    
void arreipopulation( int arrei[VALUE])
{

srand(time(0));

int rnd = 0;
rnd = (1+ rand()% 42);

for(int d=0;d