answersLogoWhite

0


Best Answer

#include
#include

using std::cin;
using std::cout;
using std::endl;
using std::string;

int main()
{
string number = "0";
cout << endl << "Enter a number: ";
cin >> number;

cout << endl << "Number as a string is " << number
<< endl;

system("PAUSE");
return 0;
}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Function in C plus plus that takes in any number parameter and returns the string representation of it?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

A function prime that returns if its argument is a prime no or returns zero?

prime number


What function returns the number of occurrences of a specified character in the input string?

The charAt function returns the number of occurrences of a specified character in the input string.


What is an absolute function?

The absolute value function returns the absolute value of a number.


What is the name of the function that returns number of cells with numerical values?

The COUNT function.


What is the value of Math.round(-122.83)?

The function round requires another parameter which indicated the degree to which the number is to be rounded. Without it the function has no meaning.


What does the inc function do in clojure?

Returns a number one greater.


Is the average function is a mathematical function?

It is a statistical function specifically, finding a number that is a good representation of a set of numbers.


What is the function that returns the number corresponding to the beginning of the date December 31 1899?

Now function


Does the TI-89 have a built-in function that returns the number of elements in a list or matrix?

Yes, the in-built dim() function


What is pv in excell?

The PV function is a financial function. It is used to return the present value of an investment based on an interest rate and a constant payment schedule. The syntax is a follows: PV( rate, number_payments, payment, [FV], [Type] ) Rate is the interest rate for the investment. Number_payments is the number of payments for the annuity. Payment is the amount of the payment made each period. If it is omitted, you have to enter a FV value. FV is optional. It is the future value of the payments. If it is omitted, it is assumed to be 0. Type is optional. It indicates when the payments are due. Type can be one of the following values: 0 for when payments are due at the end of the period, which is the default. 1 for when payments are due at the start of the period. If the Type parameter is left out, the PV function sets the Type value to 0.


Is a single number characteristic describe a population is called a parameter?

Parameter


What is the difference between the PMT and PPMT functions in Excel?

The PPMT function returns the amt. of interest in a specified instalment number whereas the PMT function returns the amt. of interest in every EMI payment.