Yeah, this is the only incarnation of the CBoard that I know of. Nice to see some of the old timers still active here.
Type: Posts; User: kermit
Yeah, this is the only incarnation of the CBoard that I know of. Nice to see some of the old timers still active here.
If you are sure you have found a problem, then you can find contact info here.
@OP, you would have caught this problem if you had your compiler warnings turned on. For example, with gcc you could have done:
gcc -Wall -o someprog someprog.c
Without -Wall:
...
Agreed on both counts.
Speaking of smug.... :D (I have a 50g and a 35s, and I love them both).
I like this, but I thought it was C that attracted smug users, being the system language for UNIX:
Dilbert Comic...
At the very least make sure it is the most up to date version. There is a new (forked) version of Dev-C++. You can find it here
As an aside, Ronaldo95163, there is a new (forked) version of Dev-C++. You can find it here.
I find it hard to understand how you had the wherewithal to write a program like the one above, yet don't understand what functions to call.
What seems more plausible to me is that you have been...
You can't do that. If you want the value in b static, make it so within the body of the function.
void func(int b)
{
static int c = b;
printf("%d", c);
}
#include <stdio.h>
#include <math.h>
float fact(int);
double monom(float x, int n);
int main(void)
{
float x;
printf("please enter x value for e^x: ");
@ the OP: grumpy is right about the book you are using. Unfortunately it seems that there are multiple poor introductory C books published for every good one. One of the challenges of writing a...
To start, try changing your calls to scanf() from:
scanf("%.1f")
to
scanf("%f")
Merry Christmas!
The last few times I have poked around on here, I have noticed it seems to have less things going on (I could be totally wrong on that account). I have a new hobby these days, and it has nothing to...
Elysia is just a Linux hater. :D
The code you posted will not even compile (you are missing some semi-colons at the end of a couple of your assignment statements). As the previous posters mentioned, you need to allocate some space...
Found out from twitter that dmr passed away.
@bbray,
Since you declared d as a char type variable, you ought to read this.
Here is a monstrosity that I wrote years ago:
/* convert_binary.c
* Sat Aug 20 17:23:52 EDT 2005
*
* A program which accepts an unsigned
* long integer input from the user
* and then...
It would be helpful if you posted your code.
I like the cheating idea better. Since the requirements, as far as I can tell, only seems to be interested in the final output, it is simple enough to run through the string, find the space, change...
I have an Acer Aspire 5253-BZ400. It suits me just fine. Pretty basic - not a lot of bells and whistles like you might find on an HP, but then again, a lot of that glitzy crap seems to break...
How about a \ escape?
Right - I should have been more specific and stated that my question was an aside as relating to your problem. I mentioned it only because the FLTK main page lists the 2.x branch, but does not...
Is FLTK 2.x a requirement? If not, you may want to consider 1.3, as 2.x is pretty much a dead issue (except for the odd bug fix) whereas 1.3 is the current active release.