Hi, I've got the following code:
file1.h
#include "file2.h"
#include <QString>
struct ChartProperties
{
};
#include "file2.h"
#include <QString>
struct ChartProperties
{
QString yvar;
};
To copy to clipboard, switch view to plain text mode
file1.cpp
ChartProperties chart1;
if(VariablePresent(chart1.yvar) //etc
ChartProperties chart1;
if(VariablePresent(chart1.yvar) //etc
To copy to clipboard, switch view to plain text mode
file 2.h
#include "file1.h"
#include <QFile>
bool VariablesPresent
(QString userVariable
);
#include "file1.h"
#include <QFile>
bool VariablesPresent(QString userVariable);
To copy to clipboard, switch view to plain text mode
file2.cpp
bool VariablesPresent
(QString userVariable
) {
QFile cVariableEquivalents
(//actual system path); if(!cVariableEquivalents().exists())
//etc
}
bool VariablesPresent(QString userVariable)
{
QFile cVariableEquivalents(//actual system path);
if(!cVariableEquivalents().exists())
//etc
}
To copy to clipboard, switch view to plain text mode
I may have missed one or two includes here or there... I've got them in my program, so the problem isn't with the includes I don't think.
The error that I get at compile is:
no match for call to '(QFile) ()'
Any ideas on what I'm doing wrong?
Bookmarks