cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
ceasers cipher
Page 2
ceasers cipher
Pages:
1
2
Nov 18, 2011 at 12:59am UTC
moot1
(259)
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;
}
Nov 18, 2011 at 1:04am UTC
Moschops
(7244)
It does not.
Nov 18, 2011 at 1:06am UTC
moot1
(259)
oh sorry it says this,C srting: No such file or directory.
Nov 18, 2011 at 1:16am UTC
moot1
(259)
how do i fix that
Nov 18, 2011 at 2:08am UTC
moot1
(259)
Never mind I get it
Nov 18, 2011 at 2:45pm UTC
cnoeval
(643)
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:
1
2