converters using c | Bytes (2024)

Home Posts Topics Members FAQ

vijay6

converters using c | Bytes (1) 158 New Member

How to convert the hexadecimal numbers into its equvalent decimal,binary, octal using the C language?Eg:if ff is the hexadecimal number then its equvalent decimal,binary, octal using C language?

Apr 1 '10 #1

Subscribe Reply

2 converters using c | Bytes (2) 1524 converters using c | Bytes (3)

jkmyoung

2,057 converters using c | Bytes (5) Recognized Expert Top Contributor

How are you getting the number to begin with, as a string, as an integer?
Do you want to output the number or manipulate it in some other way?
printf("Decimal %d\n",number);
printf("Hexadec imal %x\n",number);
printf("Octal %o\n",number);

Apr 1 '10 #2

reply

whodgson

542 converters using c | Bytes (6) Contributor

int n=0;
cin>>n;//enter 0xff
cout<<dec<<n<<o ct<<n<<endl;//prints n in decimal and octal formats.
to convert hex to binary convert each hex character to its four digit binary equivalent. e.g.Oxff = 1111 1111 or
0xabcd = 1010 1011 1100 1101

Apr 2 '10 #3

reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 1335

c++ to java code converters needed

by: Sri Ram |last post by:

Hi all, I would like to know if there are any c++ to java code converters software readily available .........plz do reply to me Cheers, Sri Ram.

C / C++

10224

QUARK XPRESS V6.1 - V5.0, Extensions, Addons, PDF Converters, 2004 - 2002, other

by: Zorba.GR |last post by:

QUARK XPRESS V6.1 - V5.0, Extensions, Addons, PDF Converters, 2004 - 2002, other Total Training Quark Xpress To InDesign Making The Switch CD NR 16 007 Quark Xpress v6.1 Passport *MULTiLANGUAGE* - Quark 15 709 Quark Xpress V6.0 Passport Multilanguage SN:TVWXNX-XCUVE2-641HQH-TWK7GH-RKGV12-E1ETPW-14X57Y-38WRH 13 013

HTML / CSS

2 1980

Just wondering if anyone knows if there are converters to convert from: MS Visual C++ 6.0 or MS Visual Studio 2003 project files into UNIX autogen/configure/make files?

by: KevinGPO |last post by:

Just wondering if anyone knows if there are converters to convert from: MS Visual C++ 6.0 or MS Visual Studio 2003 project files into UNIX autogen/configure/make files?

C / C++

10 1724

VB.NET to C# converters?

by: aaa |last post by:

Are there any VB.NET to C# project converters out there? TB

C# / C Sharp

7 1585

Access to ASP/VB.net converters

by: robert d via AccessMonster.com |last post by:

It looks like I may have to convert my Access mdb to be used on the web (terminal services is not an option). In doing a search, I've found several converters that look interesting, specifically: 1) Microtools.us 2) EvolutionSoft Does anyone have any experience with these or with other converters.

Microsoft Access / VBA

925

using converters, adapters in sqlite3

by: matthewperpick |last post by:

hello, i want to make use of sqlite3's "adapter" and "converter" capabilities but my classes are more complex than the point examples in the python documentation (http://docs.python.org/lib/node347.html), because they include foreign keys to othe rtables. I don't want to concatenate those with the class' other data in one column because then I lose the ability to filter data by FK in my select queries.

Python

3 8297

Encrypt and Decrypt a file using .NET 2.0?

by: JDeats |last post by:

I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0 build with these methods, will appear to encrypt and decrypt, but the resulting decrypted file will be corrupted. I tried encrypting a .bmp file and then decrypting, the resulting decrypted file under .NET 2.0 is garbage, the .NET 1.1 build works...

C# / C Sharp

1 1517

by: hufaunder |last post by:

I have some enums that I want to convert to strings so they can be shown on the GUI (using Framework 3.0). The easiest way is using ToString() but that does not support multiple languages. I am familiar with custom converters of class objects but how do I achieve this for enums. For instance: enum Vehicle { Car, Motorcycle, Train } Vehicle myVehicle = Vehicle.Car; 1) String value = (String) myVehicle;

C# / C Sharp

1718

[Announce] DataDirect XML Converters 3.1 Released - HL7 StandardSupport

by: Stylus Studio |last post by:

Dear comp.text.xml, DataDirect XML Converters 3.1, Java and .NET components that provide bi-directional, programmatic access to non-XML files including EDI, flat files and other legacy formats, has been released and is now available for free trial download at: http://www.xmlconverters.com/download/ Here are some of the highlights of the new release: * Support for Health Level Seven (HL7) - the health industry's

.NET Framework

1448

[Announce] DataDirect XML Converters 3.1 Released - HL7 Support

by: Stylus Studio |last post by:

Dear comp.databases.ms-sqlserver, DataDirect XML Converters are Microsoft .NET and components that provide bi-directional, programmatic access to non-XML files including EDI, flat files and other legacy formats. DataDirect XML Converters 3.1 has been released and is now available for free trial download at: http://www.xmlconverters.com/download/ Here are some of the highlights of the new release:

Microsoft SQL Server

9456

What is ONU?

by: marktang |last post by:

ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...

General

9275

Changing the language in Windows 10

by: Hystou |last post by:

Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...

Windows Server

9873

Maximizing Business Potential: The Nexus of Website Design and Digital Marketing

by: jinu1996 |last post by:

In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...

Online Marketing

9713

Discussion: How does Zigbee compare with other wireless protocols in smart home applications?

by: tracyyun |last post by:

Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...

General

8713

AI Job Threat for Devs

by: agi2029 |last post by:

Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...

Career Advice

6534

Couldn’t get equations in html when convert word .docx file to html file in C#.

by: conductexam |last post by:

I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...

C# / C Sharp

5142

Trying to create a lan-to-lan vpn between two differents networks

by: TSSRALBI |last post by:

Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

Networking - Hardware / Configuration

5304

Windows Forms - .Net 8.0

by: adsilva |last post by:

A Windows Forms form does not have the event Unload, like VB6. What one acts like?

Visual Basic .NET

2 3359

How to add payments to a PHP MySQL app.

by: muto222 |last post by:

How can i add a mobile payment intergratation into php mysql website.

PHP

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisem*nts and analytics tracking please visit the page.

converters using c | Bytes (2024)
Top Articles
Latest Posts
Article information

Author: Zonia Mosciski DO

Last Updated:

Views: 5541

Rating: 4 / 5 (71 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Zonia Mosciski DO

Birthday: 1996-05-16

Address: Suite 228 919 Deana Ford, Lake Meridithberg, NE 60017-4257

Phone: +2613987384138

Job: Chief Retail Officer

Hobby: Tai chi, Dowsing, Poi, Letterboxing, Watching movies, Video gaming, Singing

Introduction: My name is Zonia Mosciski DO, I am a enchanting, joyous, lovely, successful, hilarious, tender, outstanding person who loves writing and wants to share my knowledge and understanding with you.