LINGO目标函数写法正确的是
A: min=3*x+4*y
B: max=3x+4y
C: max z=3x+4y;
D: min=3*x+4*y;
A: min=3*x+4*y
B: max=3x+4y
C: max z=3x+4y;
D: min=3*x+4*y;
举一反三
- #include "stdio.h" int main() { int x,y, (1) ; scanf("%d%d%d", &x,&y,&z); if(x>=y) (2) ; (3) max=y; if( (4) ) max=z; printf("%d\n",max); }
- 下列选项中函数solve应用正确的是( )。 A: solve(3*x+4*y=0, 2*y^2+x=0, x, y) B: solve‘3*x+4*y=0’, ’2*y^2+x=0’, ’x’, ’y’ C: solve(‘3*x+4*y=0’, ’2*y^2+x=0’, ’x’, ’y’) D: solve(‘3*x+4*y=0’, ’2*y^2+x=0’, x, y)
- 如下C程序的输出是什么?#include [stdio.h]void Func1 (int x, int y);void Func2 (int *x, int *y); int main() { int x = 3; int y = 4;Func1 (x, y); printf ("x = %d, y = %d\n", x, y);Func2(&x, &y); printf ("x = %d, y = %d\n", x, y);} void Func1 (int x, int y) { x = x + y; y = x - y; x = x - y; printf ("x = %d, y = %d\n", x, y);} void Func2 (int *x, int *y) { *x = *x + *y; *y = *x - *y; *x = *x - *y;;} A: x = 3, y = 4x = 3, y = 4x = 3, y = 4 B: x = 4, y = 3x = 4, y = 3x = 4, y = 3 C: x = 3, y = 4x = 3, y = 4x = 4, y = 3 D: x = 4, y = 3x = 3, y = 4x = 4, y = 3
- 程序如下:intx=3,y;int*px=&x;y=*px++;则如下描述中正确的是:() A: x=3;y=4 B: x=3;y=3 C: x=4;y=4 D: x=3;y不确定
- 执行以下语句的结果为______。 int x=3,y;int*px=&x;y=*px++; A: x=3,y=4 B: x=3,y=3 C: x=4,y=4 D: x=3,y不知