if the system has been properly setup a c/c++ program will be <run> the same way any other program
unless the question was badly posed and You are asking how to compile
****** ***************************** Top of Data ******************************
000001 //ENRICO@C JOB (ACCT#),'$$RUN',NOTIFY=ENRICO,
000002 // CLASS=A,MSGCLASS=H,MSGLEVEL=(1,1)
000003 //*
000004 //G EXEC PGM=HELLO
000005 //STEPLIB DD DISP=SHR,DSN=ENRICO.TEST.LOAD
000006 //*
000007 //SYSPRINT DD SYSOUT=*
000008 //STDOUT DD SYSOUT=*
000009 //STDERR DD SYSOUT=*
****** **************************** Bottom of Data ****************************
SDSF OUTPUT DISPLAY ENRICO@C JOB06847 DSID 101 LINE 0 COLUMNS 02- 81
COMMAND INPUT ===> SCROLL ===> CSR
********************************* TOP OF DATA **********************************
C said... Hello World!
******************************** BOTTOM OF DATA ********************************