English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

can somebody help me about this one? I was absent on my programming class last day,bcoz my feeling is not well I miss our lecture and my prof gave us an assignment , I don’t know how will I create this program.

task:
create a program that will output all the ascii code together w/ its ascii equivalent.

i think he use printf
were using c++ i need to pass this on feb1 before our exam pls help me

thank for helping and later i will understand your answers
thank u very strong.

2007-01-29 14:47:22 · 4 answers · asked by dxterz09 1 in Computers & Internet Programming & Design

4 answers

Find out when your professor's LAB HOURS are, and go visit him in the LAB. Either that, or find a LAB ASSISTANT at your school who can help you with the assignment.

2007-01-29 14:57:08 · answer #1 · answered by Richard H 7 · 0 0

for i in range(256): print i, chr(i)


Of course, that's in Python, not C++. Too bad you're not using a real programming language! That took me about 12 seconds to write and test, including five seconds to call up my terminal.

2007-01-29 15:07:23 · answer #2 · answered by poorcocoboiboi 6 · 0 2

for (int i = 0; i < 256; i++) {
printf("%i %c \n", i, (char)i);
// std::cout << i << " " << (char)i << std::endl;
}

2007-01-29 15:07:41 · answer #3 · answered by huskie 4 · 0 0

guess what? you're screwed!

2007-01-29 14:50:28 · answer #4 · answered by Anonymous · 0 1

fedest.com, questions and answers