Cã»C++ã»Javaã»Perl ãªã©ã®ããã°ã©ãã³ã°è¨èªã§ã¯ãæ¡ä»¶æ¼ç®åã¨ãã¦ä¸é æ¼ç®å?:ãç¨æããã¦ãããæ¡ä»¶æ¼ç®åã®æ¸ãæ¹ã¨ãã¦ã以ä¸ã®ãããªèª¬æãããããã¨ãå¤ãã condition ? true-expression : false-expression ãã®èª¬æã¯ã以ä¸ã®ããã°ã©ã ã¨åãç¨åº¦ãééã£ã¦ããã #include <stdio.h> main( ){printf ("hel" "lo, world\n" );} æ¡ä»¶æ¼ç®åã¯ãæ£ããã¯ä»¥ä¸ã®ããã«æ¸ãã condition ? true-expression : false-expression 使ãæ¹ã®ä¾ã示ãã compare = obj1 == null ? obj2 == null ? 0 : -1 : obj2 == null ? 1 : obj1.toString().compareTo(obj2.to
{{#tags}}- {{label}}
{{/tags}}