谁能帮助我? [英] who can helpe me?

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

问题描述

请明天我已经考试了,我无法理解数据结构

如果任何人有任何信息并且有任何书籍或网络方面可以帮助我

我无法通过c ++

please tomorow i have exame i can not understand data structure

if any one have any information and have any book or web side can help me

i can not write any code data structure by c++

推荐答案

编写任何代码数据结构,您可以这样编写:
结构A {
int数据;
};
you can write like this:
struct A{
int data;
};


使用google!

数据结构是一组数据.

它可以让您将东西放在一起...


想象一辆可以通过以下方式定义的汽车:

use google!

A data structure is a group of data.

It allows you to put things together...


imagine a car that can be defined by:

struct car
{
    int number_of_doors;
    int number_of_seats;
    int number_of_mirrors;
    int number_of_brake_lights;
    int colour;
    bool solar_roof;
    bool automatic_transmission;
    string brand;
    string model;
};



做完这些后,您已经将变量分组在一个集合"中.

如果您需要一个数组,则可以像下面这样访问它:



Doing hat you''ve grouped the variables in a "set".

If you would need an array you would be able to access it like:

int j = 0;
for (int i=0,i<max;i++)>
{
  if (array_cars[1].solar_roof)
  {
    j++;
  }
}
printf("%i",j);



当然,这并不是关于世界结构的最精确,最清晰的解释,但至少很容易理解.

您可以定义一个类型,然后将该类型用作int,bool ...,以便可以声明一个名为what_you_d_like_to的新变量,以表示新定义的类型的结构.

祝你好运.



This is for sure not the most precise and clear explanation about structures in the world, but at least it is easy to understand.

you can define a type and then use that type as int,bool... so you could declare a new variable named whatever_you_d_like_to to represent a structure of your newly defined type.

Good luck.


好吧,我认为您已经为时已晚,但是^ ]可能就是您需要查看的内容.
Well, I think you have left it too late, but this[^] may be what you need to look at.


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

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