User profile: funprogrammer

User info
User name:funprogrammer
History
Joined:
Number of posts:70
Latest posts:

vector::operator[]
I was not understanding vector::operator[] functionality. I was assuming I can do an assignment as s...

GCD
Wow, good point @kevinkjt2000. That explains thanks :)

GCD
What is wrong with this GCD program? [code] int gcd(int a, int b){ if(b==0) return a; re...

Vector resize
Why does vector resize cause array entries to be zeroed out? [code] #include <cmath> #include <cs...

buffer is not clearing
Thanks @andy1992 & @tipaye, changing it to unsigned long worked..