473,508 Members | 2,241 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Print decimal equivalen of binary number

3 New Member
input an integer containing only 0 and 1 binary number and prints its decimal equivalent..help give me to solve this problem give the codes on this problem..tnx..
Oct 4 '07 #1
5 3085
Meetee
931 Recognized Expert Moderator Contributor
input an integer containing only 0 and 1 binary number and prints its decimal equivalent..help give me to solve this problem give the codes on this problem..tnx..
Read posting guidelines

Welcome to TSDN.

Regards
Oct 4 '07 #2
dmjpro
2,476 Top Contributor
input an integer containing only 0 and 1 binary number and prints its decimal equivalent..help give me to solve this problem give the codes on this problem..tnx..
Write your own code first :-)

Debasis Jana
Oct 4 '07 #3
lucky26ph
3 New Member
Write your own code first :-)

Debasis Jana
I Dont have any codes for that..i am jst a newbie in c++ so plz can u help me..
Oct 4 '07 #4
Meetee
931 Recognized Expert Moderator Contributor
I Dont have any codes for that..i am jst a newbie in c++ so plz can u help me..
If you take a little pain to search on google by "convert binary number to decimal in C++", you will find many sites discussing this issue. We are not allowed to spoonfeed.

http://www.thescripts.com/forum/thread556318.html

Regards
Oct 4 '07 #5
sicarie
4,677 Recognized Expert Moderator Specialist
I Dont have any codes for that..i am jst a newbie in c++ so plz can u help me..
Sure we can help, but as they are saying, you need to get us started. Have you created an algorithm yet? Do you know how to convert a binary number into a decimal number?
Oct 4 '07 #6

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

Similar topics

21
4493
by: Batista, Facundo | last post by:
Here I send it. Suggestions and all kinds of recomendations are more than welcomed. If it all goes ok, it'll be a PEP when I finish writing/modifying the code. Thank you. .. Facundo
17
6102
by: John Bentley | last post by:
John Bentley: INTRO The phrase "decimal number" within a programming context is ambiguous. It could refer to the decimal datatype or the related but separate concept of a generic decimal number....
687
22818
by: cody | last post by:
no this is no trollposting and please don't get it wrong but iam very curious why people still use C instead of other languages especially C++. i heard people say C++ is slower than C but i can't...
2
3449
by: Steve Summit | last post by:
-----BEGIN PGP SIGNED MESSAGE----- It's often explained that the reason for some of the imprecision in C's definition is so that C can be implemented on different kinds of machines -- say, those...
28
5813
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I convert a Number into a String with exactly 2 decimal places?...
2
4482
by: Tukeind | last post by:
Hello, I am receiving the following error: error C2065: 'to_binary' : undeclared identifier while running the code below. If anyone can help I'll appreciate it? Thank you, Tukeind
9
3459
by: Leo jay | last post by:
i'd like to implement a class template to convert binary numbers to decimal at compile time. and my test cases are: BOOST_STATIC_ASSERT((bin<1111,1111,1111,1111>::value == 65535));...
1
2931
by: girl23 | last post by:
Hi there ]i am new to C programming and totally lost. iam trying to convert decimal to binary. here is what i did please ignore the case h and m. I am trying to get case 'b' to work. i do not...
45
3753
by: hank | last post by:
I have this code here, it converts decimal numbers to binary. There is one problem. The output is printed 'in reverse' and I have no clue at all how to solve this problem. Output of program: ...
0
7225
marktang
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,...
0
7326
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7383
jinu1996
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...
0
5627
agi2029
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,...
0
4707
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...
0
3194
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...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.