User profile: chinalinux

User info
User name:chinalinux
History
Joined:
Number of posts:26
Latest posts:

how to init static 2d arrays of a class
1. because of the modifier myclass::, if you remove it, like this: int b=0; you will get no error to...

max/min/average program
try to input negative numbers to observe the change of min:-)

Computing whether is a perfect number
if (result = true) take a look at what you are doing ? it's not assignment equal but logic equal s...

Age- year
cout << "Mr. "<< Name << " you were born on year " << Year - Age;

Array of bitsets
#include <iostream> #include <bitset> using namespace std; int main(void) { bitset<64> sub...