Go to the source code of this file.
Function Documentation
| static void printlines |
( |
int |
n, |
|
|
list< string > & |
lines, |
|
|
ostream & |
fout |
|
) |
| [static] |
Print a list of lines.
- Parameters:
-
| n | number of tabs of indentation |
| lines | list of lines to be printed |
| fout | output stream |
Definition at line 26 of file loop.cpp.
References tab().
{
list<string>::iterator s;
for (s = lines.begin(); s != lines.end(); s++) {
tab(n, fout); fout << *s;
}
}
| static void tab |
( |
int |
n, |
|
|
ostream & |
fout |
|
) |
| [static] |
Print n tabs (for indentation purpose)
- Parameters:
-
| n | number of tabs to print |
| fout | output stream |
Definition at line 13 of file loop.cpp.
{
fout << '\n';
while (n--) fout << '\t';
}
Variable Documentation