
方法一:vs2010的智能感知要求.h必须以非#if系列的预编译指令打头,在代码顶部加上一句#pragma once代码就ok了。
方法二:将所有含有#include <***.h> 的头文件放在#ifndef等外,即上方。
//#pragma once
#include <stdio.h>
#include <string.h>
#include <stdarg.h> //提供宏va_list、va_start、va_arg、va_end
#include <ctype.h> //提供isprint原型
#ifndef SCANF_C
#define SCANF_C
VS2010智能感知优化技巧
本文介绍两种优化VS2010智能感知功能的方法:一是使用#pragma once预处理指令;二是调整包含头文件的位置,确保不在预编译条件内。这将帮助提升编程效率,改善代码编辑体验。
3438

被折叠的 条评论
为什么被折叠?



