回复:懂C++的大侠帮看看, 谢谢

来源: 2006-02-20 12:01:22 [旧帖] [给我悄悄话] 本文已被阅读:

#include
#include
#include "calculat.h"

void main(void)
{
std::cout EnglishWeight anyName(100,50);
std::cout }

--------------------------- calculat.h ---------------------
class EnglishWeight
{
typedef int Weight;
Weight temp;

// Constructor
EnglishWeight(int x, int y)
{
temp = x+y;
}

public void PrintResult() {
std::cout }
};