Monday 27 May 2013


Solution Of  int AscToInt(const char* num)

int AscToInt(const char *num){
    int intNum = 0;
    int curDigit = 0;
    int minus = 1;

    if(*num == '-')
    {
        minus = -1;
        num++;
    }
   
    int len = strlen(num) - 1;

    for(int i = 0;i<=len;i++)
    {
        curDigit = *num - 48; // "456" -> 4
        intNum += curDigit * pow(10, (double)(len - i));
        num++;
    }

    intNum *= minus;

    return intNum;
}

Friday 17 May 2013

Hi, Second week of oop344 has almost gone. I find the subject vary heavy. May be I am slow in following my professor..scared..but will do my best

Wednesday 8 May 2013

Welcome to Object Oriented Programming!!

My blogs are going to be about c++  which is an object oriented programming language.I wish to strengthen my programming skills through this blogs. Any suggestions and comments will be highly appreciated.

Thanks Everyone.