I have an assignment Write an encryption program to read in last name and convert letters of last name into the next letter of alphabet can anyone tell me if what i have is correct or almost correct

#include<iostream.h>
voidmain()
{
float turner, char
cin>>Turner;
cout<<Turner;
char t='u';
char u='v';
char r='s';
char n='o';
char e='f';
char r='s';
cout<<endl;
}

:?: :rolleyes: :?: ;) :?: :-| :?: :sad:
I know its probably wrong help me pleaase......I feel so dumb....:rolleyes:

Recommended Answers

All 2 Replies

>can anyone tell me if what i have is correct or almost correct
Not to hurt your feelings, but it's not even remotely close. This is a case where I'll recommend that you sit down with your teacher and get some face to face help. It would save us both some time. :)

commented: Well said. --joeprogrammer +3

Does it seem to work when you compiled it? ;) That's your first test. Narue is correct.

Every character is simply a number that displays as a character. For example 'A' is 65, 'B' is 66, so they can be treated as numbers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.