C++
文章平均质量分 58
liuhongyi666
QQ327293351
地理信息系统
地球探测与信息技术
展开
-
Win32 Console Applications设置输出屏幕的大小
HANDLE hOut;//句柄 COORD Position;//位置 hOut = GetStdHandle(STD_OUTPUT_HANDLE);//获取输出句柄 Position.X = 500; Position.Y = 500; SetConsoleScreenBufferSize(hOut,Position);//设置输出屏幕的大小有时候由于一行要输出很长的数字,而控制原创 2008-12-29 12:57:00 · 427 阅读 · 0 评论 -
Win32 Console Applications
<span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">Win32 Console Applications<span lang="EN-US" style="font-size:10.5pt;font-family:Arial;mso-fareast-font-family:宋体;mso-font-kernin转载 2008-12-29 12:49:00 · 1059 阅读 · 0 评论 -
在VC中如何创建多维动态数组
创建一维动态数组#include main(){ int n1; const int DIM1 = 2; // 构造数组 int *ppi = new int[DIM1]; // 填充数据 for(n1 = 0; n1 { ppi[n1] = n1 ; } // 输出 for(n1 = 0; n1 {原创 2008-12-30 13:11:00 · 598 阅读 · 0 评论 -
输入输出流的控制符
输入输出流的控制符 <td width="227" valign="bottom" style="width:170.0pt;border:solid black 1.0pt; mso-border-alt:solid black .5pt;padding:.75pt .75pt 0cm .75pt;height:20.1pt">原创 2009-01-08 15:04:00 · 751 阅读 · 0 评论 -
fatal error C1010: unexpected end of file while looking for precompiled header directive
fatal error C1010: unexpected end of file while looking for precompiled header directive", 又出现了莫名奇妙的错误,怎么回事呢? 代码没有写错啊?---这就是预编译带来的问题,经常莫名奇妙出现编译错误,给编程带来了很多烦恼。VC的默认工程选项会自动生成一个pch文件,这个用来做什么的,我不太清楚,个人感觉有没原创 2009-03-12 22:33:00 · 1086 阅读 · 0 评论 -
最常见的20种VC++编译错误信息
1、fatal error C1010: unexpected end of file while looking for precompiled header directive。寻找预编译头文件路径时遇到了不该遇到的文件尾。(一般是没有#include "stdafx.h") 2、fatal error C1083: Cannot open include file: R…….h:转载 2009-05-15 18:52:00 · 314 阅读 · 0 评论