For the sake of not starting a new post every 5 min im going to revive this one, if I may.
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <time.h>
#define...
Type: Posts; User: Jjoraisnt32
For the sake of not starting a new post every 5 min im going to revive this one, if I may.
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <time.h>
#define...
Why does it read a character if i didnt put anything in after printing a shape for the first time. i need to to stop until i pick another shap
#include <stdio.h>
#include <stdlib.h>
#include...
Oh yea, I meant to include the return statement. I just put
return userInput;
after the if statements. and the error was int* to int. I still do not understand why. i call the function in...
#include <stdio.h>
#include <stdlib.h>
int getInput(int userInput);
int main()
{
int userInput;
getInput(&userInput);
what do you mean? Im not doing the continue part in main I need to do it in a function then return either true or false to main. It changes it to upper case but where it compares to see if it is 'N'...
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdbool.h>
int continueGame(bool playMore);
void printRules(FILE *outfp);
int main()
Why doesn't it divide correcty when doing the calculations? I added a if statement for converting to fluid ounces
if(engUnit =1)
*pConvertUnit = (inputInMilli / Mili_FlOz);
else
...
duh, haha thank you!
Well i fixed it to do the calculations ( was scanning %.3lf instead of just normal %lf which was messing it up), but now im trying to do the output. I need to print it out to something like this...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define Mili_FlOz 29.573
#define Flui_Cup 8
#define Flui_Pint 16
#define Flui_Quar 32
#define Flui_Gall 128
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
void getInput(int *pinFeet,
double *pinInches,
int *pinAge2,
double *pinWeight);
void...
so would i just add
calcKilo = calcKilo
meterDone = meterDone
in the doCalculations?
I thought that my functions were taking care of those calculations.
Thank You! I changed %d and it compiled great.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
void getInput(int *pinFeet,
double *pinInches,
int *pinAge,
double *pinWeight);
void...
Why isnt this doing what i want it to do? Its suppose to convert a height into inches, centimeters, and meters
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
void...