编译时出现expected a declaration

mylovlee 2011-04-04 01:16:18
各位大侠,我的一个程序里编译时出现expected a declaration,下面复制一段程序并注明错误的地方,请各位大侠赐教,感激不尽。

for(i = 0;i < nx1; i++) //expected a declaration
A[i*By + i] = 1.0;

for(i = 0;i < By; i++) //expected a declaration
A[By*nx1 + i*By + i] = -1.0;

for(i = 0;i < nx1; i++) //expected a declaration
A[By*(By + nx1) + i] = -0.1;

for(i = nx1;i < By; i++) //expected a declaration
A[By*(By + nx1) + i] = 1.0;
...全文
8568 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
it_yrj 2012-09-23
  • 打赏
  • 举报
回复 1
我换了个USB口就好了,太神奇了
it_yrj 2012-08-16
  • 打赏
  • 举报
回复
写出来大家共享一下呗
dikun998 2012-02-08
  • 打赏
  • 举报
回复 2
鄙视楼主,解决了不说是哪的问题。。。严重鄙视!这样还指望别人以后帮你吗?
hjt013 2011-06-08
  • 打赏
  • 举报
回复 1
学习下
czk111111 2011-06-02
  • 打赏
  • 举报
回复
你找到什么地方错误了啊
我也有这种错误 但是还没找到
mylovlee 2011-04-05
  • 打赏
  • 举报
回复
谢谢你了 我今天找到错误的地方了
linxxx3 2011-04-04
  • 打赏
  • 举报
回复
把错误信息贴完整。。到底哪个符号没有声明?
au3反编译源码 myAut2Exe - The Open Source AutoIT Script Decompiler 2.9 ======================================================== *New* full support for AutoIT v3.2.6++ :) ... mmh here's what I merely missed in the 'public sources 3.1.0' This program is for studying the 'Compiled' AutoIt3 format. AutoHotKey was developed from AutoIT and so scripts are nearly the same. Drag the compiled *.exe or *.a3x into the AutoIT Script Decompiler textbox. To copy text or to enlarge the log window double click on it. Supported Obfuscators: 'Jos van der Zande AutoIt3 Source Obfuscator v1.0.14 [June 16, 2007]' , 'Jos van der Zande AutoIt3 Source Obfuscator v1.0.15 [July 1, 2007]' , 'Jos van der Zande AutoIt3 Source Obfuscator v1.0.20 [Sept 8, 2007]' , 'Jos van der Zande AutoIt3 Source Obfuscator v1.0.22 [Oct 18, 2007]' , 'Jos van der Zande AutoIt3 Source Obfuscator v1.0.24 [Feb 15, 2008]' , 'EncodeIt 2.0' and 'Chr() string encode' Tested with: AutoIT : v3. 3. 0.0 and AutoIT : v2.64. 0.0 and AutoHotKey: v1.0.48.5 The options: =========== 'Force Old Script Type' Grey means auto detect and is the best in most cases. However if auto detection fails or is fooled through modification try to enable/disable this setting 'Don't delete temp files (compressed script)' this will keep *.pak files you may try to unpack manually with'LZSS.exe' as well as *.tok DeTokeniser files, tidy backups and *.tbl (<-Used in van Zande obfucation). If enable it will keep AHK-Scripts as they are and doesn't remove the linebreaks at the beginning Default:OFF 'Verbose LogOutput' When checked you get verbose information when decompiling(DeTokenise) new 3.2.6+ compiled Exe Default:OFF 'Restore Includes' will separated/restore includes. requires ';

589

社区成员

发帖
与我相关
我的任务
社区描述
CUDA™是一种由NVIDIA推出的通用并行计算架构,该架构使GPU能够解决复杂的计算问题。 它包含了CUDA指令集架构(ISA)以及GPU内部的并行计算引擎。
社区管理员
  • CUDA编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧