Thread: keyboard stop working at Dos

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    183

    Unhappy keyboard stop working at Dos

    I dont know what has happened to my pc .
    I have win xp and borland c++ (3.1) and it is in 2 models ( one is run at windows and the other is run at Dos ) . usually I use the one that is run at win .
    for one of my classes I need to get the aski code of a simple program and our teacher told us useing the compiler that is run at Dos is better for undresatnding the aski code (if it be at win , the aski code will have some more codes ), but know I cant use the one that is run at Dos .
    when I enter the environment (the blue page that is similar to paskal invironment), both of keyboard and mouse stop working and just the " win " key of my keyboard works .
    can any one tell me what is wrong ? I have to solve this problem cause I must get the aski code and bring it for my teacher .

    can one of u use this code in his(her) compiler and give me the aski code ?
    Code:
    #include <iostream.h>
    int f(char,float);
    int g=1;
    int main(){
    char a='A';
    float b=3.2;
    int k;
    k=f(a,b);
    cout << k;
    return 0;}
    
    int f(char a,float b){
    static int c=20;
    int f=6;
    cout << a <<'\n';
    cout << b <<'\n';
    cout << g <<'\n';
    c+=f;
    cout << c <<'\n';
    return (12);}

    thanks alot

  2. #2
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Here's a link to an ASCII chart.

    I don't know whats wrong with your DOS compiler set-up.

    Windows should print all of the "normal" ASCII characters. DOS will print an extended character set... i.e. characters above 127.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with audio library on DOS...
    By Marton79 in forum C Programming
    Replies: 10
    Last Post: 08-25-2006, 12:32 AM
  2. Small VGA unit for DOS games
    By VirtualAce in forum Game Programming
    Replies: 1
    Last Post: 10-17-2003, 12:08 AM
  3. Creepy DOS and BIOS functions (need help!!!)
    By James00 in forum C Programming
    Replies: 9
    Last Post: 05-05-2003, 12:40 AM
  4. File systems?? (Winxp -> DOS)
    By Shadow in forum Tech Board
    Replies: 4
    Last Post: 01-06-2003, 09:08 PM
  5. Newbie working on a lift simulation
    By dethray79 in forum C++ Programming
    Replies: 1
    Last Post: 10-07-2001, 08:28 AM