Exforsys
+ Reply to Thread
Results 1 to 2 of 2

Syntax

This is a discussion on Syntax within the C and C++ forums, part of the Programming Talk category; hi, is any one can help me...? I'm very new in c++ and now I want to write a syntax ...

  1. #1
    allldo is offline Junior Member Array
    Join Date
    Mar 2011
    Answers
    2

    Lightbulb Syntax

    hi, is any one can help me...?

    I'm very new in c++ and now I want to write a syntax for input number 111 which will give out put in chart (hundredth eleven). please write for me a simple syntax so I can understand it. THX


  2. #2
    techvinny is offline Moderator Array
    Join Date
    Dec 2010
    Answers
    56
    hi...you may want to have a look into one of the functions in string.h

    itoa(int value, char * str, int radix);

    value is the number which you want to convert & str is your word string. Here radix is for base of number which will normally be uses as 10.

    However, itoa is not a valid ISO C/C++ function but that's not stopping you to use it. You may want to check if your target compiler supports it.


Latest Article

Network Security Risk Assessment and Measurement

Read More...