CPU-Easy

文件结构概览:

 

 

main.cpp:

#include <iostream>
#include<stdio.h>
#include<stdlib.h>
#include "function_for_SqList.h"
using namespace std;

int main()
{
    testFunction();
    return 0;
}

 

function_for_SqList.h:

//在.h文件中声明方法,声明自定义常量,如:#define MAXSIZE 100、 #typedefine int ElemType; 等。
void
testFunction();

 

function_for_SqList.cpp:

#include<stdio.h>
#include<stdlib.h>
#include "function_for_SqList.h"
void testFunction(){
    printf("多文件测试成功!\n");
}

 

结果:

 

分类:

技术点:

相关文章:

  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-11-30
  • 2021-05-08
猜你喜欢
  • 2022-12-23
  • 2021-04-25
  • 2021-12-18
  • 2021-11-17
  • 2021-12-06
  • 2021-12-23
  • 2021-12-23
相关资源
相似解决方案