![]() ![]() You will need to put another backslash in front of these to print them out like \" and \\. Be careful with the special characters like " and \. You should figure out what the row and column indices should be for the “o” characters and use them with the array name to set that character to After testing this code, comment it out so that your teacher can still see it.Īdd a new asciiArt array with a different ASCII art from the collection or of your own design. Then, do the following:Ĭhange the code to use 2 assignment statements with the 2D array asciiArt to change the “o” characters to characters. The loops to print out the 2D array will be explained in the next lesson. What do you think the following code will print out? Try to guess before you run it. We can represent ASCII art in a 2D array of rows and columns. Take a look at this ASCII art collection! In the days before good graphics, some people made ASCII art just using the keyboard characters. ASCII has been mostly replaced by UNICODE which includes characters in other languages like Chinese. If you use ASCII artwork from here, please do not remove the artists name/initials if they are present.ASCII is a commonly used character encoding standard where each key you press on the keyboard is translated to an ASCII number to be stored in the computer. The ASCII art of this website has been created by many different artists and credit has been given where the artist is known.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |