-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test program to expand tabs and return characters in locals and toolt…
…ips.
- Loading branch information
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hellopoem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.PHONY: all | ||
all: hellopoem | ||
|
||
hellopoem: hellopoem.cpp | ||
g++ -g -o hellopoem hellopoem.cpp | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -f hellopoem hellopoem.o | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
A good program to test escaping tabs and return characters | ||
in the locals tab and tooltips. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <iostream> | ||
#include <stdlib.h> | ||
|
||
int main (int argc, char* argv[]) { | ||
|
||
std::string poem = "'Treasure' by Lucillius\n\n" | ||
"\tThey call thee rich; I deem thee poor;\n" | ||
"\tSince, if thou dares not use thy store,\n" | ||
"\tBut saves only for thine heirs,\n" | ||
"\tThe treasure is not thine, but theirs.\n"; | ||
|
||
// Print it. | ||
std::cout << poem << std::endl; | ||
|
||
return 0; | ||
} | ||
|