语法问题 [英] Syntax issue

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

问题描述

嘿,我有一个代码写了一些,但是他使用了这一行


x =(y = 4,z = 6);


(顺便说一句,这条线的输出是x = 6,y = 4,z = 6)


i在什么情况下我会不得不使用它? />
它有用吗?


第二件事可以用1来解释我使用MAX_RAND的方式,而

使用rand()我不明白MAX_RAND提前做了什么?
提前10x

Hey I have a CODE that some 1 wrote however he use this line

x= (y=4,z=6);

( by the way the output of this line is x=6 , y=4 , z=6 )

i was wondring in what situation i will have to use it?
and does it good for?

Second thing Can some 1 explain me the way to use the MAX_RAND while
using rand() I dont understand what does the MAX_RAND do

10x in advance

推荐答案

Chief写道:
Chief wrote:

嘿,我有一个代码写了一些,但是他用这行代码


x =(y = 4,z = 6);


(顺便说一句,这条线的输出是x = 6,y = 4,z = 6)


i在什么情况下我会不得不使用它?

并且它有用吗?


第二件事可以解释一下使用方法MAX_RAND而

使用rand()我不明白wh在MAX_RAND做什么


提前10x
Hey I have a CODE that some 1 wrote however he use this line

x= (y=4,z=6);

( by the way the output of this line is x=6 , y=4 , z=6 )

i was wondring in what situation i will have to use it?
and does it good for?

Second thing Can some 1 explain me the way to use the MAX_RAND while
using rand() I dont understand what does the MAX_RAND do

10x in advance



dude 4年第1个问题它的逗号ope8r没有2使用它如果

u不想要2个方便一些timz无论如何c book都有你需要2

no 4肯定第二个问题没有这样的动物希望这有助于ciao babe


-

Eric Sosman
es **** *@acm-dot-org.inva 盖子




Eric Sosman写道:

Eric Sosman wrote:

Chief写道:
Chief wrote:

嘿,我有一个代码写了一些,但是他使用了这条线


x =(y = 4,z = 6);


(顺便说一句,这条线的输出是x = 6,y = 4,z = 6)

i在什么情况下我会不得不使用它?

并且它有用吗?


第二件事可以一些1解释了我使用MAX_RAND的方式而

使用rand()我不知道什么MAX_RAND做什么


提前10x
Hey I have a CODE that some 1 wrote however he use this line

x= (y=4,z=6);

( by the way the output of this line is x=6 , y=4 , z=6 )

i was wondring in what situation i will have to use it?
and does it good for?

Second thing Can some 1 explain me the way to use the MAX_RAND while
using rand() I dont understand what does the MAX_RAND do

10x in advance



dude 4年第1个问题它的逗号ope8r没有2次使用如果

u不想要2个方便一些timz无论如何c book都有你需要2

no 4肯定第二个问题没有这样的动物希望这有助于ciao babe


dude 4 yr 1st ques its the comma ope8r dont have 2 use it if
u dont want 2 handy some timz anyway c book has all u need 2
no 4 sure 2nd ques no such animal hope this helps ciao babe



Medic!无敌!甚至埃里克现在也抓住了它。没有人是安全的。安全套

指责每个人。

Medic! MEDIC! Even Eric''s caught it now. Nobody''s safe. Condoms on
fingers everyone.


首席发布:
Chief posted:

嘿,我有一个代码
Hey I have a CODE



Culminary Orthogonal Device Ensembles在这里是偏离主题的。


Culminary Orthogonal Device Ensembles are off-topic here.


x =(y = 4,z = 6);


(顺便说一句,这条线的输出是x = 6,y = 4,z = 6)
x= (y=4,z=6);

( by the way the output of this line is x=6 , y=4 , z=6 )



在C ++中,也许吧。在C中,赋值给变量不会导致输出。


In C++, maybe. In C, assignment to a variable cannot result in output.


我想知道在什么情况下我将不得不使用它?
i was wondring in what situation i will have to use it?



< OFF-TOPIC>


当CODE进入放松模式时,它们往往会过度迭代数组 -

规范化索引的唯一方法是使用逗号运算符

与多个赋值结合。


< / OFF-TOPIC>


<OFF-TOPIC>

When CODE''s enter Relax Mode, they tend to over-iterate through arrays --
the only way to normalise the indexing is by using the comma operator in
conjuction with multiple assignments.

</OFF-TOPIC>


并且它有用吗?
and does it good for?



效果很好(在现代CPU上)。不要在486上试试。


It works quite well (on modern CPU''s). Don''t try it on a 486.


第二件事可以解释一下我使用MAX_RAND的方式,而

使用rand()我不明白MAX_RAND做什么
Second thing Can some 1 explain me the way to use the MAX_RAND while
using rand() I dont understand what does the MAX_RAND do



是的,确实:


int max =( MAX_RAND,rand());


(看看我如何使用逗号运算符

结合多个赋值来规范化过度迭代?)


Yes, indeed:

int max = (MAX_RAND, rand());

(See how I have normalised the over-iteration by using the comma operator
in conjunction with mutiple assignments?)


提前10x
10x in advance



哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇哇!如果

初始化CODE的算法提前运行十次,那么过度迭代将会非常不稳定而无法纠正。任何将索引标准化为

的尝试都会导致硬盘过度刻录 - 所以让我们希望你保留所有备份的所有内容。


-


Frederick Gotham


Whoa whoa whoa, don''t get ahead of yourself! If the algorithm which
initialises the CODE is run ten times in advance, the over-iteration will
be far too erratic to correct. Any attempt to normalise the indexing at
that point will result in hard-disk over-burn -- so let''s hope you keep
everything backed up.

--

Frederick Gotham


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

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