Diff for ''
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| <includeonly><div class="thumb {{#switch: {{{align|}}} | left = tleft | center | centre = tnone | tright}} {{#if: {{{noclear|}}} | no-clear }}" style="width:{{#ifeq: {{{direction|horizontal}}} | vertical | {{#expr: {{#if: {{{width|}}} | {{{width}}} | {{{width1}}} }} + 12}} | {{#if: {{{width|}}} | {{#expr: 8 + ({{{width|0}}} + 4) * {{#if: {{{image5|}}} | 5 | {{#if: {{{image4|}}} | 4 | {{#if: {{{image3|}}} | 3 | 2 }} }} }} }} | {{#expr: 16 + {{{width1}}} + {{{width2}}} + {{{width3|0}}} + {{{width4|0}}} + {{{width5|0}}} + {{#if: {{{image5|}}} | 12 | {{#if: {{{image4|}}} | 8 | {{#if: {{{image3|}}} | 4 | 0 }} }} }} }} }} }}px;{{#switch: {{{align|}}} | center | centre = margin: 0 auto;}}"> <div class="thumbinner"> {{#if: {{{header|}}} | <div style="clear:both;font-weight:bold;text-align:{{{header_align|center}}};background:{{{header_background|transparent}}};">{{{header}}}</div> }} <div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{#if: {{{width|}}} | {{{width}}} | {{{width1}}} }} }}px;"><div class="thumbimage">[[Image:{{{image1}}}|{{#if: {{{width|}}} | {{{width}}} | {{{width1}}} }}px|{{{caption1|{{{box_caption}}}}}}]]</div>{{#if: {{{caption1|}}} | <div class="thumbcaption" style="clear:left;">{{{caption1}}}</div>}}</div> <div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{#if: {{{width|}}} | {{{width}}} | {{{width2}}} }} }}px;"><div class="thumbimage">[[Image:{{{image2}}}|{{#if: {{{width|}}} | {{{width}}} | {{{width2}}} }}px|{{{caption2|{{{box_caption}}}}}}]]</div>{{#if: {{{caption2|}}} | <div class="thumbcaption" style="clear:left;">{{{caption2}}}</div>}}</div> {{#if: {{{image3|}}} | <div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{#if: {{{width|}}} | {{{width}}} | {{{width3}}} }} }}px;"><div class="thumbimage">[[Image:{{{image3}}}|{{#if: {{{width|}}} | {{{width}}} | {{{width3}}} }}px|{{{caption3|{{{box_caption}}}}}}]]</div>{{#if: {{{caption3|}}} | <div class="thumbcaption" style="clear:left;">{{{caption3}}}</div>}}</div> {{#if: {{{image4|}}} | <div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{#if: {{{width|}}} | {{{width}}} | {{{width4}}} }} }}px;"><div class="thumbimage">[[Image:{{{image4}}}|{{#if: {{{width|}}} | {{{width}}} | {{{width4}}} }}px|{{{caption4|{{{box_caption}}}}}}]]</div>{{#if: {{{caption4|}}} | <div class="thumbcaption" style="clear:left;">{{{caption4}}}</div>}}</div> {{#if: {{{image5|}}} | <div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{#if: {{{width|}}} | {{{width}}} | {{{width5}}} }} }}px;"><div class="thumbimage">[[Image:{{{image5}}}|{{#if: {{{width|}}} | {{{width}}} | {{{width5}}} }}px|{{{caption5|{{{box_caption}}}}}}]]</div>{{#if: {{{caption5|}}} | <div class="thumbcaption" style="clear:left;">{{{caption5}}}</div>}}</div>}}}}}} {{#if: {{{footer|}}} | <div class="thumbcaption" style="clear:left;text-align:{{{footer_align|left}}};background:{{{footer_background|transparent}}};">{{{footer}}}</div> }}</div></div></includeonly><noinclude> {{documentation}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude> |
# pomoc s programovýním v C++ <{ForumPost(poster="biomedika", timestamp=2009-01-22 08:49:53)}> pomůže mi někdo vyřešit tuto úlohu? budu vám zavázán... Napište funkci: a) spočítejte a vypište reálné kořeny kvadratické rovnice A.x2 + B.x + C=0. Koeficienty A,B,C bude možné zadat jako vstupní parametry funkce. Na obrazovku vypište číselné hodnoty kořenů b)vypište i typ kořenů: reálný jednonásobný kořen, reálný dvojnásobný kořen, případné hlášení, že rovnice nemá řešení v oboru real. Čísel c)doplňte řešení a o možnost výpočtu a výpisu komplexních kořenů d) rozšiřte řešení o výpis všech výsledků do externího textového souboru, název tohoto souboru bude možné zadat jako vstupní parametr funkce <{/ForumPost}> <{ForumPost(poster="Navry", timestamp=2009-02-03 18:43:00)}> mmm... předpokládám, že nějaké zadávání čísel, práce se soubory a podobně je jasná. pomůže ti tohle? #include<iostream> #include<math.h> using namespace std; int main() {double A = 1;double B = 2;double C = 1;//Diskriminant: D=B^2 -4ACdouble D = B*B - 4* A *C;//x_(1,2) = (-B +- sqrt(D)) / 2Aif (D==0) {cout << "dvojnasobny koren " << (-B) / (2*A); return 0;}if (D>0) cout << "realne koreny "<< (-B + sqrt(D))/(2*A) << " a "<<(-B - sqrt(D))/(2*A)<<". ";else cout << "imaginarni koreny "<< (-B + sqrt(-D))/(2*A) << " a "<<(-B - sqrt(-D))/(2*A)<<". ";return 0; } <{/ForumPost}> <{ForumPost(poster="Malejmiky", timestamp=2009-02-24 16:17:06)}> Ahoj,potreboval bych taky pomoc s jedním programem,pokud mi chcete pomoc tak napiste na [j.Mikota@seznam.cz](mailto:j.Mikota@seznam.cz),nabízim za to odměnu,diky moc <{/ForumPost}> |