Search:

Type: Posts; User: bmancl

Search: Search took 0.00 seconds.

  1. Thread: While loop help

    by bmancl
    Replies
    2
    Views
    514

    While loop help

    The while loop I have does what it is supposed to do but in a very round about way. I have a while loop(inside a function) that is supposed to call another function for two random numbers(1 - 6). It...
  2. Replies
    6
    Views
    894

    Thanks again for the help. Once you showed me the...

    Thanks again for the help. Once you showed me the correct declaration it was smooth sailing.
  3. Replies
    6
    Views
    894

    Thank you very much for the reply. I was...

    Thank you very much for the reply. I was declaring the word_search function totally wrong. So I was getting mismatched variable warnings.


    FILE* word_search(FILE*); //for example

    So I wrote a...
  4. Replies
    6
    Views
    894

    Need help passing pointers to functions

    I have been struggling with pointers so I hope someone can give me a hand. I am trying to write a program that first asks a user to input a filename. It then checks if the file exists and if it does...
  5. Replies
    17
    Views
    6,765

    If you look at my first post I left the original...

    If you look at my first post I left the original working code with a function in but I // it.The assignment is to remove the function from the code and use two macros. One to compute the factorial...
  6. Replies
    17
    Views
    6,765

    What makes this problem is just that; most people...

    What makes this problem is just that; most people are against using macros so it is very difficult to find any resources or help on the subject. So far I have a pretty good grasp on C programming but...
  7. Replies
    17
    Views
    6,765

    I have to do it this way. I would rather use...

    I have to do it this way. I would rather use functions but this is what the instructor wants. Here is what i have so far
    #include<stdio.h>
    #include<math.h>
    #define fact(x) for(j=(x-1); j>=0; j--)...
  8. Replies
    17
    Views
    6,765

    You are right. I could only find examples of do...

    You are right. I could only find examples of do while loops and I have been searching for a long time. I have been trying to not use a loop in the macro like this
    #include<stdio.h>...
  9. Replies
    17
    Views
    6,765

    I am really struggling to grasp this problem....

    I am really struggling to grasp this problem. There has to be a loop somewhere. Either in the macro or main and I think that is where I am getting lost because I don't know how to set up a loop in...
  10. Replies
    17
    Views
    6,765

    Thank you very much for replying. Should I use a...

    Thank you very much for replying. Should I use a for loop instead? I guess I am kind of stuck on how this type of macro works.
  11. Replies
    17
    Views
    6,765

    Multi line macro help

    I cannot find any good info on how to setup multi line macros. The problem I am having is that I need to use only macros (no functions) to compute factorials. When I use functions the code works but...
Results 1 to 11 of 11