Click here to Skip to main content
15,893,381 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to change the color of scroll bar in c# desktop Application ? Pin
Jax_qqq9-May-06 23:54
Jax_qqq9-May-06 23:54 
GeneralRe: How to change the color of scroll bar in c# desktop Application ? Pin
alexey N10-May-06 0:22
alexey N10-May-06 0:22 
GeneralRe: How to change the color of scroll bar in c# desktop Application ? Pin
Jax_qqq10-May-06 0:37
Jax_qqq10-May-06 0:37 
Questionbrowser application in windows form Pin
ranandbe9-May-06 23:18
ranandbe9-May-06 23:18 
AnswerRe: browser application in windows form Pin
Ravi Bhavnani10-May-06 4:22
professionalRavi Bhavnani10-May-06 4:22 
QuestionOpen "Windows Image and Fax Viewer" Pin
Greeky9-May-06 23:13
Greeky9-May-06 23:13 
QuestionQuadratic Equation Pin
Jailan9-May-06 23:02
Jailan9-May-06 23:02 
AnswerRe: Quadratic Equation Pin
Cristoff9-May-06 23:14
Cristoff9-May-06 23:14 
This should be fairly easy just look for algorithm. I have such somewhere in C:


:-O/////////////////////////////////////////////////////////<br />
//<br />
// ГЛАВА:     1<br />
// НОМЕР:     2<br />
// АЛГОРИТЪМ: Решаване на квадратно уравнение<br />
//<br />
/////////////////////////////////////////////////////////<br />
<br />
#include <math.h><br />
#include <iostream><br />
<br />
using namespace std;<br />
<br />
int main( void )<br />
{<br />
    float a, b, c; // Vhodni promenlivi<br />
<br />
	float x1Real, x1Imaginary; // Koreni X1<br />
	float x2Real, x2Imaginary; // Koreni X2<br />
<br />
    double D; // Determinant<br />
<br />
    cout << "Enter variable a: ";<br />
    cin >> a;<br />
<br />
    cout << "Enter variable b: ";<br />
    cin >> b;<br />
<br />
    cout << "Enter variable c: ";<br />
    cin >> c;<br />
<br />
    if ( a==0 )<br />
    {<br />
        if ( b==0 )<br />
        {<br />
            if ( c==0 )<br />
                cout << "\nInfinite number of solutions" << endl << endl;<br />
            else<br />
                cout << "\nNo solutions" << endl << endl;<br />
        }<br />
        else<br />
        {<br />
			x1Real = -b/c;<br />
			cout << endl << " Result: xl real = " << x1Real << endl << endl;<br />
        }<br />
    }<br />
    else<br />
    {<br />
        D = b*b - 4*a*c;<br />
        if( D >= 0 )<br />
        { <br />
			// Realni koreni<br />
            D = sqrt (D) ;<br />
            if( b >=0 )<br />
                x1Real = (-b-D)/(2*a); /* rl */<br />
            else<br />
                x1Real = (-b+D)/(2*a); /* r2 */<br />
            x2Real = c/(x1Real*a);<br />
<br />
			// Razpechatay rezultata<br />
			cout << endl;<br />
			cout << " Result: xl real = " << x1Real << endl;<br />
			cout << "         x2 real = " << x2Real << endl << endl;<br />
        }<br />
        else<br />
        { <br />
			// Imaginerni koreni<br />
            x1Real = -b/ (2*a) ;<br />
            x2Real = -x1Real;<br />
<br />
            x1Imaginary = sqrt(-D);<br />
            x2Imaginary = -x1Imaginary;<br />
<br />
			// Razpechatay rezultata<br />
			cout << endl;<br />
			cout << " Result: xl real      = " << x1Real << endl;<br />
			cout << "         x1 imaginary = " << x1Imaginary << endl;<br />
            cout << "         x2 real      = " << x2Real << endl;<br />
			cout << "         x2 imaginary = " << x2Imaginary << endl << endl;<br />
        }<br />
    }<br />
}

QuestionRichTextBox question Pin
Cristoff9-May-06 22:50
Cristoff9-May-06 22:50 
AnswerRe: RichTextBox question Pin
Office Lineman10-May-06 6:22
Office Lineman10-May-06 6:22 
GeneralRe: RichTextBox question Pin
Cristoff14-May-06 4:59
Cristoff14-May-06 4:59 
QuestionHow to access the outlook Address Book Pin
AnnnS9-May-06 22:37
AnnnS9-May-06 22:37 
AnswerRe: How to access the outlook Address Book Pin
Robert Rohde9-May-06 22:42
Robert Rohde9-May-06 22:42 
GeneralRe: How to access the outlook Address Book Pin
AnnnS10-May-06 0:09
AnnnS10-May-06 0:09 
QuestionImage processing Pin
IMClimatology9-May-06 22:27
IMClimatology9-May-06 22:27 
AnswerRe: Image processing Pin
Robert Rohde9-May-06 22:40
Robert Rohde9-May-06 22:40 
Questionconnecting MS acces table to treeview Pin
jinup9-May-06 22:16
jinup9-May-06 22:16 
Questionhow to simulate login process wiht verify picture with httpwebrequest Pin
huangsheng9-May-06 22:05
huangsheng9-May-06 22:05 
AnswerRe: how to simulate login process wiht verify picture with httpwebrequest Pin
huangsheng10-May-06 5:02
huangsheng10-May-06 5:02 
Questionhow to customize calendar drawing Pin
Sasuko9-May-06 21:58
Sasuko9-May-06 21:58 
QuestionGDI Interface Pin
cshivaprasad9-May-06 21:40
cshivaprasad9-May-06 21:40 
AnswerRe: GDI Interface Pin
alexey N9-May-06 22:27
alexey N9-May-06 22:27 
GeneralRe: GDI Interface Pin
cshivaprasad9-May-06 23:55
cshivaprasad9-May-06 23:55 
GeneralRe: GDI Interface Pin
alexey N10-May-06 0:20
alexey N10-May-06 0:20 
AnswerRe: GDI Interface Pin
microsoc10-May-06 17:46
microsoc10-May-06 17:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.