Hi there,
Kindly help me on this matter. I do have a class with an inline funciton whenever I compile it , it gives me a warning about inline functions are not expanded.
The class is shown below.
class Customers
{
float amounts[10];
public:
void sortData()
{
int ctr;
ctr=0;
while(ctr < 10)
{
cout << "Enter the amount : ";
cin >> amounts[ctr];
ctr++;
}
int counter=0;
/* Traverse The Array */
while(counter < 9)
{
float temp;
/* Compare The Value Of Current Element With The Next */
if(amounts[counter] > amounts[counter + 1])
{
/* Swap The Values */
temp = amounts[counter];
amounts[counter] = amounts[counter + 1];
amounts[counter + 1] = temp;
counter = 0;
continue;
}
counter++;
}
}
};
thanks
curious mind