PROGRAMMING LANGUAGE/C++
inline 함수
JC0
2021. 11. 11. 20:27
#include <iostream>
using namespace std;
class Complex
{
private:
int real;
int image;
public:
void SetComplex()
{
real = 2;
image = 5;
}
void ShowComplex();
};
inline void Complex::ShowComplex()
{
cout << "( " << real << " + " << image << "i )" << endl;
}
void main()
{
}