< = ve > = bir kod kullanılan:? Ben standart olmadığını test etmek içerir olmadan derlemeye çalıştık http://community.topcoder.com/stat?c=problem_solution&rm=151152&rd=5854&pm=2923&cr=310333<= operatörü C++ daha az soru işareti imzalamak eşittir
ama etmedim Çalışıyorum İşte
question-mark.cpp:15:5: error: expected primary-expression before ‘?’ token question-mark.cpp:15:6: error: expected primary-expression before ‘=’ token question-mark.cpp:15:9: error: expected ‘:’ before ‘;’ token question-mark.cpp:15:9: error: expected primary-expression before ‘;’ token
#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;
}
o bağlantıdan kodunda nasıl kullanıldığını var:
x <?= h[i][j]; // x = (h[i][j] < x) ? h[i][j] : x;
nasıl bu iş yapabilirsiniz Sonra içerir, ancak hala aynı hatayı veriyor eklendi?
olası yinelenen [ne yapar?> = Işleç ortalaması?] (Http://stackoverflow.com/questions/5199630/what-does-the-operator-mean) – 0x499602D2
Lütfen en iyi cevabı seçin. – 0x499602D2