English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have declared my function as below
.
.
.
public:
void initialise(void);

and this is what the function does

void CurrencyType::initialise(void)
{
US=0;
Aust=0;
HK=0;
Euro=0;
Malay=0;
selection='U';
}
but i get this error message "Identifier 'initialise' cannot have a type qualifier" on this line --> void CurrencyType::initialise(void)... whats wrong? thanks for reading

2006-09-17 03:02:12 · 1 answers · asked by jcol 2 in Computers & Internet Programming & Design

i tried what u said "justme", still wont work..thx anyway

2006-09-18 05:41:44 · update #1

1 answers

declare it as void initialise();
not void initialize(void);

and void CurrencyType::initialise() not
void CurrencyType::initialise(void)

Basically, remove the void from the arguments list (inside the brackets).

2006-09-18 02:37:14 · answer #1 · answered by justme 7 · 0 0

fedest.com, questions and answers