Declaration with no type

//---------------------------------------------------
// Filename: microblog.h
// Purpose: The header file for a class to store a single tweet
//---------------------------------------------------
#include <fstream>
#include <string>
#include "tweet.h"
using namespace std;

class MicroBlog
{
public:
// Constructors and Destructors
MicroBlog(); // default constructor
MircoBlog (const string Date, const string Hashtag, const string Contents)const; // non-default constructor
MicroBlog (const MicroBlog &OtherMicroBlog);
~MicroBlog(); // destructor
private:
static const int MAX_TWEETS = 100;
Tweet blog[MAX_TWEETS];
int num_tweets;
};


When I try to compile I get the error:
ISO C++ forbids declaration of ‘MircoBlog’ with no type [-fpermissive]

What is causing this error?
You have misspelled MicroBlog.
In addition to what Peter87 pointed out, you also may not have a const modifier on a constructor. What would be the point of the constructor if it can't initialize anything?

PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post.
http://www.cplusplus.com/articles/jEywvCM9/
Topic archived. No new replies allowed.