需要C代码校对...不确定传递数据 [英] C code proof-read needed.. unsure about passing data

查看:50
本文介绍了需要C代码校对...不确定传递数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C中做了一个单元并且尽可能地为我的班级编写了一个程序..只是我遇到了在模块和一些语法之间传递数据的所有不同方法的问题。有人可以请看下面我的代码并告诉我需要做些什么来解决它或者我是否做对了?

它不是很长或很复杂......

Hi, Im doing a unit in C and have written a program for my class as best as I can.. just I am having trouble undestanding all the different ways to pass data between modules and some of the syntax. could someone please look at my code below and tell me what I need to do to fix it or whether Ive got it right?
Its not hugely long or complex..

展开 | 选择 | Wrap | 行号

推荐答案

我之前从未使用过指针,这是我的第二个C程序整体..所以请...好看。我习惯了java,你不必担心这个。
Ive never used pointers before and this is my second C program overall.. so please.. be nice. Im used to java where you dont have to worry about alot of this.


你知道C没有多维数组。是的?


它有一维数组。阅读本文:
You are aware that C has no multi-dimensional arrays. Yes?

What it has is one-dimensional arrays. Read this:

首先,C或C ++中只有一维数组。括号中放置的元素数量:
First, there are only one-dimensional arrays in C or C++. The number of elements in put between brackets:
展开 | 选择 | Wrap | 行号


所有多维数组都不是数组的数组吗?多数民众赞成在我做java时如何解释..
arent all multidimensional arrays just arrays of arrays? thats how it was explained when i did java..


这篇关于需要C代码校对...不确定传递数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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