Google Answers Logo
View Question
 
Q: Microsoft Visual C++ 6.0 Source Code Examples ( Answered 5 out of 5 stars,   1 Comment )
Question  
Subject: Microsoft Visual C++ 6.0 Source Code Examples
Category: Computers > Programming
Asked by: cerebus-ga
List Price: $50.00
Posted: 07 Jan 2003 18:18 PST
Expires: 06 Feb 2003 18:18 PST
Question ID: 139061
I’m looking for two small code samples to help me work with one of our
junior developers in debugging his application.  It’s been awhile
since I’ve done any professional programming and I’m not overly
proficient in C++…

I’m looking for two small sample applications, including source code
(preferably developed in Microsoft Visual C++ 6.0).

The first sample should be well-commented and clearly show an
appropriate use of C++ templates to handle a variety of data types in
the function parameter – something using integers and real numbers,
for instance.

The second sample should also be well-commented and include functions
to correctly perform addition, subtraction, multiplication and
division of complex numbers.  The focus of the second sample should be
on the methods used to perform the math, as well as a perhaps two
different implementations, one using any C++ -specific complex number
datatypes or libraries (if any exist!) and the second using discrete
variables to hold the real and imaginary parts, solving the problem
algebraically.

The code should compile cleanly and be developed with an eye toward
providing a sample to build upon rather than being production-ready in
itself.
Answer  
Subject: Re: Microsoft Visual C++ 6.0 Source Code Examples
Answered By: studboy-ga on 08 Jan 2003 01:58 PST
Rated:5 out of 5 stars
 
Dear cerebus-ga,

Thank you for your question.  
I have created a zip file of two sample Visual C++ projects
for you--please download them from:

http://csua.berkeley.edu/~pchen/samples.zip

The first Visual C++ project is templatesamples.dsw, and 
the second is complexsamples.dsw.

Please see the ReadMe file within each directory
and also consult the main code files--the comments 
are in there.

Please use the Ask for Clarification feature of Google Answers
should there be any questions.  

Thanks for using Google Answers!

Clarification of Answer by studboy-ga on 08 Jan 2003 22:35 PST
I have added some more comments to templatesamples.cpp
cerebus-ga rated this answer:5 out of 5 stars and gave an additional tip of: $5.00
Quick response.  Delivered exactly what was asked for with good
explanation.  Excellent job!

Comments  
Subject: Re: Microsoft Visual C++ 6.0 Source Code Examples
From: dpwiener-ga on 20 Feb 2003 14:05 PST
 
I just ran across this question, and found the answer interesting
(since I'm trying to get up to speed in Visual C++ 6.0).  But when I
tried to download the Zip file
(http://csua.berkeley.edu/~pchen/samples.zip) it was unavailable.  Is
there some way of still accessing those sample projects?

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy