struct ventasType
{
    string iD;
    double quarterSales, totalSales;
};
void readingID(int counter) {
    ventasType sales;
    ifstream inFileID;
    counter = 0;
    inFileID.open("id.txt");
    inFileID >> sales.iD;
    while (!inFileID.eof())
    {
        inFileID >> sales.iD;
        counter++;
    }
    cout << "Total de vendedores:" << counter;
}
int main()
{
    ventasType sales;
    int count;
    readingID(count);
    cout << count;
    return 0;
}
When I try to print count it prints a memory location. I'm i doing this right? I'm trying to count hoy many sales people are in the text file. Did this code but its not running correctly. it prints a memory location. The programming language is c++.
 
     
     
    