The main goal of Lab 1 is to introduce the Microsoft Visual Studio program development environment, including the Visual C++ compiler. A secondary goal is to learn how to use a web browser to download programs from the world-wide web. The following activities will be carried out:
Here is the ``Hello, world!'' program in C:
// FILE: hello.c // The ``Hello, world!'' program in C #include// Provides printf int main( ) { printf("Hello, world!\n"); return 0; }
Here is the ``Hello, world!'' program in C++:
// FILE: hello.c // The ``Hello, world!'' program in C++ // Precondition: None // Postcondition: Hello, world! is printed to standard output. #include// Provides cout and cin #include // Provides EXIT_SUCCESS int main( ) { cout << "Hello, world!" << endl; return EXIT_SUCCESS; }