《Thinking in C++》练习题答案——3-1

来源:互联网 发布:网络水军哪里找 编辑:程序博客网 时间:2024/04/28 10:46

头文件:

void a(...);
char b(...);
int c(...);
float d(...);

两个.cpp文件:

#include "1.h"
#include <iostream>
using namespace std;

void a(...)
{
        cout <<"viod a(...)"<<endl;
}

char b(...)
{
        cout <<"char b(...)"<<endl;
        return 0;
}

int c(...)
{
        cout <<"int c(...)"<<endl;
        return 0;
}

float d(...)
{
        cout <<"float d(...)"<<endl;
        return 0;
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include "1.h"
#include <iostream>
using namespace std;

int main()
{
        a();
        b();
        c();
        d();
}

原创粉丝点击