When I compile this:
Code:
#include <iostream>
#include <fstream>
#include <cstdlib>
using namespace std;
using std::cin;

int main(int arcg, char *arvg[]) {
char* coda;  
char* wait; 
ofstream outFile("message1.cod", ios::out);    
    for(;;){
            cin<<coda;
            if(coda == "a")
            wait=("Z");
            else if(coda == "b")
            wait=("Y");
            else if(coda == "c")
            wait=("X");
            else if(coda == "d")
            wait=("W");
            else if(coda == "e")
            wait=("V");
            else if(coda == "f")
            wait=("U");
            else if(coda == "g")
            wait=("T");
            else if(coda == "h")
            wait=("S");
            else if(coda == "i")
            wait=("R");
            else if(coda == "j")
            wait=("Q");
            else if(coda == "k")
            wait=("P");
            else if(coda == "l")
            wait=("O");
            else if(coda == "m")
            wait=("N");
            else if(coda == "n")
            wait=("M");
            else if(coda == "o")
            wait=("L");
            else if(coda == "p")
            wait=("K");
            else if(coda == "q")
            wait=("J");
            else if(coda == "r")
            wait=("I");
            else if(coda == "s")
            wait=("H");
            else if(coda == "t")
            wait=("G");
            else if(coda == "u")
            wait=("F");
            else if(coda == "v")
            wait=("E");
            else if(coda == "w")
            wait=("D");
            else if(coda == "x")
            wait=("C");
            else if(coda == "y")
            wait=("B");
            else if(coda == "z")
            wait=("A");
            else
            break;
outFile<<wait<<endl;
            }
cout<<"Message status, SENT"<<endl;
outFile.close();
}
I get an error that says this:
Quote Originally Posted by Dev-C++_Compiler
no match for 'operator<<' in 'std::cin << coda'
Why is it doing that?