{"id":671,"date":"2017-08-09T23:51:02","date_gmt":"2017-08-09T23:51:02","guid":{"rendered":"http:\/\/people.utm.my\/kohmenghock\/?page_id=671"},"modified":"2017-08-10T03:02:15","modified_gmt":"2017-08-10T03:02:15","slug":"1-0-creating-new-project","status":"publish","type":"page","link":"https:\/\/people.utm.my\/kohmenghock\/1-0-creating-new-project\/","title":{"rendered":"Code::Blocks simple guide &#8211; Creating new project"},"content":{"rendered":"<p style=\"text-align: justify\"><span style=\"font-size: 12pt;font-family: arial,helvetica,sans-serif\"><br \/>\nI shall assume that you have managed to install Code::Blocks and the Fortran compiler in your laptop or computer. Now I will show in a series of short write-up after this on how to use the Code::Blocks to write a simple Fortran program.<br \/>\n<\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-size: 12pt;font-family: arial,helvetica,sans-serif\"><br \/>\nLet us get straight to the task. You will launch the Code::Blocks on your computer. To start writing a program, you will need to have a project environment. Here is what you need to do.<\/p>\n<ul>\n<li>Go to &#8220;File&#8221; on the top left corner of your screen<\/li>\n<li>Click on &#8220;New&#8221; and go to &#8220;Project&#8221;<\/li>\n<\/ul>\n<p><a href=\"https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/start_new_project.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-672 size-full\" src=\"https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/start_new_project.png\" alt=\"\" width=\"1920\" height=\"1020\" srcset=\"https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/start_new_project.png 1920w, https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/start_new_project-300x159.png 300w, https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/start_new_project-768x408.png 768w, https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/start_new_project-1024x544.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<ul>\n<li>Next, click on &#8220;Fortran application&#8221; and click on &#8220;go&#8221;.<\/li>\n<\/ul>\n<p style=\"text-align: center\"><a href=\"https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/step_2_click_fortran_application.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-676 size-medium\" src=\"https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/step_2_click_fortran_application-300x207.png\" alt=\"\" width=\"300\" height=\"207\" srcset=\"https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/step_2_click_fortran_application-300x207.png 300w, https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/step_2_click_fortran_application.png 703w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<ul>\n<li>You will be lead to an application wizard. Click on &#8220;Next&#8221;.<\/li>\n<li>In the next step, you will decide on the project name and the directory in which you want to save the work. For this practice, we shall name the project as &#8220;Fortran_practice_1&#8221;. After deciding on the directory, click &#8220;Next&#8221;.<\/li>\n<li>In the next page, click on &#8220;GNU Fortran compiler&#8221; under the list of available compilers. Then click &#8220;Finish&#8221;.<\/li>\n<\/ul>\n<p style=\"text-align: center\"><a href=\"https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/step_3_choose_fortran_compiler.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-677\" src=\"https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/step_3_choose_fortran_compiler-300x251.png\" alt=\"\" width=\"300\" height=\"251\" srcset=\"https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/step_3_choose_fortran_compiler-300x251.png 300w, https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/step_3_choose_fortran_compiler.png 630w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<ul>\n<li>The template for your new project will then be ready. On the left-hand side, you will see the name of your project &#8220;Fortran_practice_1&#8221;. Under it, you will see &#8220;Fortran sources&#8221;. Click on the &#8220;plus&#8221; sign and there you will have the file &#8220;main.f95&#8221;.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/step_4_main_file.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-679 size-large\" src=\"https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/step_4_main_file-1024x544.png\" alt=\"\" width=\"1024\" height=\"544\" srcset=\"https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/step_4_main_file-1024x544.png 1024w, https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/step_4_main_file-300x159.png 300w, https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/step_4_main_file-768x408.png 768w, https:\/\/people.utm.my\/kohmenghock\/wp-content\/uploads\/sites\/982\/2017\/08\/step_4_main_file.png 1920w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><br \/>\n<\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-size: 12pt;font-family: arial,helvetica,sans-serif\"><br \/>\nUp to now we have look at how to create new project in Code::Blocks. In the next post, I shall show you how to run a simple Fortran code to print some messages.<br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I shall assume that you have managed to install Code::Blocks and the Fortran compiler in your laptop or computer. Now I will show in a series of short write-up after this on how to use the Code::Blocks to write a simple Fortran program. Let us get straight to the task. You will launch the Code::Blocks &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/people.utm.my\/kohmenghock\/1-0-creating-new-project\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Code::Blocks simple guide &#8211; Creating new project&#8221;<\/span><\/a><\/p>\n","protected":false},"author":14180,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-671","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/people.utm.my\/kohmenghock\/wp-json\/wp\/v2\/pages\/671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.utm.my\/kohmenghock\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/people.utm.my\/kohmenghock\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/people.utm.my\/kohmenghock\/wp-json\/wp\/v2\/users\/14180"}],"replies":[{"embeddable":true,"href":"https:\/\/people.utm.my\/kohmenghock\/wp-json\/wp\/v2\/comments?post=671"}],"version-history":[{"count":0,"href":"https:\/\/people.utm.my\/kohmenghock\/wp-json\/wp\/v2\/pages\/671\/revisions"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/kohmenghock\/wp-json\/wp\/v2\/media?parent=671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}