hey i have a quick question this program im doing for school wont work and me and my teacher cant figure out why perhaps someone could help me?

// Memory card = 69.95
// Software = 34.98

#include <iostream.h>
#include <string.h>
int main()
{
float mem_card = (float) 0.00;
float software = (float) 0.00;
mem_card = 69.95;
software = 34.98;
float nw_pc = 675.00;
float disk_drive = 198.50;
float total;
char item[30];
int num_of;
int times;
/* int memory;
int soft;
int nw;
int disk;*/

/* cout << "How many Memory cards would you like to purchase? ";
cin >> memory;
cout << "How much software would you like to buy? ";
cin >> soft;
cout << "How many new pcs would you like to buy? ";
cin >> nw;
cout << "How many disk drives would you like to buy? ";
cin >> disk; */
cout << "How many items would you like to buy? ";
cin >> times;
for(int i = 1;i = times;i++)
{
cout << "Which items would you like to buy(Enter one item at a time then hit enter then type in how many you want to buy)? \n";
cin.get(item,25);
cin>>num_of;
if(item == "memory card")
total = total + (mem_card * num_of);
else if(item == "software")
total = total + (software * num_of);
else if(item == "new pc")
total = total + (nw_pc * num_of);
else if(item == "disk drive")
total = total + (disk_drive * num_of);
else
cout << "That is an invalid choice.\n";
}
cout << "Your total is " << total << endl;
return 0;
}
Deleting intermediate files and output files for project 'projecthooch - Win32 Debug'.
--------------------Configuration: projecthooch - Win32 Debug--------------------
Compiling...
projecthooch.cpp
c:\projecthooch.cpp(10) : warning C4305: '=' : truncation from 'const double' to 'float'
c:\projecthooch.cpp(11) : warning C4305: '=' : truncation from 'const double' to 'float'
Linking...

projecthooch.exe - 0 error(s), 2 warning(s)

I have those warnings and what happens is when it gets to the second question it scrolls in an infinite loop somehow and i dont know how it does that? can anyone help me out? thanx