Define not working | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Define not working

Any defined keyword in C++ is not working.. e.g: #define cout print https://code.sololearn.com/cqmhP92oRWOP/?ref=app

1st Jul 2019, 1:18 PM
C ++
C ++ - avatar
3 Answers
+ 3
You got the order wrong. It should be like this : https://code.sololearn.com/cKC90BG4NprT/?ref=app
1st Jul 2019, 1:54 PM
Sonic
Sonic - avatar
+ 4
Usman Khan you need to reverse the print and cout statements in #define.
2nd Jul 2019, 9:42 AM
Manoj
Manoj - avatar
+ 2
Do : #define print cout #define + expression to replace + replaced statment
1st Jul 2019, 1:22 PM
Théophile
Théophile - avatar