{"id":834,"date":"2022-08-30T15:07:57","date_gmt":"2022-08-30T15:07:57","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/whats-wrong-with-my-c-codes3-errorsdeclaration-missing-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:07:57","modified_gmt":"2022-08-30T15:07:57","slug":"whats-wrong-with-my-c-codes3-errorsdeclaration-missing-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/whats-wrong-with-my-c-codes3-errorsdeclaration-missing-collection-of-common-programming-errors\/","title":{"rendered":"Whats wrong with my C++ codes?3 errors?declaration missing?-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li>you forgot the # in your first line: #include as well you misspelt the second include #include your bracket is the wrong way around or is not needed { float maximum(float + []) }\n<p>getch is undeclared. finish your code.<\/p>\n<\/li>\n<li>I have studied your programming and corrected the mistakes. Along side the new\/corrected code,your old code is also retained as comments, so that you will know where you went wrong. #include \/\/ error # missing #include\/\/ spelling mistake \/\/void main() &#8211; these two lines are unwanted \/\/{ float maximum( float *f) \/\/ float maximum(float + []) { float max; int i; max =f[0]; \/\/ max=+[0]; do not initialise it to 0, \/\/but initialise it to the first element for(i=1;imax)\/\/if(+[i]&gt;max) max = f[i];\/\/ max=+[i]; } return max; } float minimum (float *f)\/\/float minimum(float +[]) { float min; int i; min=f[0];\/\/ min=+[0]; do not initialise it to 0, \/\/but initialise it to first value for(i=1;i<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-11-09 22:48:12. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>you forgot the # in your first line: #include as well you misspelt the second include #include your bracket is the wrong way around or is not needed { float maximum(float + []) } getch is undeclared. finish your code. I have studied your programming and corrected the mistakes. Along side the new\/corrected code,your old [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-834","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=834"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/834\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}