मैंने देखा < = और > = एक कोड में प्रयोग किया जाता? http://community.topcoder.com/stat?c=problem_solution&rm=151152&rd=5854&pm=2923&cr=310333<= ऑपरेटर सी ++ अधिक से अधिक कम प्रश्न चिह्न पर हस्ताक्षर के बराबर होती है
मैं अगर यह मानक है परीक्षण करने के लिए शामिल किए बिना संकलन करने की कोशिश की है, लेकिन यह नहीं था काम नहीं करता
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;
}
यहाँ कैसे यह लिंक से कोड में प्रयोग किया जाता है है::
x <?= h[i][j]; // x = (h[i][j] < x) ? h[i][j] : x;
मैं इस काम कैसे कर सकते हैं मैं तो शामिल है, लेकिन यह अभी भी एक ही त्रुटि देता है जोड़ा?
संभावित डुप्लिकेट [> = = ऑपरेटर का मतलब क्या है?] (Http://stackoverflow.com/questions/5199630/what-does-the-operator-mean) – 0x499602D2
कृपया एक सर्वोत्तम उत्तर चुनें। – 0x499602D2