zoukankan      html  css  js  c++  java
  • 简历的快速复制

    #include "stdafx.h"
    #include "iostream.h"
    
    const int CHAR_LEN = 128; //定义一个常量
    struct Student //定义一个结构体
    {
        char szName[CHAR_LEN]; //姓名
        int nAge; //年龄
        char szSex[CHAR_LEN]; //性别
        char szAddress[CHAR_LEN]; //地址
    };
    
    
    int main(int argc, char* argv[])
    {
        Student mystu; //定义一个结构体对象
        mystu.nAge = 15; //设置结构体对象成员
        Student mystu2; //定义另一个结构体对象
        mystu2 = mystu; //为结构体对象赋值
        cout << "年龄为: " << mystu2.nAge << endl;
        return 0;
    }
    致命错误C1010:在寻找预编译指示头文件时,文件未预期结束。
      就是没有找到预编译指示信息的头文件。
      问题一般发生在:通过添加文件的方式,添加了一些cpp文件到一个MFC的程序,但该cpp文件并不是MFC,而是标准的C++。 
      解决方案1: 右键单击项目工程中的cpp文件,在菜单Project->Settings->C/C++->Precompile Header,设置为第一项:Not using precompile headers。
      解决方案2:在.cpp文件开头添加包含文件stdafx.h。 #include"stdafx.h"
  • 相关阅读:
    spring注解集合
    spring工作原理理解
    Linux下mysql命令 导入 导出sql文件
    List和Set排序的实现
    LeetCode--树
    LeetCode--链表
    LeetCode--字符串
    LeetCode--贪心算法
    LeetCode--数组
    数据库编程基本练习题
  • 原文地址:https://www.cnblogs.com/pythonschool/p/2744711.html
Copyright © 2011-2022 走看看