hi!
i used to program in visual studio a long time ago and have been developing in java lately so my head might be confused at the moment. i'm trying to compile following class in anjuta IDE:
Code:
//Song.h
#ifndef _SONG_H_
#define _SONG_H_
#include "defines.h"
#define MAX_ARTIST_CHAR 256;
#define MAX_TITLE_CHAR 256;
class Song
{
public:
Song();
~Song();
// Song interface
int setArtist(char* artist);
int getArtist(char* artist);
int setTitle(char* title);
int getTitle(char* title);
protected:
// Song variables
char *artist_ = new char[MAX_ARTIST_CHAR];
char* title_ = new char[ MAX_TITLE_CHAR];
};
but i'm getting compiling error on (it says simply 'syntax error before ';' token'):
Code:
char *artist_ = new char[MAX_ARTIST_CHAR];
char* title_ = new char[ MAX_TITLE_CHAR];
i can't figure it out.! does anyone see the problem.
thanks!
indy