我看到 <?= 和 >?= 在代码中使用: //community.topcoder.com/stat ?c=problem_solution&rm=151152&rd=5854&pm=2923&cr=310333
我尝试在没有包含的情况下进行编译以测试它是否是标准的,但它不起作用。然后我添加了包含,但它仍然给出了同样的错误:
question-mark.cpp:15:5:错误:“?”之前的预期主表达式 令牌 question-mark.cpp:15:6:错误:'='之前的预期主表达式令牌 question-mark.cpp:15:9:错误:';'之前的预期':' token question-mark.cpp:15:9: error: ';'之前的预期主表达式 令牌
#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main()
{
int x = 3;
int y = 2;
x >?= y;
printf("x = %d\n", x);
return 0;
}
以下是它在链接代码中的使用方式:
x <?= h[i][j]; // x = (h[i][j] < x) ? h[i][j] : x;
我怎样才能使这项工作?