am beginner in C..am trying out some questions in books n i want to write a small encryption program that will encode a word..cn any1one help?i want to convert a character such as 'a' to the next character of the alphabet that is 'b'...how should i proceed?
slash10
0
Newbie Poster
Recommended Answers
Jump to PostHmm.. i am not sure that i have got your question but:
int main( void ) { char name[BUFSIZ] = {'\0'} ; printf ( "Enter the string: " ) ; fgets( name, BUFSIZ, stdin ) ; int i = 0 ; for( i = 0; i < …
Jump to Postam beginner in C..am trying out some questions in books n i want to write a small encryption program that will encode a word..cn any1one help?i want to convert a character such as 'a' to the next character of the alphabet that is 'b'...how should i proceed?
Might be a …
Jump to Post1. To make the program modify only characters you can use the function
isalpha ( my_char )
which accepts a character and returns true or non zero value if the char is a alphabetic character. Thus before encrypting the character check the char using this function and it should work …
All 10 Replies
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
TylerSBreton
13
Junior Poster in Training
slash10
0
Newbie Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
slash10
0
Newbie Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
slash10
0
Newbie Poster
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
slash10
0
Newbie Poster
neeven
0
Newbie Poster
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.