head.h
//1、windows中
#pragma once
/*文件内容*/
//2、通用
#ifndef __HEAD_H_
#define __HEAD_H__
/*文件内容*/
#endif
main.cpp
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include "head.h"
int main(int argc, char* argv[])
{
system("pause");
return EXIT_SUCCESS;
}