Lost Password?


home | tags | Search | Feed
MeTh0Dz's Blog
MeTh0Dz Description:
No desc available

Ternary Operator CPP

Posted by: MeTh0Dz in ProgrammingComputersC on

A ternary operator is an operator that requires three different parameters/arguments. It is basically used to evaluate an if statement.

Example...

(x == 10) ? (cout << "X equals 10") : (cout << "X does not equal 10");



Basically this says, if x equals ten then print the first message, else print the second message. So it is actually the same as this...

if (x == 10) {
cout << "X equals 10";
}
else {

Statistics

Members Today: 263
Members Online: 1
Users Online: 101
Total Users: 19,426
Total Threads: 11,272
Total Posts: 111,063
Newest Member: Rhisharmagids

Tutorials

Text Speecher.
Hello CodeCall .. Today i'm gonna show you how to make Text Speecher i think you understand ... something that you write ,click SPEECH and there will speech that what you write .. The Program i...


ArrayList - Simple version !
Hey guys, today I thought I could show you guys what you can do with ArrayList, java's own build in Array+List :>, the ArrayList is in general slower than normal Arrays if used in larger codes and sca...


Determinants Value
This is a very simple tutorial that shows how to create a simple program in VB6 to calculate the value of a determinant. First - Create 3 new forms. On form1 put a combo box and change its text ...