![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
各种错误
文章平均质量分 68
dd916
这个作者很懒,什么都没留下…
展开
-
error C2275: 'FILE' : illegal use of this type as an expression
#include "stdio.h" int main(void) { FILE *f=NULL; f=fopen("dd2.txt","r"); if(f == NULL) { printf("fail\n"); } FILE *fp1 = NULL; //出错处 FILE *fp2 = NULL; fp1 = fopen("d1.txt","w");原创 2012-04-05 13:20:10 · 931 阅读 · 0 评论 -
error C2143: syntax error : missing ';' before 'type'
#include #define FLASE 0 #define TRUE 1 int isPrime(int n) { //int i; if(n == 1) { return FLASE; } if(n == 2) { return TRUE; } for(int i=2;i//出现错误,原因:变量的定义放在可执行代码之后,应将int i;原创 2012-04-06 10:16:13 · 406 阅读 · 0 评论 -
让我曾经蛋疼的错误
public class Stringtoint { public static void main(String[] args) { int w = new Integer(args[0]).intValue(); int h = Integer.parseInt(args[1]); for(int原创 2012-04-23 16:59:11 · 534 阅读 · 0 评论