A PHP Error was encountered

Severity: Warning

Message: fopen(/tmp/ci_sessionmssnj6vpha1eqh2rrlsrps26s065p70v): failed to open stream: No space left on device

Filename: drivers/Session_files_driver.php

Line Number: 176

Backtrace:

File: /var/www/html/application/controllers/Project.php
Line: 10
Function: __construct

File: /var/www/html/index.php
Line: 311
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Failed to read session data: user (path: /tmp)

Filename: Session/Session.php

Line Number: 143

Backtrace:

File: /var/www/html/application/controllers/Project.php
Line: 10
Function: __construct

File: /var/www/html/index.php
Line: 311
Function: require_once

Convert Decimal Number to a Number with base N in C++ | JAYPARMAR
Coders Packet

Convert Decimal Number to a Number with base N in C++

By Jay Parmar

A simple C++ program that lets you convert a decimal number (base 10) to a base N number using an array of characters

The code consist of a C++ approach of converting a decimal number into a number with base given by the user.

 

Code asks the user to enter a number in base-ten (10) and a base in which the code has to calculate the value of!

 

We can convert our number to Binary, Octal or in any base upto Hexadecimal.

 

If the user inputs a base less than Binary (2) or more than Hexadecimal (16), the process terminates the program and exits the code.

 

Here's a snapshot of how the program appears:

 

Decimal to Binary

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by Jay Parmar (JAYPARMAR)

Download packets of source code on Coders Packet