帮帮我 [英] help me out

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

问题描述

大家好,


您有一个数据类型,比如C中的X.要求是获得数据类型大小的数据,而不是声明变量或指针

该类型的变量,当然,不使用sizeof运算符!


请告诉我如何做到这一点。

解决方案

ujjwal写道:


大家好,


你有一个数据类型,比如C中的X.要求是获得数据类型大小的数据,而不是声明变量或指针

该类型的变量,当然,不使用sizeof运算符!


请告诉我如何做到这一点。



为什么你想要,除了家庭作业?


-

Ian Collins。


ujjwal写道:


大家好,


你得到了一个数据类型,比如说C中的X.要求是得到数据类型大小的

,而不是声明变量或指针

该类型的变量,当然不使用sizeof运算符!


请告诉我如何做到这一点。


为什么?任何理智的程序员都会使用sizeof()所以这必须是作业。

我们为什么要做作业?


Bj?rn


6月5日下午2:47,B。 Augestad" < b ... @ metasystems.nowrote:


ujjwal写道:


大家好,


您将获得一个数据类型,例如C中的X.要求是获得数据类型大小的数据类型,没有声明变量或指针

该类型的变量,当然,不使用sizeof运算符!


请告诉我如何做到这一点。



为什么?任何理智的程序员都会使用sizeof()所以这必须是作业。

我们为什么要做作业?


Bj?



你好

你们都是对的,但这不是作业我在网上看到了这个问题

并试图解决它

尝试后我将它贴在这里


ujjwal


Hi all,

You are given have a datatype, say X in C. The requirement is to get
the size of the datatype, without declaring a variable or a pointer
variable of that type, And, of course without using sizeof operator !

please tell me how this can be done.

解决方案

ujjwal wrote:

Hi all,

You are given have a datatype, say X in C. The requirement is to get
the size of the datatype, without declaring a variable or a pointer
variable of that type, And, of course without using sizeof operator !

please tell me how this can be done.

Why would you want to, except for a homework assignment?

--
Ian Collins.


ujjwal wrote:

Hi all,

You are given have a datatype, say X in C. The requirement is to get
the size of the datatype, without declaring a variable or a pointer
variable of that type, And, of course without using sizeof operator !

please tell me how this can be done.

Why? Any sane programmer would use sizeof() so this must be homework.
Why should we do your homework?

Bj?rn


On Jun 5, 2:47 pm, "B. Augestad" <b...@metasystems.nowrote:

ujjwal wrote:

Hi all,

You are given have a datatype, say X in C. The requirement is to get
the size of the datatype, without declaring a variable or a pointer
variable of that type, And, of course without using sizeof operator !

please tell me how this can be done.


Why? Any sane programmer would use sizeof() so this must be homework.
Why should we do your homework?

Bj?rn

Hi
you all are right but this not a homework I saw this problem on net
and tried to solve it
and after trying I posted it here

ujjwal


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

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