Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
economizing with functions that do the same thing
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Your Uncle, post: 2471061"] "Richard Heathfield" It doesn't do me a lick of good to snipe source, germane to what I know, which I do not understand. You had a generic swap posted, and I frankly can't quite remember what else, but in response to the what else, I wrote: /* pruefer.c */ # include "big four.h" #define MILL (.001) int fu(int, int); int main(void) {# include <stdio.h> unsigned long g, un_long_dummy, r = s = 0; int m = 3, n = 17000, mean_less_one, t; printf("taunt::continue: Y/N"); if (getchar == 'N') break; mean_less_one = (n - m) / 2; /* you wonder why Reiner einer mistrusts syntax here until you reaun_long_dummyze every time I read a unix jerk my '\''s and '/''s switch */ /* control */ for (un_long_dummy = 0; un_long_dummy < g; ++ un_long_dummy) { t = fu(m, n); if (t <= mean_less_one) ++ r; else ++ s; } printf("r is %ul while s is %ul\n", r, s); return 0; } int fu(int m, int n) { return n; } /* end .c begin .h */ /* bigfour.h */ # include <stdio.h> # include <stdlib.h> # include <math.h> # include <time.h> /* end bigfour.h */ Does this look like C? The question is meant to proceed along two lines: q1) If I approach my compiler with this, will cl.exe give me errors/warnings. q2) I conjecture that "bigfour.h" is not included in the c standard. Given that the possibly non-standard header includes ONLY standard headers, what can a person say about it? cheers, furunculus [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
economizing with functions that do the same thing
Top