{"id":404,"date":"2009-09-29T18:47:19","date_gmt":"2009-09-29T13:17:19","guid":{"rendered":"http:\/\/judepereira.com\/blog\/?p=404"},"modified":"2009-10-24T09:42:34","modified_gmt":"2009-10-24T04:12:34","slug":"non-standards-compliant-c-with-mumbai-university","status":"publish","type":"post","link":"https:\/\/judepereira.com\/blog\/non-standards-compliant-c-with-mumbai-university\/","title":{"rendered":"NON-Standards Compliant C++ with Mumbai University"},"content":{"rendered":"<p>Mumbai University fails to keep up with the ever-evolving C++ syntax. Making Turbo C\/C++ as their prescribed IDE, Turbo C\/C++ is ancient and will not compile with the present syntax of C++. Here is the simplest example:<br \/>\n[sourcecode language=&#8217;c++&#8217;]<br \/>\n#include <iostream.h><br \/>\n#include <conio.h><br \/>\nvoid main()<br \/>\n{<br \/>\n\tcout << \"Hello\";\n}\n[\/sourcecode]\nThe above code, when compiled with g++ 4.3.4, will give the following errors, but with Turbo C\/C++ will compile and run just fine:\n<code><br \/>\nfirstApp.cpp:1:22: error: iostream.h: No such file or directory<br \/>\nfirstApp.cpp:2:19: error: conio.h: No such file or directory<br \/>\nfirstApp.cpp:4: error: &#8216;::main&#8217; must return &#8216;int&#8217;<br \/>\nfirstApp.cpp: In function &#8216;int main()&#8217;:<br \/>\nfirstApp.cpp:6: error: &#8216;cout&#8217; was not declared in this scope<br \/>\n<\/code><br \/>\nHere is the same code, but following the correct syntax:<br \/>\n[sourcecode language=&#8217;c++&#8217;]<br \/>\n#include <iostream><br \/>\nusing namespace std;<br \/>\nint main()<br \/>\n{<br \/>\n\tcout << \"Hello\";\n\treturn 42;\n}\n[\/sourcecode]\nwill compile and run just fine.\n\n\n<blockquote>Argggg!!! This never ends! They even introspect on Valid XHTML and CSS standards!<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Mumbai University fails to keep up with the ever-evolving C++ syntax. Making Turbo C\/C++ as their prescribed IDE, Turbo C\/C++ is ancient and will not compile with the present syntax of C++. Here is the simplest example: [sourcecode language=&#8217;c++&#8217;] #include #include void main() { cout<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[52,32,12],"tags":[78,79,77],"class_list":["post-404","post","type-post","status-publish","format-standard","hentry","category-code","category-living-a-wonder","category-misc","tag-c","tag-depreciated-standards","tag-mumbai-university"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pqtyx-6w","jetpack-related-posts":[{"id":903,"url":"https:\/\/judepereira.com\/blog\/usrlocalbinwaitpid\/","url_meta":{"origin":404,"position":0},"title":"\/usr\/local\/bin\/waitpid","author":"Jude Pereira","date":"April 26, 2011","format":false,"excerpt":"A quick script to wait for a certain pid, then once that quits, execute a command. You may ask, why not just do command1 && command2 ? Well, if command1 exits with a non-zero exit status value, command2 will not get executed. Hence, I've brewed a quick script for this\u2026","rel":"","context":"In &quot;another snippet | code&quot;","block_context":{"text":"another snippet | code","link":"https:\/\/judepereira.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1778,"url":"https:\/\/judepereira.com\/blog\/letstuneup-a-music-chart-with-arjit-singh-in-the-lead\/","url_meta":{"origin":404,"position":1},"title":"LetsTuneup: A music chart with Arjit Singh in the lead","author":"Jude Pereira","date":"April 28, 2017","format":false,"excerpt":"LetsTuneup has grown tremendously, and with it, we've introduced new features too. We identified that a few of our users couldn't use the app to it's full extent because they didn't have music on their devices. We've solved that. Users can now pick their favourite artists, powered by a location\u2026","rel":"","context":"In &quot;android&quot;","block_context":{"text":"android","link":"https:\/\/judepereira.com\/blog\/category\/code\/android\/"},"img":{"alt_text":"Arjit Singh in the lead, with Eminem, Linking Park, Coldplay and Pink Floyd following close","src":"https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/artists.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1696,"url":"https:\/\/judepereira.com\/blog\/mocking-the-http2-apple-push-notification-gateway-in-go\/","url_meta":{"origin":404,"position":2},"title":"Mocking the HTTP\/2 Apple push notification gateway in Go","author":"Jude Pereira","date":"February 17, 2016","format":false,"excerpt":"At CleverTap, we had the need to mock the new HTTP\/2 Apple push gateway API. After trying to do this in Java, and then in Python, I succeeded in getting it to work in Go. Go out of all languages! To me, Go has a completely strange syntax, compared to\u2026","rel":"","context":"In &quot;another snippet | code&quot;","block_context":{"text":"another snippet | code","link":"https:\/\/judepereira.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1648,"url":"https:\/\/judepereira.com\/blog\/openwrt-wont-bring-my-wifi-interface-up-unless-the-other-is-up\/","url_meta":{"origin":404,"position":3},"title":"OpenWRT won&#8217;t bring my WiFi interface up, unless the other is up","author":"Jude Pereira","date":"September 25, 2015","format":false,"excerpt":"I recently bought a D-Link DIR 505 router. So far, I've got a DLNA server running on it, along with Transmission, a bit torrent client. Life is awesome so far. I set it up to repeat another WiFi router in my house, the one connected to the internet - using\u2026","rel":"","context":"In &quot;another snippet | code&quot;","block_context":{"text":"another snippet | code","link":"https:\/\/judepereira.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1750,"url":"https:\/\/judepereira.com\/blog\/fbstart-accepts-matchbox-into-their-bootstrap-track\/","url_meta":{"origin":404,"position":4},"title":"FbStart accepts Matchbox into their Bootstrap track!","author":"Jude Pereira","date":"February 11, 2017","format":false,"excerpt":"\u00a0 This was\u00a0completely unexpected. Matchbox got accepted yesterday into FbStart's Bootstrap track, and has received a lot of freebies (worth $40K USD) to kickstart the platform's growth. Matchbox is born and bred in Mumbai, India. To be a part of the few apps in India to be accepted, means a\u2026","rel":"","context":"In &quot;miscellaneous&quot;","block_context":{"text":"miscellaneous","link":"https:\/\/judepereira.com\/blog\/category\/misc\/"},"img":{"alt_text":"FbStart accepts Matchbox","src":"https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/Screen-Shot-2017-02-11-at-15.28.58-1024x400.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/Screen-Shot-2017-02-11-at-15.28.58-1024x400.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/Screen-Shot-2017-02-11-at-15.28.58-1024x400.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/judepereira.com\/blog\/wp-content\/uploads\/Screen-Shot-2017-02-11-at-15.28.58-1024x400.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1794,"url":"https:\/\/judepereira.com\/blog\/letstuneup-was-on-ishqfm\/","url_meta":{"origin":404,"position":5},"title":"LetsTuneup was on Ishq 104.8 FM today!","author":"Jude Pereira","date":"November 16, 2017","format":false,"excerpt":"Today marked a significant milestone in LetsTuneup's life - we were interviewed live by RJ Sangeeta on Ishq 104.8 FM in Mumbai! How it all came about Yesterday, the morning show producer of Ishq FM messaged me, and asked if the RJ could talk to me the very next morning\u2026","rel":"","context":"In &quot;letstuneup&quot;","block_context":{"text":"letstuneup","link":"https:\/\/judepereira.com\/blog\/category\/letstuneup\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/posts\/404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/comments?post=404"}],"version-history":[{"count":18,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/posts\/404\/revisions"}],"predecessor-version":[{"id":434,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/posts\/404\/revisions\/434"}],"wp:attachment":[{"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/media?parent=404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/categories?post=404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/judepereira.com\/blog\/wp-json\/wp\/v2\/tags?post=404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}