回複:懂C++的大俠幫看看, 謝謝

#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 }
};

所有跟帖: 

std::cout << temp< } should be std::cout <<temp<<endl; } -greenpine_1234- 給 greenpine_1234 發送悄悄話 (0 bytes) () 02/20/2006 postreply 12:03:14

請您先登陸,再發跟帖!