Something like this would work;
#include <stdlib.h>
#include <stdio.h>
void clr() {
system("cls");
}
int main(int argc, char* argv[]) {
printf("I won't show up because the screen will be cleared!\r\n");
clr();
printf("Hello, world!\r\n");
return 0;
}
Hope this helps,
Fredrik