Search Results

Showing results 1 to 32 of 32
Search took 0.01 seconds.
Search: Posts Made By: bumsfeld ; Forum: C and child forums
Forum: C Oct 5th, 2009
Replies: 5
Views: 272
Posted By bumsfeld
What are you going to do to the user after 3 tries?
Forum: C Mar 18th, 2007
Replies: 7
Views: 3,166
Posted By bumsfeld
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
Posted By bumsfeld
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
Posted By bumsfeld
I can't believe it needs to be that complex!
Forum: C Oct 13th, 2006
Replies: 13
Views: 9,369
Posted By bumsfeld
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
Posted By bumsfeld
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
Posted By bumsfeld
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
Posted By bumsfeld
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
Posted By bumsfeld
Sounds more like Ancient's wife has him broke in!

Happy coding!
Forum: C Feb 18th, 2006
Replies: 8
Views: 4,733
Posted By bumsfeld
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
Posted By bumsfeld
Or use Ruby or Python that do not have these narrow limits.
Forum: C Oct 7th, 2005
Replies: 3
Views: 1,104
Posted By bumsfeld
Getting C and C++ all mixed is common!
Forum: C Oct 1st, 2005
Replies: 1
Code Snippet: Multiline Story String
Views: 3,062
Posted By bumsfeld
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
Posted By bumsfeld
Check this site:
http://www.columbia.edu/kermit/ck80.html
and go to C-Kermit site.
Forum: C Sep 10th, 2005
Replies: 3
Code Snippet: Macro Listing
Views: 2,181
Posted By bumsfeld
&amp;&amp; stands for the C and = &
Forum: C Sep 10th, 2005
Replies: 3
Code Snippet: Macro Listing
Views: 2,181
Posted By bumsfeld
Here is a list of macros I have been using.
Forum: C Sep 10th, 2005
Replies: 4
Code Snippet: Binary to Decimal
Views: 9,425
Posted By bumsfeld
Dave, you are correct here, there is difference between representation and conversion.
Forum: C Sep 10th, 2005
Replies: 1
Views: 3,413
Posted By bumsfeld
I always wondered how qsort was correctly implimented.
Forum: C Aug 31st, 2005
Replies: 3
Views: 3,497
Posted By bumsfeld
Wouldn't it be safer to use fgets() rather then scanf()?
Forum: C Aug 20th, 2005
Replies: 0
Views: 3,784
Posted By bumsfeld
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
Posted By bumsfeld
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
Posted By bumsfeld
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
Posted By bumsfeld
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
Posted By bumsfeld
Twice is better? You must be shiddin us!
Forum: C Aug 17th, 2005
Replies: 3
Views: 5,420
Posted By bumsfeld
What compiler is that? Can't find dos.h anywhere!
Forum: C Aug 1st, 2005
Replies: 5
Views: 1,470
Posted By bumsfeld
How would you handle a structure of mixed types then?
Forum: C Aug 1st, 2005
Replies: 3
Views: 15,263
Posted By bumsfeld
I like simpel stuff!
Forum: C Aug 1st, 2005
Replies: 1
Views: 6,522
Posted By bumsfeld
Even my professor of mathematics couldn't believe this easy algorithm.
Forum: C Aug 1st, 2005
Replies: 2
Code Snippet: Currency Converter
Views: 9,059
Posted By bumsfeld
David, you know how to explane things good!
Forum: C Aug 1st, 2005
Replies: 14
Views: 62,345
Posted By bumsfeld
Wow, dude your code makes it very clear!
Forum: C Aug 1st, 2005
Replies: 0
Code Snippet: Strings: Using Pointers
Views: 3,277
Posted By bumsfeld
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
Posted By bumsfeld
Interesting code. Corrected a few errors, now it works. However fact(14) is less then fact(13).
Showing results 1 to 32 of 32

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC