Complete Lessons and Tutorials [C++] - C - Programmation
Marsh Posté le 17-02-2006 à 09:04:04
vurdlak a écrit : 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. 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... |
That's cute, but
Marsh Posté le 19-02-2006 à 21:20:43
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)/(2*a);
printf ("X1=%f X2=%f\n", x1, x2);
}
else if (d == 0)
{
/* theres 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
Marsh Posté le 19-02-2006 à 22:46:22
vurdlak a écrit : 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! |
Once again, stop your spamming and please consider that this is a French speaking forum. Please don't insist. If so, I'm afraid the moderators will take care of you, and you won't like it.
Marsh Posté le 17-02-2006 à 00:25:52
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. 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...
__________________
http://www.visualcmaniac.com/