宏观问题 [英] macro problem

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

问题描述

我如何编写一个宏来执行作为参数的3个变量之间的交换?

how do i write a macro that performs swapping among 3 variables taken as parameters?

推荐答案

请描述你希望这个宏做什么。什么与什么交换?这是一个起点:

#define MACRO(P1,P2,P3)......

您可以用P1,P2和方式描述所需的行为P3。
Please describe what you want this macro to do. What gets swapped with what? Here''s a starting point:
#define MACRO(P1,P2,P3) ...
You can describe the desired behavior in terms of P1, P2, and P3.


问题是问题陈述与我发布的完全相同。
the problem is that the question states exactly the same way as i posted.


你将不得不要求老师澄清。

如果要求你交换两个变量,意图就会很明显。 在三个变量之间交换可能意味着任何数量的东西。
You''ll have to ask the teacher for clarification.
The intent would be obvious if you were asked to swap two variables. "Swapping among three variables" could mean any number of things.


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

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