Thought these things would be simple, but apparently I don't understand them. All I want to do is have an input of a message, and the macro picks it up and prints it until you close the window. What needs to change, or am I way off in left field with this one?
Code:#include <stdio.h> #define ECHO (str) gets (message);\ for (i=0; i != NULL; ++i)\ puts(message); int main () { int i; i=0; printf("Enter a message:"); Echo (str); return 0; }