alright, i'll look into it then, for now imma fix and clean it up a bit, add more and etc......but thanks for the advice.
Type: Posts; User: SuPaNooB
alright, i'll look into it then, for now imma fix and clean it up a bit, add more and etc......but thanks for the advice.
is mixing them really a pain? heh, well, i been trying to fix this with a friend for days and now that i got some "light", i feel better since the deadline for this project is tomorrow.
am i...
yea i fixed that, i believe everything is working correctly now, all i have to do now is just make it look a lil nicer and add a few more printf statements, add some extra elements and im good to...
alright, i pretty much got it now, i believe i got the right answer now, imma double check by using pen and paper =] .........looky here:
#include <stdio.h>
#include <stdlib.h>
void...
here's a new one...changed a few things, doesnt print out eqfinal at all....
#include <stdio.h>
#include <stdlib.h>
void elements(float*,float*);
int Finish();
float equation(double p,...
what compiler r u using? im not getting none of those errors, it compiles all the way without errors...??? im using dev-c++ from bloodshed.
this is what i have, can some1 correct it for me? its not passing a and b correctly to the equation func....
#include <stdio.h>
#include <stdlib.h>
void elements(float*,float*);
float...
well, i somewhat understand what ur saying, but can u give me some examples on how to user it properly then? as for boolean, i have never used that cmd b4, how can i use it?
ok ok, i got my program to work, i decided to change a lot of stuff, but i ran into problems...here's my code so far:
my first problem is that for some reason, once u run the program, it freezes...
well, the thing is...for my project, i must have 4 functions including Main, so i wanted to create two other functions, one is equation and the other is the constants, and im trying to make it so...
im working on a project on where i have to come up with Van der Waals equation and im having trouble with arrays....need help on how to call for the constants! i have no idea how to make it work...
well, i think i fixed it but its not giving me the answer correctly...for example if u put 32 and 12, the answer is supposed to be 4, but it gives it as 0
but if u "return a" it happens to work...
umm, i need help with this, i have no idea how to make it return the greatest common divisor, this code works without returning anything, but i need to make the code to RETURN it......i gotten...
#include <stdio.h>
#include <stdlib.h>
int main()
{ int firstnum,secondnum;
for(firstnum=1; firstnum<=499; firstnum++)
{
if(secondnum%firstnum)
{
thank you dwks, your help was quite enlightening, taking my programming "c" class, once a day per week for three hours doesnt quite make it into getting what i need to learn, even though i do come up...
stars=sin(x*pi/20)*60;
for(y=stars;y<=60;++y) /*for loop to print the stars*/
fprintf(fptr,"*");
fprintf(fptr,"\n"); /*go to new line...
well, im fiddling around with the code and i think im almost there, i just need to make it so that when it writes to a .txt file, it prints out an X and Y lines along with STARS that resemeble the...
Instructions:
You may use the template to organize your program.
No input from user is required.
x & y are float.
The function sin(x) is in the math.h header file and requires radians as...