Professional Documents
Culture Documents
Introduction
The following experiments are intended for the subject Computer Fundamentals and
Programming. There are two programming language used, which are C++ and the Visual Basic 6.
Experiment 1 up to 12 uses the C++ that uses the Microsoft’s Visual C++ and Experiment 13 up to 19
uses the Visual Basic 6.
Using the C++, locate the Microsoft Visual C++ 6 in the Windows’ start button, under the “All
Programs” category. It is placed in the Microsoft Visual Studio 6 folder or just simply search “C++” and
open the software. When the following window appears, just check the box labeled “Don’t show this
message again.” and click on “Run program.”
In the GUI of the Microsoft Visual C++, close the tip-of-the-day window and select New in the
File Menu. The following window will appear with four tabs to be selected. Choose Files, select “C++
Source File” and press the “OK” button. Now, the coding of the program is ready.
2
Encode the example program below. Save it in the “My Documents” folder. Compile the
program by pressing the build button or simply press the F7 key.
//Example Program:
#include<iostream.h>
int main(void)
{
cout<<"\nWelcome to C++ programmig session!\n";
cin.get();
return 0;
}
A project workspace is needed for the compilation of the program and for the temporary files
produced during the process. Select “yes” when the following window appears.
3
An Output window (located at the bottom of the GUI window of the C++) will display the result
of the compilation if there are errors, warnings, or successful compilation - 0 error(s).
Without errors, the program now is ready to be executed by pressing the “Execute Program”
button or by pressing Ctrl+F5.
If an error occurs, just double click the line of the error message and automatically the GUI
window will point the portion of the program where the error is located. Usually, it points to the next
line as illustrated on the example result below. For the example error, it lacks the semi-colon at the end
of the statement cin.get().
4
To open a C++ file already saved, if there is an open C++ file, close it first by clicking on the
Close Workspace option under the File Menu and select Yes. For the meantime, just load one C++ code
at a time. To open a saved C++, select Open in the File Menu and browse for the file to be opened and
select it.
5
Table of Contents
Label Highlight
Title
Introduction 1