ceasers cipher

Pages: 12
ok there is 1 more error.it doesnt say what line it is on it just says "string:no such file or directory"

#include <iostream>
#include <cstring>
#include <srting>
using namespace std;

int main()
{
string c;
cin >> c;
for (int i = 0; i<c.size();i++)
{
c[i] = tolower(c[i]);
c[i] = c[i]-2;
if (c[i]<97)
{c[i] = c[i]+26;}
}
cout << c << endl;
system("pause");
return 0;
}
It does not.
oh sorry it says this,C srting: No such file or directory.
how do i fix that
Never mind I get it
Never mind I get it

So I guess it's a "moot" point! 8^D

Yes, critical reading (and typing) skills are important in programming. Syntax errors can frustrate you but if you learn to read code carefully you can spot them more easily.
Topic archived. No new replies allowed.
Pages: 12