Hey, I'm new to posting, but have been reading the forums for about a year now.  I am taking a summer C++ programming class and I need a way to compile my program on a mac.  The class tells me how to do it on a Windows machine, but I would like to have my program work on my Mac.  In windows I need to type in a compile command like this: 
bgi++ -Wall sample.c -o nameofprogram
Is there a way to do this in the terminal, and if so do I need any special programs. I dont really care if I can send in my program, I just email the code for my homework. I just need it to compile and run on my computer. Any help would be great. Thanks.
	
		
			
		
		
	
				
			bgi++ -Wall sample.c -o nameofprogram
Is there a way to do this in the terminal, and if so do I need any special programs. I dont really care if I can send in my program, I just email the code for my homework. I just need it to compile and run on my computer. Any help would be great. Thanks.