I have a program which generates a bunch of numbers in the range [32,126] into an output file as ASCII characters. What I want to do is count the frequency of how often that character occurs overall...
Type: Posts; User: muzihc
I have a program which generates a bunch of numbers in the range [32,126] into an output file as ASCII characters. What I want to do is count the frequency of how often that character occurs overall...
Glad to see you here. I agree about Gaudry 100%, I wonder if there is a support group out there haha. Anyways, I just got out all my stuff to work on calculus, so I'm gonna get back to this in the...
Are you saying that one suffices in my function, or in general? If it's the former, than my function will need to be changed. (or my teacher made a typo) :|
Well I can take out the last two args, but the first two have to be there
bool openFiles(FILE **pFPIn, FILE **pFPOut);
my teacher requires that I use that prototype
(sorry for delay, im doing like 3 things at once)
Here's my updated code:
#include <stdio.h>
#include <stdlib.h>
Thanks, I actually tried that earlier and it didn't work (I guess I had something wrong elsewhere at the time) so I didn't think to try it again
Missing a semicolon? I'm not sure if thats...
This is an incomplete program, but what I have now is main calling openFiles, which is supposed to check if this file is successfully opened for writing and reading. I'm getting these errors which I...
Great, it works now perfectly. Thanks a million.
Yes, that must be it
Where would win = winnerBoard() go in place of just winnerBoard, though?
(I didn't know I had to do that)
Thanks c_nta.
I've hit another snag now. What I'm trying to do is have a function called winnerBoard check to see which pattern, if any, won. Then it returns a variable called "win", which holds...
Thanks.
Getting back to validBoard... if validBoard detected that it was invalid board, what would I need to add to get the program to stop running at that point?
Woops, I thought they were 1 and 2, thanks.
I also need to make a subsequent function after validBoard (which I call winnerBoard), which needs to determine who won (if anyone). I was thinking it...
This is supposed to generate and print a tic tac toe program which is seeded by the user's input. It generates the tic tac toe board by using a variable which is assigned to randomly generate either...
What I want to do is have printf print a variable which will randomly generate either the number 1 or 2. But I want the number 1 and 2 to be printed as X and O, respectively.
void...
I'm trying to make a function that will generate a tic tac toe board (and a different function will print it) using a nonnegative number seed from the user. I was thinking of doing this by taking the...
Thanks. I took care of that.
I wanted to post to ask if anyone knew of a database or something of searchable/downloadable programs? So next time I can find something similar to help me along.
Alright I think that's all the help I need. Thanks tabstop!
I cleaned up calc
void calc(int one, int two, int *sum, int *quotient, int *remainder,
double *half1, double *half2, double *fraction, int *algebraSolution)
{
intOps(one, two, *sum,...
I marked lines 53, 54, 55 below. they are in the calc function
void calc(int one, int two, int *sum, int *quotient, *int remainder,
double *half1, double *half2, double *fraction, int...
I think I got my pointers down. I just get these 5 syntax errors now, which I'm not sure how to resolve:
10: error: syntax error before '*' token
49: error: syntax error before '*' token
In...
okay on this example
void doubleOps(int one, int two, double *half1, double *half2, double *fraction)
{
*half1 = (double)one / 2.;
*half2 = (double)one / 2.;
*fraction =...
I understand that, I just don't know how to work with pointers. Think you could give me an example?
I don't know how to pass in. Is this right?
#include <stdio.h>
int calc(int one, int two);
int main()
{
And how do I fix this ?