Search:

Type: Posts; User: muzihc

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: filling arrays

    by muzihc
    Replies
    2
    Views
    1,551

    filling arrays

    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...
  2. Replies
    13
    Views
    3,480

    Glad to see you here. I agree about Gaudry 100%,...

    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...
  3. Replies
    13
    Views
    3,480

    Are you saying that one suffices in my function,...

    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) :|
  4. Replies
    13
    Views
    3,480

    Well I can take out the last two args, but the...

    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
  5. Replies
    13
    Views
    3,480

    (sorry for delay, im doing like 3 things at once)...

    (sorry for delay, im doing like 3 things at once)



    Here's my updated code:



    #include <stdio.h>
    #include <stdlib.h>
  6. Replies
    13
    Views
    3,480

    Thanks, I actually tried that earlier and it...

    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...
  7. Replies
    13
    Views
    3,480

    File i/o and ASCII question

    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...
  8. Replies
    10
    Views
    4,046

    Great, it works now perfectly. Thanks a million.

    Great, it works now perfectly. Thanks a million.
  9. Replies
    10
    Views
    4,046

    Yes, that must be it Where would win =...

    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)
  10. Replies
    10
    Views
    4,046

    Thanks c_nta. I've hit another snag now....

    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...
  11. Replies
    10
    Views
    4,046

    Thanks. Getting back to validBoard... if...

    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?
  12. Replies
    10
    Views
    4,046

    Woops, I thought they were 1 and 2, thanks. I...

    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...
  13. Replies
    10
    Views
    4,046

    Tic Tac Toe program

    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...
  14. is it possible to assign a number to a character as a constant?

    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...
  15. seeding with numbers, generating with characters?

    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...
  16. Replies
    14
    Views
    1,556

    how would you make a for loop infinite?

    thank
  17. Thanks. I took care of that. I wanted to post...

    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.
  18. Alright I think that's all the help I need....

    Alright I think that's all the help I need. Thanks tabstop!
  19. I cleaned up calc void calc(int one, int...

    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,...
  20. I marked lines 53, 54, 55 below. they are in the...

    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...
  21. I think I got my pointers down. I just get these...

    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...
  22. okay on this example void doubleOps(int one,...

    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 =...
  23. I understand that, I just don't know how to work...

    I understand that, I just don't know how to work with pointers. Think you could give me an example?
  24. I don't know how to pass in. Is this right? ...

    I don't know how to pass in. Is this right?



    #include <stdio.h>
    int calc(int one, int two);


    int main()
    {
  25. And how do I fix this ?

    And how do I fix this ?
Results 1 to 25 of 34
Page 1 of 2 1 2