![]() |
2010-01-30
, 15:45
|
|
Posts: 780 |
Thanked: 855 times |
Joined on Sep 2009
@ Helsinki, Finland
|
#2
|
![]() |
2010-01-30
, 16:03
|
Posts: 279 |
Thanked: 34 times |
Joined on Jan 2010
@ Belgrade, Serbia
|
#3
|
![]() |
2010-01-30
, 16:58
|
Posts: 755 |
Thanked: 406 times |
Joined on Feb 2008
@ UK
|
#4
|
And one more question, how do you put text in if statements instead of numbers? E.g.
if (x == 10)
cout << 25 << endl;
Now, how can i enter some word instead of 10?
if (x == "ten")
![]() |
2010-01-30
, 17:11
|
Posts: 61 |
Thanked: 21 times |
Joined on Jan 2010
|
#5
|
if (x == "ten")
![]() |
2010-01-31
, 11:55
|
Posts: 1 |
Thanked: 0 times |
Joined on Oct 2009
|
#6
|
if (x == 10)
cout << 25 << endl;
Now, how can i enter some word instead of 10?