Hey dude, i don't know what do you mean exactly by "tags" .. anyway the program is just crashing, maybe i am getting out of range or something. but if you pay close attention to the code, i don't think there are any logical errors, right?
Firstly, your program isn't crashing its just not staying open for you to see the output - put cin.get(); after line 87 and it will pause the program to see the result. When you do this you'll see that theres a problem lol.
You're size() function is confusing. In fillandprint() you create the bool variable 'flg' and set it to true and then when you call you're size() function with flg as an argument, you check to see if it is true.
Also, the rand() function is of type int. You have cast rand() and (rand_max) to double, and then cast everything back to int. Change t to: test=rand()/(RAND_MAX)*14+3;
Just to clarfy, is the program supposed to add two columns of random numbers and then print them?
No i am doing the odd magic square, i don't know if you're familiar with the siamese method. So i am just declaring a fixed 19X19 array so i wouldn't have to go through looping for an undetermined ( random ) number.
The problem is not caused by the random number generator, and not the printing section.. it must be something with the array ( like exceeding the range or something ) .. i'm still trying .