No such file or directory

Nov 4, 2015 at 4:24pm
Hi,
Sorry to ask again but my code won't work and says no suck file or directory, would like help with it please and could you make it as easy as possible

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
    #include <iostream>


#include <string> 


using namespace std; 
char caesar( char ); 
int main() 

{ 
    string input; 

    do { 
        cout << "Type the message you want to code and then press enter" << endl; 
        cout << "Press enter again if you want to quit because you are boring" << endl; 
        getline(cin, input); 
        string output = ""; 
        for(int x = 0; x < input.length(); x++) 
        { 
            output += caesar(input[x]); 
        } 

        cout << output << endl; 

    } while (!input.length() == 0); 

}   
char caesar( char c ) 
{ 
    if( isalpha(c) ) 

    { 
        c = toupper(c); 
        c = (((c-65)+13) % 26) + 65; 
    } 

    return c;
}
Nov 4, 2015 at 4:54pm
Have you saved the cpp file before compiling? If yes, which line does the compiler print the error to?
Topic archived. No new replies allowed.