
C
sugar_master
我是机器人,人生只为记录!
展开
-
VC6.0该名称不是一个有效的工程名称
工程名称中含有 .原创 2020-08-15 15:50:04 · 1965 阅读 · 0 评论 -
彻底解决 LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
最近我的VS2010不知道怎么回事,平时用的好好的,近期竟然出现了所谓的LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏头痛万分,查了各种资料一直无解,今天为了封装资源,嵌入清单,所以不惜血本仔细找了下,终于有解决方案了。平时我们都是将 项目-->项目属性-->配置属性-->连接器-->清单文件-->嵌入清单 中的“是”改为“否”,不让他将清单嵌入,自然也用不着转换了,所以轻松编译。虽然麻烦点,每次新建项目都要设置转载 2020-08-01 21:52:08 · 6709 阅读 · 2 评论 -
dev c++ 提示:没有iostream.h文件
解决办法路径没有打通。以下两种写法均可。#include <iostream>using namespace std;int main(int argc, char* argv[]){ cout << "Hello world!" << endl; return 0;}#include <iostream>int main(int argc, char* argv[]){ std::co.转载 2020-07-18 16:11:26 · 9290 阅读 · 5 评论 -
记录一个VC6.0问题
F:\**********\test2\test2.cpp(11) : warning C4091: '' : ignored on left of 'int' when no variable is declaredF:\**********\test2\test2.cpp(11) : error C2143: syntax error : missing ';' before 'constant'F:\**********\test2\test2.cpp(11) : fatal error C10.原创 2020-07-08 22:15:49 · 357 阅读 · 1 评论 -
C2064: term does not evaluate to a function解决方法
本次遇到的问题原因:重复定义变量先声明了一个数组lmd[66][66];之后调程序时想把它换成子函数,故定义了一个lmd(double n[66][66],m,l)的子函数;解决办法:删除lmd[66][66]的声明和定义以及使用。。。...原创 2020-06-12 17:28:03 · 2198 阅读 · 0 评论 -
求二维数组的最小值
#include<stdio.h>int main(){ double A[151][151]; for(int i=0; i<151;i++) for(int j=0; j<151; j++) { double imin = A[0][0]; if(A[j][i]<=imin) imin=A[j][i]; .原创 2020-06-08 10:11:56 · 5579 阅读 · 0 评论 -
msdn此网页可能显示不正确
在命令行下执行:regsvr32 "C:/Program Files/Common Files/Microsoft Shared/Help/hxds.dll"原创 2020-05-11 16:17:38 · 276 阅读 · 0 评论 -
WINVER>=0X500
error C2065: 'SM_MOUSEWHEELPRESENT' : undeclared identifiererror C2065: 'SM_XVIRTUALSCREEN' : undeclared identifiererror C2065: 'SM_YVIRTUALSCREEN' : undeclared identifiererror C2065: 'SM_CXVIRTUALSCREEN' : undeclared identifiererror C2065: 'SM_CYVIRT.原创 2020-05-11 16:02:50 · 363 阅读 · 0 评论 -
字号与像素大小的关系
原创 2019-10-16 16:51:51 · 1495 阅读 · 0 评论 -
计算时间
#include<time.h>#include<iostream>...double start,finish,duration;start = clock();...finish=clock();...duration = (double)(finish - start) / CLOCKS_PER_SEC;cout<<"t...原创 2019-10-07 21:28:04 · 143 阅读 · 0 评论 -
为啥子
#include<stdio.h>int main(){ float e; for(e=0.1;e <= 1.0;e=e+0.1) { printf("e=%1f\n",e); }}没有1.0#include<stdio.h>int main(){ float e; for(e=0.1;e <= 1.000001...原创 2019-08-10 18:25:55 · 378 阅读 · 0 评论 -
子函数改全局变量数组
#include<iostream>using namespace std;static int A[3][3];int gaizhi(int b[3][3]){ int B[3][3] = {{11,22,33},{44,55,66},{77,88,99}}; for(int i=0; i!=3; i++) for(int j=0; j!=3; j++) {...原创 2019-09-24 17:43:31 · 496 阅读 · 0 评论 -
子函数修改全局变量(全局数组)
#include<iostream>using namespace std;static int A[3][3];int gaizhi(int b[3][3]){ int B[3][3] = {{11,22,33},{44,55,66},{77,88,99}}; for(int i=0; i!=3; i++) for(int j=0; j!=3; j++) {...原创 2019-09-24 20:07:42 · 3324 阅读 · 0 评论 -
C语言文件写入
1.文件指针的方式头文件#include<conio.h>#include<stdlib.h>#inlcude<fstream>声明变量FILE * fp;查看文件创建是否成功if((fp = fopen("test.dat","w")) == NULL){ printf("\nerror on open test.d...原创 2019-09-25 14:23:41 · 1476 阅读 · 1 评论 -
Gauss-Seidel迭代(C语言实现)
#include<iostream>#include<math.h>#include<conio.h>using namespace std;#define N 3#define dim 3#define MAXREPT1 30000#define epsilon1 0.01double GS(int n, double a[N][N], d...原创 2019-09-26 12:11:53 · 2689 阅读 · 1 评论 -
[Error] '::main' must return 'int'
这不是代码问题,而是编译器问题。C语言标准允许main函数为void类型而C++标准规定main函数必须是int类型注意:一些IDE或编译器不一定遵守C++标准,比如VS但DevC++严格遵守C++标准,容易出现此类错误。...原创 2019-08-09 21:45:44 · 30713 阅读 · 5 评论