Solved

Hey nietod, here's an easy one, only you can answer

Posted on 2000-04-26
2
188 Views
Last Modified: 2010-04-02
I found your code for color at the console, and need to know two things.  I am in a c++ class, and can I distribute that code?  Second, can I edit that code?
0
Comment
Question by:jasmoft146
2 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 2754771
I don't have a problem with you editing it or using it.  That is why I posted it.

But

That code is windows-specific.  So it will only work on a windows computer and actually only on a compiler that generates 32 bit windows console programs (most modern ones do, but very old ones don't).   Most programming courses want you to program in non-OS-specific ways.  i.e they want your code to be able to compile and run on any computer.  like a Mac or Unix computer.  So you really need to ask your teacher how he/she feels about it.
0
 
LVL 1

Author Comment

by:jasmoft146
ID: 2755237
Great, thanks, we are only using vc++ so windows is not a problem.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question