Forum: C++ Feb 24th, 2009 |
| Replies: 2 Views: 454 I changed the reference as pointer that also not working. Finally i found the solution. I just inherit a class from CArray <>, that solves the problem.
struct Coordinates{
int x, y, z;
};... |
Forum: C++ Feb 23rd, 2009 |
| Replies: 2 Views: 454 Hi,
I am using VC++6, MFC Application
I am having the member variable - CArray < Coordinates, Coordinates & > mCoordinates. Coordinates is a structure, contains x, y, and z. When i return... |
Forum: C++ Jun 7th, 2008 |
| Replies: 5 Views: 1,013 //overload operator*
it is similar to overloading << and >>
Just give declaration inside complex0 class as friend.
friend complex0 operator* (int no, complex0& com);
complex0... |
Forum: C++ Jun 7th, 2008 |
| Replies: 8 Views: 1,699 Hi
I think
x [i] = toupper (x[i]) ;
Also iterate to the length of the String. Not the fixed value. In the coding u specified 0 to 12. |
Forum: C++ Jun 7th, 2008 |
| Replies: 8 Views: 1,699 Hi
I think
x [i] = toupper (x[i]) ; |
Forum: C++ Jun 7th, 2008 |
| Replies: 5 Views: 1,013 Hi,
Why dont use friend function for overloading *
Syntax
friend complex0 operator*(int, complex0&);
friend complex0 operator*(complex0&, int); |
Forum: C++ May 25th, 2008 |
| Replies: 6 Views: 1,621 HI
I heard about Number Theory algorithm for long number addition, subtration, multiplication and division. It was found in a book [Cryptography in C]. I hope, It may help to u. |