c/c++ helloworld
开始:
c:
#include <errno.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int
main ( int argc, char *argv[] )
{
printf ("\nProgram %s\n\n", argv[0] );
return EXIT_SUCCESS;
} /* ---------- end of function main ---------- */
c++:
#include <cstdlib>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
using namespace std;
int
main ( int argc, char *argv[] )
{
cout << "\nProgram " << argv[0] << endl << endl;
return EXIT_SUCCESS;
} // ---------- end of function main ----------
visual studio
#include <iostream>
using namespace std;
int main()
{
cout<<"hello world!"<endl;
return 0;
}
完