Feltételes műveletek
FELTÉTEL ? MŰVELE_1 : MŰVELET_2
I Hint main()
{
int x = -20;
cout << ((x >= 0) ? "Pozitív" : "Negatív" ) << endl;
return 0;
}Last updated
Was this helpful?
FELTÉTEL ? MŰVELE_1 : MŰVELET_2
I Hint main()
{
int x = -20;
cout << ((x >= 0) ? "Pozitív" : "Negatív" ) << endl;
return 0;
}Last updated
Was this helpful?
Was this helpful?