简单的结构 [英] simple struct

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

问题描述

我有一些结构数组,我需要比较数组。你能为我做什么?
帮我做什么?thanx

Potatoman

i have some an array of structs, i need to compare arrays. what can you
do me for ?thanx
Potatoman

推荐答案

Potatoman说:
Potatoman said:

i有一些结构数组,我需要比较数组。你能为我做什么?b $ b帮我做什么?
i have some an array of structs, i need to compare arrays. what can you
do me for ?



请再次提出您的问题,这次提供所有必要的

信息,以便我们给您答复。


-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上面的域名(但显然放弃了www)

Please ask your question again, this time providing all the necessary
information that will enable us to give you an answer.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)




Ok , 没问题! (* o *)


typedef struct {int a; int b} s;

ss [5];


///初始化a和b的所有5'的值


你能帮助我吗?


Ok, no problem! (*o*)

typedef struct{int a;int b}s;
s s[5];

///Initialize all 5''s values of a and b
//compare s[0],s[1],s[2],s[3],s[4] <===== I would like to know this

Could you help me ?


Potatoman写道:
Potatoman wrote:

i有一些结构数组,我需要比较数组。你能为我做什么?
为我做什么?thanx
i have some an array of structs, i need to compare arrays. what can you
do me for ?thanx



我发布时可以查看你的代码。如果你不先尝试,我怀疑有人会为你做你的工作。

-

Flash戈登,生活在有趣的时代。

网站 - http ://home.flash-gordon.me.uk/

comp.lang.c发布指南和介绍:
http://clc-wiki.net/wiki/Intro_to_clc


这篇关于简单的结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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