Image

Imagemely wrote in Imagecpp

help? : /

ok.
i'm a really big stupid head, but all i want to do is read in the words from a file character by character, and for some reason it's not working.
#include <string>
#include <fstream>
#include <iostream>

int main() {

    char current;
    ifstream dictionary ("sample.txt");
    if (! dictionary .is_open()) {
        cout<<"Error opening file";


and like i get these errors.

myspell.cpp: In function `int main()':
myspell.cpp:18: `ifstream' undeclared (first use this function)
myspell.cpp:18: (Each undeclared identifier is reported only once for each function it appears in.)
myspell.cpp:18: parse error before `(' token
myspell.cpp:18: character constant too long
myspell.cpp:19: `dictionary' undeclared (first use this function)