你能给我一个结构的例子吗?用c? [英] can you give me an example for structure with in a fucntion using c?

查看:63
本文介绍了你能给我一个结构的例子吗?用c?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请给我一个结构示例,使用c。

解决方案

在这里,您可以找到一个关于结构以及如何使用结构的好教程:教程结构



绝对重要的是理解这个概念指针和内存数据(或对象)。指针是一个地址值,而不是一个新的实例,所以doenst复制数据。



你应该从scratch

please give me an example for structure with in a fucntion using c.

解决方案

Here you find a good tutorial about structs and how to use them: tutorial structs.

Absolutly important is to understand the concept of pointers and memory data (or objects). A pointer is an address values and NOT a new instance and so doenst "copy" data.

You should learn the language from the scratch.


这篇关于你能给我一个结构的例子吗?用c?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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