For some reason my program is not working and dont know how to solve this problem. In line 15 the "users" is underline in red and will not run. Please help.
#include <iostream>
#include <cmath>
#include <iomanip>
#include <string>
#include <fstream>
#include <C:\Users\N.\Desktop\Popcorn\Popcorn\JJ.cpp>
using namespace std;
int main()
{
fstream InFile;
string Name;
int Jars;
double Acres;
PrintHeader();
InFile.open("C:\Users\N.\Desktop\Popcorn\Popcorn\JJ.cpp",ios::in);
if (!InFile)
{
cout<<"Can't Open the input file.";
return 1;}
while (!InFile.eof())
{
GetData(InFile, Name, Acres, Jars);}
InFile.close();
cin.get();
return 0;}
void PrintHeader(void)
{
cout<<setw(23)<<"Pop CoOp"<<endl;
cout<<"Farm Name"<<setw(30)<<"Production"<<endl;
cout<<setw(41)<<"Thousands of"<<endl;
cout<<setw(47)<<"Pint Jars per Acre"<<endl;
cout<<setw(53)<<" 1 2 3 4 5 6"<<endl;
cout<<setw(52)<<"---|---|---|---|---|---"<<endl;}
void GetData(fstream& In, string& Name, double& Acres, int& Jars)
{
char x=' ';
int count=0;
In.get(x);
while (x < 29 || x != ',' )
{
Name = Name + x;
In.get(x);}
if (x == ',' || x >= 29)
{
In>>Acres>>Jars;
cout<<Name<<endl;
Name=" ";
In.get(x);
count=0;
Jars=0;
Acres=0;}}