VatooVatoo 21 Light Poster

We don't provide code. If you have any problems post your code and people will help you. But for now and your start point and for the last time:

for(int iIndex = 1; iIndex<=100; iIndex++)
{
    cout << iIndex << endl;
    if( iIndex%5==0 ) 
        cout << endl;
}
Duki commented: "We don't provide code" -- then provides code. -2
VatooVatoo 21 Light Poster

Using puts() -- BRAVO!!! Finally someone who doesn't use printf() :o)

I think you are a good C programmer. A few persons are using puts in their code, but puts performance is better than printf.

VatooVatoo 21 Light Poster

This is working code on Watcom C/C++

#include <stdio.h>
#include <stdlib.h> 
#include <ctype.h> 
#include <math.h>
#include <string.h> 

int iConvertString2Integer(char *string, int iIndex, int iIntegerValue);
int iString2Integer(char *string);

int main (void)
{
    char string[512];
    printf("Enter a string of integers: ");
    scanf("%s\0", string);

    printf("The integer entered is : %d\n", iString2Integer((char *)string));
    system("PAUSE");
    return 0;
}

int iString2Integer(char *string)
{
    return iConvertString2Integer(string, strlen(string)-1, 0);
}

int iConvertString2Integer(char *string, int iIndex, int iIntegerValue)
{
    if (*string=='\0' || !isdigit(*string))
    {
        return iIntegerValue;
    }
    else
    {
        iIntegerValue += (*string-'0') * ((int)pow( 10, iIndex ));
        return iConvertString2Integer(string + 1, --iIndex, iIntegerValue);
    }
}
np complete commented: Dont do HW for others +0
nitin1 commented: don't show off your knowledge +0
WaltP commented: Good, I hope he gets your A -3
VatooVatoo 21 Light Poster

As deceptikon said, a declaration of variable is saying to compiler "I will use a variable it is defined before and on another file."

nitin1 commented: why are you repeating it ? +0
VatooVatoo 21 Light Poster

You need to write your own C# compiler. there are not any compiler in the market for this purpose.