User profile: Duoas

User info
User name:Duoas
Name:Michael Thomas Greer
Location:Millville, NJ
Website:http://home.comcast.net/~michaelthomasgreer/
Bio:Self-taught computer programming since I was a young boy.

I studied at Rutgers University, majoring in Computer Science and Mathematics.

I've had all kinds of random jobs, from gas station attendant/assistant manager to software consultant to cook to substitute teacher.

Hablo / escribo / leo espaƱol.

I like being outdoors, camping, canoeing, field archery -- alas for time!

I married my best friend. She's not girly at all, but our daughter is decidedly girly enough for both of them. (She wants to be a princess. She's only two!)

Random threads I like:
http://www.cplusplus.com/forum/lounge/1953/
http://www.cplusplus.com/forum/beginner/2287/
http://www.cplusplus.com/forum/beginner/28855/

And, of course, I have to plug my current work:
http://www.cplusplus.com/faq/
Statistical data
Birthdate:Apr 28, 1974
Gender:Male
Occupation:Other
Skills:C
BASIC
C++
Visual Basic
Pascal
Delphi
Assembly
Java
Python
Tcl/Tk
Haskell
Scheme
History
Joined:
Number of posts:8520
Latest posts:

Checking if variables are pairwise distinct
You could also just use a std::set. [code] set<int> xs; xs.insert(s); xs.insert(m); ... if (xs.size...

Compelling use of Friends?
[quote]Friends are probably a last resort.[/quote] -1. Friends are part of a class's encapsulation. ...

going from numbers to barcode
You've got two issues to solve. One is to convert a [i]single digit[/i] to its representation. It s...

Quadratic Formula Program
LOL. In other words, use [tt]pow()[/tt] to compute the square root. That works, though. Good job fo...

Quadratic Formula Program
BTW, you have changed the output from the assignment. You say "The roots are repeated." No they are...