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