MessageBox

#include <iostream>
#include <windows.h>

int main() {
    MessageBox(NULL, "Hello, this is a message!", "Message", MB_OK);
    return 0;
}
  1. #include <iostream> - including the input output stream library for input and output operations.
  2. #include <windows.h> - including the Windows library to use the MessageBox function.
  3. int main() - starting the main function.
  4. MessageBox(NULL, "Hello, this is a message!", "Message", MB_OK); - displaying a message box with the specified text and title.
  5. return 0; - exiting the main function with a return value of 0.