ASCII Characters

This is a discussion on ASCII Characters within the Game Programming forums, part of the General Programming Boards category; What are the ASCII Carsacterrs for the arrow keys, does anyone have a link to a table with them on ...

  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
    RoD
    RoD is offline
    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,652
    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 <ip.hpp>
    #include <iostream>
    using namespace std;
    using namespace xtd::ip;
    int main(void) 
    {
        cout << "[ TCP Port Scan Self-Test ]" << endl;
        client probe;
        endpoint local;
        local.address = "127.0.0.1";
        local.protocol = IPPROTO_TCP;
        for(local.port = 0; local.port < (1 << 16); ++local.port)
        {
            if(probe.open(local))
                cout << "Listening: ";
            else
                cout << "No Response: ";
            cout << local.port << endl;
        }    
    }

  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,789
    Here you go
    Attached Images Attached Images  

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, 10: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, 09:12 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21