summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/pygmentex/pygmentex_demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/pygmentex/pygmentex_demo.c')
-rw-r--r--macros/latex/contrib/pygmentex/pygmentex_demo.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/latex/contrib/pygmentex/pygmentex_demo.c b/macros/latex/contrib/pygmentex/pygmentex_demo.c
new file mode 100644
index 0000000000..1d739f5edf
--- /dev/null
+++ b/macros/latex/contrib/pygmentex/pygmentex_demo.c
@@ -0,0 +1,22 @@
+// test.cpp
+
+#include <iostream>
+
+using namespace std;
+
+void greetings()
+{
+ string name;
+ cout << "What is your name? ";
+ cin >> name;
+ cout << "Hello, "
+ << name
+ << '!'
+ << endl;
+}
+
+int main()
+{
+ greetings();
+ return 0;
+}