Error: C++ requires a type specifier for all declarations
General and Desktop
3
Posts
2
Posters
13.2k
Views
1
Watching
-
Hello!
I have been trying to create a new class and I keep getting this error: C++ requires a type specifier for all declarations.
I'm not sure really what it wants. Here is the code:
@
NBhistoryItem::NBhistoryItemN(QString hUrl, QString hTitle)
{
QString url = hUrl;
QString title = hTitle;
}
@The error appears to be on line 1.
Thanks!