Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

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

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
jasmoft146
Asked:
jasmoft146
1 Solution
 
nietodCommented:
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
 
jasmoft146Author Commented:
Great, thanks, we are only using vc++ so windows is not a problem.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now