Is there a way for me to get a rounded down number from division math.
I'd like to be able to get a hover position from a division.
example:
hoverx = roundeddownatallcost(mouse_x /...
Type: Posts; User: errigour
Is there a way for me to get a rounded down number from division math.
I'd like to be able to get a hover position from a division.
example:
hoverx = roundeddownatallcost(mouse_x /...
mouse_x is greater then or less then mouse_y.
Hey is this valid
if (mouse_x >< mouse_y)
What happen's to integers when the sum is never ending?
hey is there any way to get the value of a division of integers into a double etc...
int i, j;
double b;
i = 14;
j = 4;
b = i / 4;
so 13.0 % 4 = .25? if yes thanx if not i'm lost. Thanx!
I have never understood the % sign does maybe you could explain in to me in a way that I could understand, or not at all.
Thanks Salem. So what the hell does 13 % 4 do?
and how come when i do d = (13 / 4); d only equals 3 even before rounding d.
I thought 13/4 equals 3.25?
ok heres the code:
#include <stdio.h>
#include <math.h>
int main (int argc, char *argv[])
{
double d; int j;
MAYBE SOMEONE WILL TELL ME i'M USING GCC
Is there a way to just include the library in the c file or a c header file so I don't have to type -lncurses every time I compile my file.
just for phantomotap, I was trying to find the amount of disks pace that was available.
hmm statvfs might have just fixed my problem.
Ok I'm wondering if there are functions for rendering computer information. I was hoping someone could point me to a page about functions for this because I want to get as much information as...
I would even hope that one of you in your lifetime create a more speakable synonym.
Alright, well thank you fellas very much I have obtained the definition of the c programming language and am again much obliged.
Well that's simple.
Anyways I just wondered if there was a more proper way to mention the programming language invented by someone and written in the dictionary or something. maybe you could think...
I am curious if there is a more proper way to address the entire
language of c programming in a conversation instead of saying
c programming.
Ok the tick message works now.
thank you for your help.
I'm still having problem with the for loop. It doesn't seem to recognize any of the
structures that I create. The entire code is below that.
for (d = descr_list; d; d = d->next)...
I wanna guess *p=d;
Also in function two you point to NULL but what would it look like if you
wanted to change the address by pointing to a pointer? should it be
*p = d; or *p = *d;