const int rights) 谢谢,迈克。 权利是一个整数变量。 我的目的是创建一个递归函数,其中权利是一个 参数,并且定义在权利方面是递归的 - 1 $ / b $ b 一步就是问它认为参数需要什么价值 - 回答我的想法 - 2. 我会尝试用这个来编写一个可编译的例子。但是这样解决它是非常棘手的 - 我知道这可能意味着我的编码风格很糟糕 。 我不知道权利会如何对流做任何事情。 从概念上讲,我要做的是定义f(权利),如果 (权利== 0)返回......; if(权利> 0)返回f(权利-1,......); 我会考虑如何解开碎片以提供 a完整的例子。 Paul Epstein Thanks, Mike. rights is an integer variable. My intent is to create a recursive function where rights is aparameter, and where the definition is recursive in terms of rights-1etc. One step is to ask it what value it thinks the parameter takes -- itanswered how I thought -- 2. I will try and make a compilable example out of this. But it''s trickyto disentangle it that way -- I know that probably means I have badcoding style. I don''t see how rights would do anything to the stream. Conceptually what I''m trying to do is define f(rights) by saying if(rights==0) return ...; if (rights > 0) return f(rights - 1,...); I will think about how I can disentangle the bits and pieces to providea complete example. Paul Epstein 这篇关于调试 - 要解释的行为。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-18 03:28