{"action":"created","issue":{"url":"https://api.github.com/repos/TP1-HHU/hw4/issues/16","labels_url":"https://api.github.com/repos/TP1-HHU/hw4/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/TP1-HHU/hw4/issues/16/comments","events_url":"https://api.github.com/repos/TP1-HHU/hw4/issues/16/events","html_url":"https://github.com/TP1-HHU/hw4/issues/16","id":118194512,"number":16,"title":"max und min","user":{"login":"Esuena","id":15214377,"avatar_url":"https://avatars.githubusercontent.com/u/15214377?v=3","gravatar_id":"","url":"https://api.github.com/users/Esuena","html_url":"https://github.com/Esuena","followers_url":"https://api.github.com/users/Esuena/followers","following_url":"https://api.github.com/users/Esuena/following{/other_user}","gists_url":"https://api.github.com/users/Esuena/gists{/gist_id}","starred_url":"https://api.github.com/users/Esuena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Esuena/subscriptions","organizations_url":"https://api.github.com/users/Esuena/orgs","repos_url":"https://api.github.com/users/Esuena/repos","events_url":"https://api.github.com/users/Esuena/events{/privacy}","received_events_url":"https://api.github.com/users/Esuena/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-11-21T12:59:57Z","updated_at":"2015-11-22T14:29:52Z","closed_at":null,"body":"wie lautet die Bedingung zur Bestimmung des Maximums und Minimums in einem Array?\r\nIch brauche doch \"if(...)\" richtig?\r\n\r\nMeine Subfunction sieht folgendermassen aus:\r\n\r\nvoid f2(double* x, const int N){\r\ndouble max=x[0];\r\ndouble min=x[N-1];\r\nfor(int i=1; i<N; i++){\r\n     if(x[i]>max)\r\n           max=x[i];\r\n     if(x[i]<min)\r\n           min=x[i];\r\n    }\r\n}\r\n\r\nDer Compiler gibt fur den ganzen Code keine Probleme an, aber Min und Max sind definitv falsch.\r\n"},"comment":{"url":"https://api.github.com/repos/TP1-HHU/hw4/issues/comments/158763389","html_url":"https://github.com/TP1-HHU/hw4/issues/16#issuecomment-158763389","issue_url":"https://api.github.com/repos/TP1-HHU/hw4/issues/16","id":158763389,"user":{"login":"Esuena","id":15214377,"avatar_url":"https://avatars.githubusercontent.com/u/15214377?v=3","gravatar_id":"","url":"https://api.github.com/users/Esuena","html_url":"https://github.com/Esuena","followers_url":"https://api.github.com/users/Esuena/followers","following_url":"https://api.github.com/users/Esuena/following{/other_user}","gists_url":"https://api.github.com/users/Esuena/gists{/gist_id}","starred_url":"https://api.github.com/users/Esuena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Esuena/subscriptions","organizations_url":"https://api.github.com/users/Esuena/orgs","repos_url":"https://api.github.com/users/Esuena/repos","events_url":"https://api.github.com/users/Esuena/events{/privacy}","received_events_url":"https://api.github.com/users/Esuena/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T14:29:52Z","updated_at":"2015-11-22T14:29:52Z","body":"Min=0.00294702\r\nMax=0.988014\r\nVerstehe allerdings nicht, was das bringt. Die ändern sich doch eh nach jedem Compilen."}}