a simple question for C++ class# Programming - 葵花宝典
v*i
1 楼
I had a puzzling bug today. Though I finally fixed it, I am not clear about
the reason. I describe this question with 3 short codes: example.cpp, para.h
and para.cpp.
/****************************
example.cpp; a "hello world" main function
****************************/
#include
#include "para.h"
using namespace std;
int main()
{
Para example; // example is an instance of class Para.
cout <return 1;
}
/****************************
para.h
*******************
the reason. I describe this question with 3 short codes: example.cpp, para.h
and para.cpp.
/****************************
example.cpp; a "hello world" main function
****************************/
#include
#include "para.h"
using namespace std;
int main()
{
Para example; // example is an instance of class Para.
cout <return 1;
}
/****************************
para.h
*******************