问题与int ** [英] prob with int**

查看:95
本文介绍了问题与int **的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好。

我不是C的专家....我试图使用

int **来代表矩阵(如双下标

数组。)但是在运行时发生错误..分析...一般异常

错误...处理器故障....我正在使用TURBO C v4.5所以PLZif任何一个身体

可以帮助我

解决方案

9月21日,12:16 * pm,consiglieri< graciahell ... @ gmail.comwrote:


* * * * * * * * * * *我不是C的专家.....我正在尝试使用

int **代表矩阵(作为双下标

数组。)但在运行时发生错误..saying ...一般异常

错误...处理器故障....我使用TURBO C v4.5 *所以plzif任何身体

可以帮助我



发布您的代码,我们不介意阅读。

以标准英语发布。虚空......不是plzif是标准的

英语。

-

Nick Keighley


consiglieri写道,On 21/09/08 12:16:


你好那里..

我不是C的专家....我试图使用

int **来表示矩阵(如双下标

数组。)但在运行时发生错误..saying .. .general exception

错误...处理器故障....即时通讯使用TURBO C v4.5所以plzif任何身体

可以帮我


第42行有错误。如果我错了,请尝试阅读comp.lang.c

FAQ http://c-faq.com/ 可能从第6节开始,但也是4

和5.如果你仍然无法修复它并且问题不在第42行发布

a小的可编译示例来说明问题。毕竟,

没有看到你的代码我们所能做的就是猜测!

-

Flash Gordon

如果发送垃圾邮件,请将其发送至 sm**@spam.causeway.com

如果通过电子邮件发送给我,请使用我的回复地址

请参阅由我主持的comp.lang.c Wiki http://clc-wiki.net/




" consiglieri" < gr *********** @ gmail.com写信息

新闻:8a ******************* *************** @ d77g2000 hsb.googlegroups.com ...


你好那里..

我不是C的专家....我试图使用

int **来表示矩阵(如双下标

数组。)但是在运行时发生错误..saying ...一般异常

错误...处理器故障....我正在使用TURBO C v4.5所以plzif任何身体

可以帮我



int **要求你手动分配内存,对于2D数组来说,这需要以结构化的形式完成
;你有没有这样做过?


-

Bartc


hello there ..
im not much an expert in C....im trying to use
int** for reperesentation of matrices(as double subscripted
arrays .)but at run time an error occurs ..saying ...general exception
error ...processor fault ....im using TURBO C v4.5 so plzif any body
could help me

解决方案

On Sep 21, 12:16*pm, the consiglieri <graciahell...@gmail.comwrote:

* * * * * * * * * * * im not much an expert in C.....im trying to use
int** for reperesentation of matrices(as double subscripted
arrays .)but at run time an error occurs ..saying ...general exception
error ...processor fault ....im using TURBO C v4.5 *so plzif any body
could help me

Post your code, we can''t mind read.
Post in standard english. Nether "...." not "plzif" are standard
english.
--
Nick Keighley


the consiglieri wrote, On 21/09/08 12:16:

hello there ..
im not much an expert in C....im trying to use
int** for reperesentation of matrices(as double subscripted
arrays .)but at run time an error occurs ..saying ...general exception
error ...processor fault ....im using TURBO C v4.5 so plzif any body
could help me

There is an error on line 42. If I''m wrong try reading the comp.lang.c
FAQ at http://c-faq.com/ probably starting with section 6, but also 4
and 5. If you still can''t fix it and the problem is not on line 42 post
a small compilable example that demonstrates the problem. After all,
without seeing your code all we can do is guess!
--
Flash Gordon
If spamming me sent it to sm**@spam.causeway.com
If emailing me use my reply-to address
See the comp.lang.c Wiki hosted by me at http://clc-wiki.net/



"the consiglieri" <gr***********@gmail.comwrote in message
news:8a**********************************@d77g2000 hsb.googlegroups.com...

hello there ..
im not much an expert in C....im trying to use
int** for reperesentation of matrices(as double subscripted
arrays .)but at run time an error occurs ..saying ...general exception
error ...processor fault ....im using TURBO C v4.5 so plzif any body
could help me

int** requires that you manually allocate memory, which for a 2D array has
to be done in a structured form; have you done so?

--
Bartc


这篇关于问题与int **的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆