我要怎么才能写出这样的代码能让它运行,这是我在学习视频里要对部分源代码

我一直在自学c++编程,但是每次去改变都有问题好多问题,我复制张贴上面,希望有大神可以指导一下

注:这些代码都是网上找的源代码,改了文件路径但是在运行时不能达到视屏教学的效果。

#include "stdafx.h"

#include <graphics.h>
#include <conio.h>
#include <math.h>
#include <time.h>
#include<stdio.h>
#include <mmsystem.h>        // 使用该计时器必须包含的文件
#pragma comment ( lib, "winmm.lib" )

/***** 宏定义区 ******/

#define NUM        13            // 烟花种类数量宏定义

/***** 结构定义区 **********/

// 烟花结构
struct FIRE
{
    int r;                    // 当前爆炸半径
    int max_r;                // 爆炸中心距离边缘最大半径
    int x, y;                // 爆炸中心在窗口的坐标
    int cen_x, cen_y;        // 爆炸中心相对图片左上角的坐标
    int width, height;        // 图片的宽高
    int xy[240][240];        // 储存图片像素点

    bool show;                // 是否绽放
    bool draw;                // 开始输出像素点
    DWORD t1, t2, dt;        // 绽放速度
}Fire[NUM];

// 烟花弹结构
struct JET
{
    int x, y;                // 喷射点坐标
    int hx, hy;                // 最高点坐标------将赋值给 FIRE 里面的 x, y
    int height;                // 烟花高度
    bool shoot;                // 是否可以发射

    DWORD t1, t2, dt;        // 发射速度
    IMAGE img[2];            // 储存花弹一亮一暗图片
    byte n : 1;                // 图片下标
}Jet[NUM];




/**** 函数申明区 ****/
void welcome();//欢迎界面
void Wishing();        // 滚动祝福
void Init(int);        // 初始化烟花
void Load();        // 加载烟花图片
void Shoot();        // 发射烟花
void Chose(DWORD&);        // 筛选烟花

void Style(DWORD&);        // 发射样式
void Show(DWORD*);        // 绽放烟花


                        // 主函数
int main()
{
    initgraph(1200, 800);
    srand(time_t(0));

    // 播放背景音乐
    mciSendString(L"open .\\C:\\Users\\XJ\\Desktop\\小幸运.mp3 alias bk", 0, 0, 0);
    mciSendString(L"play bk repeat", 0, 0, 0);

    //setfillstyle(0);
    settextstyle(50, 0, 微软黑体);
    setcolor(YELLOW);
    outtextxy(480, 100, "加油!肖建你什么都没有啊!你怕失去什么呢?");
    outtextxy(440, 150, "祝大家新年快乐");
    getchar();
    cleardevice();
    settextstyle(25, 0, "楷体");
    outtextxy(400, 250, "一个人要想实现自己的目标");
    outtextxy(400, 300, "离不开艰辛的脑力劳动和体力劳动");
    outtextxy(400, 350, "如果我不愿付出这样的代价");
    outtextxy(400, 400, "那么我的未来一定充满眼泪和贫穷");
    outtextxy(400, 450, "我会为那没有笑声与鲜花的未来顿足捶胸");
    outtextxy(400, 500, "以后我不再为自己感到悲伤");
    outtextxy(400, 550, "我不再走在老路上");
    outtextxy(400, 600, "2016 付出不亚于任何人的努力!");
    outtextxy(700, 660, "——九夏");
    getchar();
    welcome();
    DWORD t1 = timeGetTime();            // 筛选烟花计时
    DWORD st1 = timeGetTime();            // 播放花样计时
    DWORD* pMem = GetImageBuffer();        // 获取窗口显存指针

    for (int i = 0; i < NUM; i++)        // 初始化烟花
    {
        Init(i);
    }
    Load();                                // 将烟花图片信息加载进相应结构中
    BeginBatchDraw();                    // 开始批量绘图

    while (!kbhit())
    {
        Sleep(10);

        // 随机选择 2000 个像素点擦除
        for (int clr = 0; clr < 1000; clr++)
        {
            for (int j = 0; j < 2; j++)
            {
                int px1 = rand() % 1200;
                int py1 = rand() % 800;

                if (py1 < 799)                // 防止越界
                    pMem[py1 * 1200 + px1] = pMem[py1 * 1200 + px1 + 1] = BLACK;    // 对显存赋值擦出像素点
            }
        }
        Chose(t1);            // 筛选烟花
        Shoot();            // 发射烟花
        Show(pMem);            // 绽放烟花
        Wishing();            // 滚动字符
        Style(st1);            // 花样发射
        FlushBatchDraw();    // 显示前面的所有绘图操作
    }
}


// 初始化烟花参数
void Init(int i)
{
    // 分别为:烟花中心到图片边缘的最远距离、烟花中心到图片左上角的距离 (x、y) 两个分量
    int r[13] = { 120, 120, 155, 123, 130, 147, 138, 138, 130, 135, 140, 132, 155 };
    int x[13] = { 120, 120, 110, 117, 110, 93, 102, 102, 110, 105, 100, 108, 110 };
    int y[13] = { 120, 120, 85, 118, 120, 103, 105, 110, 110, 120, 120, 104, 85 };

    /**** 初始化烟花 *****/

    Fire[i].x = 0;                // 烟花中心坐标
    Fire[i].y = 0;
    Fire[i].width = 240;                // 图片宽
    Fire[i].height = 240;                // 图片高
    Fire[i].max_r = r[i];                // 最大半径
    Fire[i].cen_x = x[i];                // 中心距左上角距离
    Fire[i].cen_y = y[i];
    Fire[i].show = false;            // 是否绽放
    Fire[i].dt = 5;                // 绽放时间间隔
    Fire[i].t1 = timeGetTime();
    Fire[i].r = 0;                // 从 0 开始绽放

                                /**** 初始化烟花弹 *****/

    Jet[i].x = -240;                // 烟花弹左上角坐标
    Jet[i].y = -240;
    Jet[i].hx = -240;                // 烟花弹发射最高点坐标
    Jet[i].hy = -240;
    Jet[i].height = 0;                // 发射高度
    Jet[i].t1 = timeGetTime();
    Jet[i].dt = rand() % 10;        // 发射速度时间间隔
    Jet[i].n = 0;                // 烟花弹闪烁图片下标
    Jet[i].shoot = false;            // 是否发射
}


// 加载图片
void Load()
{
    /**** 储存烟花的像素点颜色 ****/
    IMAGE fm, gm;
    loadimage(&fm, ".\\C:\\Users\\XJ\\Desktop\\素材\\flower.jpg", 3120, 240);

    for (int i = 0; i < 13; i++)
    {
        SetWorkingImage(&fm);
        getimage(&gm, i * 240, 0, 240, 240);
        SetWorkingImage(&gm);

        for (int a = 0; a < 240; a++)
            for (int b = 0; b < 240; b++)
                Fire[i].xy[a][b] = getpixel(a, b);
    }

    /**** 加载烟花弹 ************/
    IMAGE sm;
    loadimage(&sm, ".\\C:\\Users\\XJ\\Desktop\\素材\\shoot.jpg", 200, 50);

    for (int i = 0; i < 13; i++)
    {
        SetWorkingImage(&sm);
        int n = rand() % 5;

        getimage(&Jet[i].img[0], n * 20, 0, 20, 50);            // 暗
        getimage(&Jet[i].img[1], (n + 5) * 20, 0, 20, 50);        // 亮
    }
}

图片加载练习.cpp
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(74): error C2665: “settextstyle”: 4 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(254): note: 可能是“void settextstyle(int,int,LPCTSTR)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(74): note: 尝试匹配参数列表“(int, int, const char [5])”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(76): error C2665: “outtextxy”: 2 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(231): note: 可能是“void outtextxy(int,int,TCHAR)”
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(230): note: 或    “void outtextxy(int,int,LPCTSTR)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(76): note: 尝试匹配参数列表“(int, int, const char [42])”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(77): error C2665: “outtextxy”: 2 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(231): note: 可能是“void outtextxy(int,int,TCHAR)”
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(230): note: 或    “void outtextxy(int,int,LPCTSTR)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(77): note: 尝试匹配参数列表“(int, int, const char [15])”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(80): error C2665: “settextstyle”: 4 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(254): note: 可能是“void settextstyle(int,int,LPCTSTR)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(80): note: 尝试匹配参数列表“(int, int, const char [5])”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(81): error C2665: “outtextxy”: 2 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(231): note: 可能是“void outtextxy(int,int,TCHAR)”
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(230): note: 或    “void outtextxy(int,int,LPCTSTR)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(81): note: 尝试匹配参数列表“(int, int, const char [25])”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(82): error C2665: “outtextxy”: 2 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(231): note: 可能是“void outtextxy(int,int,TCHAR)”
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(230): note: 或    “void outtextxy(int,int,LPCTSTR)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(82): note: 尝试匹配参数列表“(int, int, const char [31])”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(83): error C2665: “outtextxy”: 2 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(231): note: 可能是“void outtextxy(int,int,TCHAR)”
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(230): note: 或    “void outtextxy(int,int,LPCTSTR)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(83): note: 尝试匹配参数列表“(int, int, const char [25])”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(84): error C2665: “outtextxy”: 2 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(231): note: 可能是“void outtextxy(int,int,TCHAR)”
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(230): note: 或    “void outtextxy(int,int,LPCTSTR)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(84): note: 尝试匹配参数列表“(int, int, const char [31])”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(85): error C2665: “outtextxy”: 2 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(231): note: 可能是“void outtextxy(int,int,TCHAR)”
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(230): note: 或    “void outtextxy(int,int,LPCTSTR)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(85): note: 尝试匹配参数列表“(int, int, const char [37])”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(86): error C2665: “outtextxy”: 2 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(231): note: 可能是“void outtextxy(int,int,TCHAR)”
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(230): note: 或    “void outtextxy(int,int,LPCTSTR)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(86): note: 尝试匹配参数列表“(int, int, const char [25])”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(87): error C2665: “outtextxy”: 2 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(231): note: 可能是“void outtextxy(int,int,TCHAR)”
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(230): note: 或    “void outtextxy(int,int,LPCTSTR)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(87): note: 尝试匹配参数列表“(int, int, const char [17])”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(88): error C2665: “outtextxy”: 2 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(231): note: 可能是“void outtextxy(int,int,TCHAR)”
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(230): note: 或    “void outtextxy(int,int,LPCTSTR)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(88): note: 尝试匹配参数列表“(int, int, const char [30])”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(89): error C2665: “outtextxy”: 2 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(231): note: 可能是“void outtextxy(int,int,TCHAR)”
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(230): note: 或    “void outtextxy(int,int,LPCTSTR)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(89): note: 尝试匹配参数列表“(int, int, const char [9])”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(103): error C4996: 'kbhit': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _kbhit. See online help for details.
1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\conio.h(458): note: 参见“kbhit”的声明
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(170): error C2665: “loadimage”: 2 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(264): note: 可能是“void loadimage(IMAGE *,LPCTSTR,LPCTSTR,int,int,bool)”
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(263): note: 或    “void loadimage(IMAGE *,LPCTSTR,int,int,bool)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(170): note: 尝试匹配参数列表“(IMAGE *, const char [38], int, int)”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(185): error C2665: “loadimage”: 2 个重载中没有一个可以转换所有参数类型
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(264): note: 可能是“void loadimage(IMAGE *,LPCTSTR,LPCTSTR,int,int,bool)”
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.13.26128\include\easyx.h(263): note: 或    “void loadimage(IMAGE *,LPCTSTR,int,int,bool)”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(185): note: 尝试匹配参数列表“(IMAGE *, const char [37], int, int)”时
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(227): error C2664: “MCIERROR mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND)”: 无法将参数 1 从“char [30]”转换为“LPCWSTR”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(227): note: 与指向的类型无关;强制转换要求 reinterpret_cast、C 样式强制转换或函数样式强制转换
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(228): error C2664: “MCIERROR mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND)”: 无法将参数 1 从“char [50]”转换为“LPCWSTR”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(228): note: 与指向的类型无关;强制转换要求 reinterpret_cast、C 样式强制转换或函数样式强制转换
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(229): error C2664: “MCIERROR mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND)”: 无法将参数 1 从“char [30]”转换为“LPCWSTR”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(229): note: 与指向的类型无关;强制转换要求 reinterpret_cast、C 样式强制转换或函数样式强制转换
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(223): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(224): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(225): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(269): error C2664: “MCIERROR mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND)”: 无法将参数 1 从“char [30]”转换为“LPCWSTR”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(269): note: 与指向的类型无关;强制转换要求 reinterpret_cast、C 样式强制转换或函数样式强制转换
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(270): error C2664: “MCIERROR mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND)”: 无法将参数 1 从“char [50]”转换为“LPCWSTR”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(270): note: 与指向的类型无关;强制转换要求 reinterpret_cast、C 样式强制转换或函数样式强制转换
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(271): error C2664: “MCIERROR mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND)”: 无法将参数 1 从“char [30]”转换为“LPCWSTR”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(271): note: 与指向的类型无关;强制转换要求 reinterpret_cast、C 样式强制转换或函数样式强制转换
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(265): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(266): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(267): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(325): error C2664: “MCIERROR mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND)”: 无法将参数 1 从“char [30]”转换为“LPCWSTR”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(325): note: 与指向的类型无关;强制转换要求 reinterpret_cast、C 样式强制转换或函数样式强制转换
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(326): error C2664: “MCIERROR mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND)”: 无法将参数 1 从“char [50]”转换为“LPCWSTR”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(326): note: 与指向的类型无关;强制转换要求 reinterpret_cast、C 样式强制转换或函数样式强制转换
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(327): error C2664: “MCIERROR mciSendStringW(LPCWSTR,LPWSTR,UINT,HWND)”: 无法将参数 1 从“char [30]”转换为“LPCWSTR”
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(327): note: 与指向的类型无关;强制转换要求 reinterpret_cast、C 样式强制转换或函数样式强制转换
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(321): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(322): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明
1>h:\图片加载练习\图片加载练习\图片加载练习.cpp(323): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>c:\program files (x86)\windows kits\10\include\10.0.16299.0\ucrt\stdio.h(1772): note: 参见“sprintf”的声明
1>已完成生成项目“图片加载练习.vcxproj”的操作 - 失败。
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========



评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值