473,513 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Assigning A-Z with 1-26 without having to assign every variable

1 New Member
Question answered, thanks!

Thank you!!!
Oct 3 '12 #1
3 1913
zmbd
5,501 Recognized Expert Moderator Expert
Asking for complete code is not normally allowed.
Homework question.

Please show your work
Oct 3 '12 #2
whodgson
542 Contributor
if this is homework please ignore.
this is a sloppy question so details are omitted.
make up your mind about upper or lower case!
Expand|Select|Wrap|Line Numbers
  1. a=char('a'- 86)//should print '1'
  2.  b=char('b'- 86)//should print '2'
Oct 3 '12 #3
Rabbit
12,516 Recognized Expert Moderator MVP
This thread is being closed due to violation of forum guidelines.
Oct 3 '12 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
6393
by: gtz669 | last post by:
I have a class which I am using for data stroage. I declare an instance of that class in my main class which is running my java applet. I Iassign it a value in the init () function and it works...
10
2314
by: rxl124 | last post by:
I have files that I only need one field that I need to grep it out and I am trying to assign that to another file. (It happens that one field that I am looking for has some other character that...
7
1319
by: Sree | last post by:
If class B derives from class A and we create an array of class B like B *arrayOfB = new B; and // Instance of A A firstInstanceOfA; How can we store firstInstanceOfA in arrayOfB ? I tried the...
16
6200
by: BigMan | last post by:
How can I check if assignment of a float to a double (or vice versa) will result in loss of precision?
1
2164
by: Jenny | last post by:
Hi, Can I create an array of tags by assigning same name to these tags? For example, I have two <p> tags with the same name t1. But document.all.b.value=document.all.t.length does not...
1
6893
by: George Marsaglia | last post by:
The essence of a multiply-with-carry RNG is to have declarations in the RNG proc, such as unsigned long mwc( ){ static unsigned long x = 123456789, c = 362436; unsigned long long t, a =...
2
1866
by: martlaco1 | last post by:
Trying to do a simple little form and do searches using the filter by form. Instead of clicking on the icon, I would prefer a keyboard shortcut to enable Filter by Form - can't find one - so tried...
3
1250
by: Ricky W. Hunt | last post by:
How does VB.NET determine comparing vs. assigning? For instance, if "checkbox1.checked = True" it only checks the value but leaves it as it whereas if you have "checkbox1.checked = True" by...
8
6220
by: getmeidea | last post by:
Hi, I am using JDK 1.5. I have a program like this. Here i am directly assigning value to one object. It does'nt give me any compile time or run time error. In java we dont have access to any...
11
2123
by: Dmaccess | last post by:
Hello all, I've been working on refining an established MS access database. There is a priority field in an import table, and it gets reset when you re-import data that matches entries already...
0
7265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7171
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7545
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7111
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5095
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.