+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    Join Date
    Jan 2008
    Location
    PA
    Posts
    1,164
    Points
    4,022,558.25
    Rep Power
    221

    Default Character Value Converter[C++]

    i made this because ws made an anti vista version =p
    Code:
    /*
      Name: Character Converter 
      Author: SonniE
      Date: 02/06/08 04:11
      Description: www.codinghs.com original program
    */
    
    #include <iostream>
    using namespace std;
    int main()
    {
         char c, ans;
         cout << "Welcome TO SonniE's Character Value Converter! A WWW.codinghs.COM Original\n";
    here:
         cout << "Enter Your Character: ";
         std::cin>>c;
         std::cout << "Character: "<< c << "\nDecimal Value: "<< dec << int(c) <<"\nHexadecimal Value: " << hex << int(c) << "\n";
         system("PAUSE");
         cout << "Do You Want To Convert Another Character? (y/n)";
         cin >> ans;
         if (ans == 'y' || ans == 'Y')
         {
                 system("cls");
                 goto here;
         }
         else 
         {
              system("pause");
         }
         return 0;
    }
    Attached Files


    Get Vip: »Here«
    Donate: »Here«
    >>List of Compilers<<
    >>SFDM Name Generator<<
    [Owner Of FluidCoding]

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts