Thread: ASCII Characters

  1. #1
    Registered User GreenCherry's Avatar
    Join Date
    Mar 2002
    Posts
    65

    ASCII Characters

    What are the ASCII Carsacterrs for the arrow keys, does anyone have a link to a table with them on it?
    I have a rabbit in my pants! Please be happy for me.

  2. #2
    Registered User GreenCherry's Avatar
    Join Date
    Mar 2002
    Posts
    65
    I know this is cross posting and whatever, but this message board doesnt have a search thingy to find stuff. And Whenever I ask i dont get a staight answer.
    I have a rabbit in my pants! Please be happy for me.

  3. #3
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    look in your header files....o my bad that wouldn't be giving u the answer u;d have to actually look for it,....

    hmm...

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    I'll let you figure out the rest...


    Code:
    
    #include <stdio.h>
    #include <windows.h>
    #include <limits.h>
    
    int main (int argc, char **argv ) {
    
     int i;
     for(i = 0; i < INT_MAX; i++){
      printf("%c = %i\n", i, i);
      Sleep(500);
     }
    
     return 0;
    }
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  5. #5
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Originally posted by GreenCherry
    I know this is cross posting and whatever, but this message board doesnt have a search thingy to find stuff. And Whenever I ask i dont get a staight answer.
    You mean like a search button... how about the one at the top of the page

    Anyway, try this thread:
    http://www.cprogramming.com/cboard/s...threadid=25946
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  6. #6
    Registered User
    Join Date
    May 2002
    Posts
    31

    Lightbulb Here...

    Had the same problem finding ASCII values myself. This is what i came up with.

    Code:
    #include <iostream.h>
    #include <stdlib.h>
    
    int main()
    {
      int checkup = 0;
      int numb;
      for(int x=0; x<256; x++) 
      {
        switch(checkup)
        {
         case 20:
          system("PAUSE");
          break;
         case 40:
          system("PAUSE");
          break;
         case 60:
          system("PAUSE");
          break;
         case 80:
          system("PAUSE");
          break;
         case 100:
          system("PAUSE");
          break;
         case 120:
          system("PAUSE");
          break;
         case 140:
          system("PAUSE");
          break;
         case 160:
          system("PAUSE");
          break;
         case 180:
          system("PAUSE");
          break;
         case 200:
          system("PAUSE");
          break;
         case 220:
          system("PAUSE");
          break;
         case 240:
          system("PAUSE");
          break;
         default:
          break;
        }
        cout<<x<<":"<<(char)x<<" "<<endl;
        checkup = x;
      }
      return 0;
    }

  7. #7
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Here you go

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 07-10-2008, 03:45 PM
  2. Replies: 11
    Last Post: 03-24-2006, 11:26 AM
  3. ascii characters video displaying on tv screen
    By deian in forum C Programming
    Replies: 6
    Last Post: 10-12-2004, 09:46 PM
  4. ASCII Printable Characters
    By dalek in forum C# Programming
    Replies: 3
    Last Post: 08-11-2003, 04:13 AM
  5. Printing extended ASCII characters
    By Jonny M in forum C Programming
    Replies: 2
    Last Post: 03-01-2002, 10:12 AM