如何在C++下美化DOS程序界面

来源:百度知道 编辑:UC知道 时间:2024/06/06 23:21:36
刚开始学C++ 还不会写windows窗口界面 只会写命令行下执行的DOS程序 但是感觉写的程序运行时外观都太丑了 想用不借助windows的方法(如制表符之类的)把程序界面尽可能美化一点
我知道这是没有任何发展性意义的 早晚是需要写win界面程序的 但还是希望大师们能指点一下 最好具体一点
悬赏分80 算个意思吧
最好有人能给个原理或者想法,不必代码

这是我写的一个小程序,感觉界面还可以,把代码发给你研究下吧。

#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>

/**
Program Function: Implement the functions of a complex class.
Author: Chu Shanming.
Date: Nov 20th,2009.
CopyRight 2008-2009 All Rights Reserved.
Version:1.0.0
Bugs: Unknown.
*/

class Complex{
private:
float real,image;
public:
Complex(float r = 0,float i = 0):real(r),image(i){}
//~Complex();
Complex(const Complex& s){
real = s.real;
image = s.image;
}

friend Complex operator + (Complex& a,Complex& b);
friend Complex operator - (Complex& a,Complex& b);
friend Complex operator * (Complex& a,Complex& b);
friend Complex operator / (Complex& a,Complex& b);
friend Complex& operator += (Complex& a,Complex& b);
friend Complex& operator -= (Complex& a,Complex& b);
friend bool operator