Kdevelop & my problem
Jefferson Smith
imajeffs at hotmail.com
Fri Feb 25 18:46:58 GMT 2005
By chance, is it because your code is not within any function or even a
Class? In other words, put the last two lines inside `static main()` or
something like that.
----Original Message Follows----
From: "Mohsen Pahlevanzadeh" <mohsen at pahlevanzadeh.org>
Reply-To: kde at mail.kde.org, mohsen at pahlevanzadeh.org
To: kde at mail.kde.org
Subject: [kde] Kdevelop & my problem
Date: Sun, 6 Feb 2005 10:41:42 -0800 (PST)
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.
___________________________________________________
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