Answers for "macro c++"

C++
0

macro c++

#include <isotream>
#define print(x) std::cout << x << std::endl

int main(){
  std::string sentence = "Hello World!";
  print(sentence); // OUTPUT: Hello World!
}
Posted by: Guest on January-26-2022

Browse Popular Code Answers by Language