Forum: C Oct 5th, 2009 |
| Replies: 5 Views: 272 What are you going to do to the user after 3 tries? |
Forum: C Mar 18th, 2007 |
| Replies: 7 Views: 3,166 There are some folks who might not know what graphics.h implies. It would be waste of time for them to explore this question. As for you, I am very glad you are so knowledgeable about Turbo C. I... |
Forum: C Mar 18th, 2007 |
| Replies: 7 Views: 3,166 Graphics.h? Let me guess, must be from the old Tubo C compiler (16bit), good luck to find anyone that uses this old bird! |
Forum: C Oct 15th, 2006 |
| Replies: 6 Views: 6,123 I can't believe it needs to be that complex! |
Forum: C Oct 13th, 2006 |
| Replies: 13 Views: 9,369 This does not make any sense, if the return value is double or float you can not guarantee precision to be 38.3 it most like will be 38.2999999 or something like that. |
Forum: C Oct 13th, 2006 |
| Replies: 13 Views: 9,369 The rounding is done in your display function. Here is C example:
// percent calculation, wants 100 * 90/235 --> 38.3 %
#include <stdio.h>
double CalculatePercentage(double TotalComponent,... |
Forum: C Oct 2nd, 2006 |
| Replies: 22 Views: 3,845 Looks like you have somewhat incomplete code:
#include<stdio.h>
float x[4] = {1.2,2.4,3.6,4.8};
float f[4] = {0.1,0.2,0.3,0.4};
float xave = 0.0;
float ftotal = 0.0;
int main()
{ |
Forum: C Mar 4th, 2006 |
| Replies: 13 Views: 10,671 Looks like our friend brahle uses cstdio rather than iostream because of the much smaller executable it produces. Maybe it is bad habit to mix C and C++, but then C++ is tolerant of C. I consider... |
Forum: C Mar 4th, 2006 |
| Replies: 7 Views: 4,186 Sounds more like Ancient's wife has him broke in!
Happy coding! |
Forum: C Feb 18th, 2006 |
| Replies: 8 Views: 4,733 There is something like in a C code snippet here:
http://www.daniweb.com/code/snippet377.html |
Forum: C Nov 19th, 2005 |
| Replies: 5 Views: 2,214 Or use Ruby or Python that do not have these narrow limits. |
Forum: C Oct 7th, 2005 |
| Replies: 3 Views: 1,104 Getting C and C++ all mixed is common! |
Forum: C Oct 1st, 2005 |
| Replies: 1 Views: 3,062 I would be temded to bring the story in from a text file, but than of course you need to distrubute two files. |
Forum: C Sep 21st, 2005 |
| Replies: 2 Views: 1,081 Check this site:
http://www.columbia.edu/kermit/ck80.html
and go to C-Kermit site. |
Forum: C Sep 10th, 2005 |
| Replies: 3 Views: 2,181 && stands for the C and = & |
Forum: C Sep 10th, 2005 |
| Replies: 3 Views: 2,181 Here is a list of macros I have been using. |
Forum: C Sep 10th, 2005 |
| Replies: 4 Views: 9,425 Dave, you are correct here, there is difference between representation and conversion. |
Forum: C Sep 10th, 2005 |
| Replies: 1 Views: 3,413 I always wondered how qsort was correctly implimented. |
Forum: C Aug 31st, 2005 |
| Replies: 3 Views: 3,497 Wouldn't it be safer to use fgets() rather then scanf()? |
Forum: C Aug 20th, 2005 |
| Replies: 0 Views: 3,784 This program use a while loop to delete trailing spaces and tabs from a string. It is meant to be more of an example of the application of the while loop. |
Forum: C Aug 20th, 2005 |
| Replies: 1 Views: 2,036 Commonly strings consist of ASCII characters, some are printable, some are in the backgrounds like the bell, carriage return, linefeed, tab and so forth. This code displays a table of ASCII... |
Forum: C Aug 20th, 2005 |
| Replies: 0 Views: 13,521 A simple program to show you how to create a table of Fahrenheit and Celsius values using a for loop. You may be able to learn from this code. |
Forum: C Aug 17th, 2005 |
| Replies: 3 Views: 2,705 The last time I has seen such odd header files, was in one of Herb Schildt's old books. |
Forum: C Aug 17th, 2005 |
| Replies: 1 Views: 5,364 Twice is better? You must be shiddin us! |
Forum: C Aug 17th, 2005 |
| Replies: 3 Views: 5,420 What compiler is that? Can't find dos.h anywhere! |
Forum: C Aug 1st, 2005 |
| Replies: 5 Views: 1,470 How would you handle a structure of mixed types then? |
Forum: C Aug 1st, 2005 |
| Replies: 3 Views: 15,263 |
Forum: C Aug 1st, 2005 |
| Replies: 1 Views: 6,522 Even my professor of mathematics couldn't believe this easy algorithm. |
Forum: C Aug 1st, 2005 |
| Replies: 2 Views: 9,059 David, you know how to explane things good! |
Forum: C Aug 1st, 2005 |
| Replies: 14 Views: 62,345 Wow, dude your code makes it very clear! |
Forum: C Aug 1st, 2005 |
| Replies: 0 Views: 3,277 My first experience with pointers. Learned how to spell a string foreward and backward using pointers. I hope you can learn too! |
Forum: C Aug 1st, 2005 |
| Replies: 4 Views: 17,456 Interesting code. Corrected a few errors, now it works. However fact(14) is less then fact(13). |