aboutsummaryrefslogtreecommitdiffstats
path: root/smalltest.cpp
diff options
context:
space:
mode:
authorzedarider <ymherklotz@gmail.com>2016-02-18 11:37:45 +0000
committerzedarider <ymherklotz@gmail.com>2016-02-18 11:37:45 +0000
commitaf98ee7ff28cff97f5f29a5d9e65f9153531b0ee (patch)
tree86bfc53a0bc04512ac2936ee067a2b43e901e688 /smalltest.cpp
downloadimperial_2015-af98ee7ff28cff97f5f29a5d9e65f9153531b0ee.tar.gz
imperial_2015-af98ee7ff28cff97f5f29a5d9e65f9153531b0ee.zip
Imperial C++ Directory
These are all the projects I’ve been working on at university.
Diffstat (limited to 'smalltest.cpp')
-rw-r--r--smalltest.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/smalltest.cpp b/smalltest.cpp
new file mode 100644
index 0000000..52e5044
--- /dev/null
+++ b/smalltest.cpp
@@ -0,0 +1,16 @@
+#include <iostream>
+#include <string>
+
+using namespace std;
+
+int main() {
+ string str1 = "Hello";
+ string str2 = "Hella";
+ if(str1 == str2) {
+ cout << str1 << " equals " << str2 << endl;
+ } else if(str1 < str2) {
+ cout << str1 << " is smaller than " << str2 << endl;
+ } else if(str1 > str2){
+ cout << str1 << " is greater than " << str2 << endl;
+ }
+}