Kdevelop & my problem
Mohsen Pahlevanzadeh
mohsen at pahlevanzadeh.org
Sun Feb 6 18:41:42 GMT 2005
Dears,I have 2 files:
core.h :
#ifndef CORE_H
#define CORE_H
#include <string>
using namespace std;
/**
@author Mohsen Pahlevanzadeh
*/
class CCore
{
public:
CCore();
int srcEngine; // 0->MySQL;1->PostgreSQL;2->Oracle;
int desEngine; // 0->MySQL;1->PostgreSQL;2->Oracle;
void IncArray(int num);
void DecArray();
int FldNumber;
int TblNumber;
int FldorTbl;// 0-->Field ; 1-->Table
string *DbName;
string *TblName;
string *FldName;
/* ConnectDb();
CraeteDb();
CreateTbl();
CreateFld();*/
};
#endif
/////////////////////////////////////////////////////////////
core.cpp :
#include "core.h"
#include <iostream>
using namespace std;
CCore::CCore()
{
}
void CCore::IncArray(int num)
{
int number,i;
////////set up of tableorfield's type
if (FldorTbl==0)
number=FldNumber;
else if (FldorTbl==1)
number=TblNumber;
////increamentting of array according to field or table.
for (i=0;i<number;i++)
{
if (FldorTbl==0)
FldName= new string;
else if (FldorTbl==1)
TblName=new string;
}//end of for
}//end of method
CCore p;
p.FldorTbl=0; ///this line own of my error
Then i receive following error:
error:Syntax error before `.'token
Please help me..........
I think my problem is from my KDelop & Makefile
___________________________________________________
This message is from the kde mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
More information about the kde
mailing list