C Lessons

I started wrting c lessons for absoulute begginers to advanced users, I think material can be considered quality, and my students learn programming with this stuff. If you wish feel free to start reading it here:

www.visualcmaniac.com

its only 5 lessons for now so maybe could be easier for you to start following it now in the beginning. Hope I helped..materials will be published on daily base. Enjoy now, or later when I reach more advanced topics...

its' really very useful

many thanks bro

7th lesson up!

can someone help me how to format my code so it doens all come up like this with no spaces and tabs? i use blogger. thank you!

if (d > 0)
{
/* results are real numbers /
q = pow (d, 1./2);
x1 = (-b + q)/(2
a);
x2 = (-b - q)/(2a);
printf ("X1=%f X2=%f\n", x1, x2);
}
else if (d == 0)
{
/
there's only one result /
x1 = -b/(2
a);
printf ("X1=X2=%f\n", x1);
}
else
{
/* results are conjugated complex numbers /
q = pow(-d, 1./2);
x1r = -b/(2
a) ;
x2r = x1r;
x1i = q/(2*a);
x2i = -x1i;
printf ("X1 = (%f,%f)\n", x1r, x1i);
printf ("X2 = (%f,%f)\n", x2r, x2i);
}
}

____________________
http://www.visualcmaniac.com Daily Lessons for programming in Visual Studio, using C code.

find out how to do it. just added PRE tags.

also i added to 9th lesson along with some conversions ASCII, Hex to decimal.. in my sidebar
__________________
http://www.visualcmaniac.com