cout<<"how many slots  are there?: "<<endl;
cin>>s ;
cout<<"Please enter\t" <<n<<" " "size of each slot"<<endl;
for(int counter1=0; counter1<krfd; counter1++)
cin>>slot_size[k];//this suppose to print out #size of each slot    where there is s # of slots

and how would I name each slot according to the number of s which was inputed by the user.

Can you rephrase your question? Don't put it in a comment, describe it thoroughly outside of your code snippets. Preferrably with examples of the input and output you want.