{"id":224907,"date":"2018-09-17T06:03:47","date_gmt":"2018-09-17T06:03:47","guid":{"rendered":"http:\/\/localhost\/wordpress\/index.php\/2018\/09\/17\/inf-231-week-1-dq-2-running-applications\/"},"modified":"2018-10-24T08:56:11","modified_gmt":"2018-10-24T08:56:11","slug":"inf-231-week-1-dq-2-running-applications","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/inf-231-week-1-dq-2-running-applications\/","title":{"rendered":"INF 231 Week 1 DQ 2 Running Applications"},"content":{"rendered":"<p>Install the application provided with the text. You should be installing Microsoft Visual C++ 2005. Depending on your operating system, you may need to download and run alternate software. XP users\u00a0may need the following patch to get the Visual C++ software\u00a0to run:\u00a0Service Pack 1. Windows Vista and Windows 7 users are advised to download a similar opensource C++ program:DEV C++ by Bloodshed, instead of the software provided with the text.\tYou will also need to copy the zip file that provides the C++ libraries:Libraries.zip. Please\u00a0read these\u00a0Instructions\u00a0on downloading\u00a0the zip files to your hard drive.\tAs part of this exercise you will also use the sample code below to test the application, compile the code and\u00a0communicate that your application was installed and working.\tThis is the sample code:\t#include <iostream>\t#include <string>\tusing\u00a0namespace std;\tint\u00a0main()\t{\t\u00a0 string str1(&#8220;Alpha&#8221;);\t\u00a0 string str2(&#8220;Beta&#8221;);\t\u00a0 string str3(&#8220;Omega&#8221;);\t\u00a0 string str4;\t\u00a0 \/\/ assign a string\t\u00a0 ;\t\u00a0 cout << str1 << \"n\" << str3 << \"n\";\t\u00a0 \/\/ concatenate two strings\t\u00a0 + str2;\t\u00a0 cout << str4 << \"n\";\t\u00a0 \/\/ concatenate a string with a C-string\t\u00a0 + \" to \" + str3;\t\u00a0 cout << str4 << \"n\";\t\u00a0 \/\/ compare strings\t\u00a0 if(str3 > str1) cout << \"str3 > str1n&#8221;;\t\u00a0 if(str3 == str1+str2)\t\u00a0 cout << \"str3 == str1+str2n\";\t\u00a0 \/* A string object can also be\t\u00a0 assigned a normal string. *\/\t\u00a0 ;\t\u00a0 cout << str1;\t\u00a0 \/\/ create a string object using another string object\t\u00a0 string str5(str1);\t\u00a0 cout << str5;\t\u00a0 \/\/ input a string\t\u00a0 cout << \"Enter a string: \";\t\u00a0 cin >> str5;\t\u00a0 cout << str5;\t\u00a0return\u00a00;\t\u00a0 }\tThe code above is a simple program that will output some string statements and then ask for one input and close after you enter text and then hit enter.\tTry to change the text once you are successful and rename your source file. Play around with the strings. Report your experience and your efforts to the discussion board. Respond to at least two of your classmates' postings.\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install the application provided with the text. You should be installing Microsoft Visual C++ 2005. Depending on your operating system, you may need to download and run alternate software. XP users\u00a0may need the following patch to get the Visual C++ <a href=\"https:\/\/www.benedictsol.com\/blogs\/inf-231-week-1-dq-2-running-applications\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-224907","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/224907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/comments?post=224907"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/224907\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=224907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=224907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=224907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}