StrNum::Set( int )

Set a StrNum's value.

Virtual?

No

 

Class

StrNum

 

Arguments

int v

the number to store

Returns

void

 

Notes

A StrNum always stores numbers using base ten.

Example

#include <iostream>
#include <stdhdrs.h>
#include <strbuf.h>

int main( int argc, char **argv )
{
    StrNum sn;
    sn.Set ( 1666 );
    cout << "sn.Text() returns \"" << sn.Text() << "\"\n";
}

Executing the preceding code produces the following output:

sn.Text() returns "1666"