Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-23-2003, 09:12 PM   #1
LQ Newbie
Registered: Aug 2003
Location: Somewhere out in space
Distribution: SuSe 8.0
Posts: 18

Rep: Reputation: 0
string to ASCII and back...

i have to write a program that will ask user to enter an unsigned integer and any string and then my program has to output new string which is the old string transfered into ASCII + unsigned integer so for example if I enter 3 and "abc" output should be "def"
('a' shifted to 'd', 'b' to 'e', and 'c' to 'f')

Old 11-23-2003, 09:42 PM   #2
Registered: Dec 2002
Location: Singapore
Distribution: Fedora Core 6
Posts: 647

Rep: Reputation: 30
In what language?
I think it's your homework. It's a simple program. First you should try yourself as much as you can at least a line or two. Then if you come across any problem, post your codes here and we'll help you. This forum is not allowed to help students who is posting the whole question without showing any efford.
Good luck
Old 11-24-2003, 05:05 AM   #3
Registered: Sep 2003
Location: Pune, India
Distribution: Red Hat
Posts: 106

Rep: Reputation: 15
Rightly said. First try for yourself and then if you have any difficulty, post here and everyone around will be willing to help. Do remember to send the language too.

Last edited by Kumar; 11-24-2003 at 05:07 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
python: converting a 3 character octal string into and ASCII char llama_meme Programming 1 07-06-2010 03:00 PM
Bash way to tell if String is in String tongar Programming 3 06-16-2005 07:59 AM
in linux & c/c++: how do I convert an ascii string to utf8 & vice versa? davidh_uk Programming 2 02-06-2005 06:55 PM
C....Search a string for a string Scrag Programming 4 06-14-2004 05:15 PM
java test if string in string array is null. exodist Programming 3 02-21-2004 02:39 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration