Web-based Compiler - Version 2.0
Created by Don Retzlaff and Tom Irby
Instructions
1. Edit the program below.
2. Select the
.h
files for your program.
3. Select the
.cpp
files for your program.
4. Edit the
cin
data below.
5. Select other Input File Stream files (if any) near bottom of the form.
6. Enter the name of any Output File Stream files the program writes.
7. Click the "Compile/Run" button.
Enter main.cpp code:
// main.cpp #include
#include
using namespace std; int main () { string s; cout << "Enter a string of characters: "; cin.getline(s); cout << "s = '" << s << "'" << endl; return 0; }
Header (
.h
) Files:
Source (
.cpp
) Files:
Enter
cin
data here:
This is a line of characters.
ifstream
Files:
ofstream
File Names: