Search:

Type: Posts; User: Nicheter

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    34
    Views
    7,995

    yeah, that does fix everything, would have done...

    yeah, that does fix everything, would have done it myself, lacking a good calculator, i figured the program could do it.
    To be clearer, that revealed the error, namely a stray parenthesis.
    EDIT:...
  2. Replies
    34
    Views
    7,995

    Oh, why is that? Yeah, the aforementioned edit...

    Oh, why is that?
    Yeah, the aforementioned edit didn't work... It gives me a syntax error...
  3. Replies
    34
    Views
    7,995

    Hmm, really? It seemed like it worked, but I'll...

    Hmm, really? It seemed like it worked, but I'll try that.
    EDIT, yeah, it doesn't work, but how does pow take arguments?
    edit2: ah, rewritten as
    f=pow(pow(2,(1/12)),i)*130.813;
  4. Replies
    34
    Views
    7,995

    Ok, easiest way is to use only one array, due to...

    Ok, easiest way is to use only one array, due to the formula working in half-steps, setting the initial value to that of low C means that I can use the position of the array when it evaluates as the...
  5. Replies
    34
    Views
    7,995

    Ah, thanks! Calculating the values may be worth...

    Ah, thanks! Calculating the values may be worth researching, otherwise the Structure would be best (I was going to try and learn it soon anyways)
    For the record, the formula seems to be (using A...
  6. Replies
    34
    Views
    7,995

    Yeah, I figured it out. I accidentally added a...

    Yeah, I figured it out. I accidentally added a character to the if statement. Thanks guys! '
    EDIT: Continuing in the vein of not wanting to start a new thread, somewhat related to this one, I need...
  7. Replies
    34
    Views
    7,995

    Whoops! should be if((reformed =...

    Whoops!
    should be


    if((reformed = fopen("c:\\reformatted.txt", "w+"))==NULL) {
    printf("Error Creating Output File!\n");
    Sleep(500);
    ...
  8. Replies
    34
    Views
    7,995

    Would if((reformed = fopen(argv[1],...

    Would

    if((reformed = fopen(argv[1], "r+"))==NULL) {
    printf("Read Only Directory\n");
    Sleep(500);
    exit(1);

    Resolve this...
  9. Replies
    34
    Views
    7,995

    Here's the entirety, gcc -Wall doesn't complain,...

    Here's the entirety, gcc -Wall doesn't complain, I don't think its the program's fault anyway...

    #include <stdio.h>
    #include <stdlib.h>
    #include <windows.h>
    #include <string.h>

    int main(int...
  10. Replies
    34
    Views
    7,995

    it outputs a file 'reformatted.txt' and a search...

    it outputs a file 'reformatted.txt' and a search of the entirety of the computer turns up nothing. After checking the program's execution one more time, it does seem to be executing properly, just...
  11. Replies
    34
    Views
    7,995

    Well, thanks! One final, unrelated, question: if...

    Well, thanks! One final, unrelated, question:
    if i use my main statement as

    int main(int argc, char *argv[])
    it allows me to take command line arguments, and works fine. But if, using windows,...
  12. Replies
    34
    Views
    7,995

    Thanks guys, but Vart, isn't your solution even...

    Thanks guys, but Vart, isn't your solution even longer then the initial example?
  13. Replies
    34
    Views
    7,995

    Ah, well, that's a good tip, thanks. One other...

    Ah, well, that's a good tip, thanks. One other question, while I'm on the subject of strings. Is there any way to do multiple string comparisons in a shorter form than, for example, ...
  14. Replies
    34
    Views
    7,995

    Thanks, that fixed the problem. I'm new to...

    Thanks, that fixed the problem. I'm new to strings, so I should've checked that first...
  15. Replies
    34
    Views
    7,995

    Finding the ASCII value of a string?

    If I define a string as

    char found[100];
    and then proceed to try

    if ((int) found[7]==80))
    {
    printf ("&#37;s",found);
    }
    It should only occur if the seventh char in found is P, whose ascii...
  16. Replies
    2
    Views
    1,589

    well, that makes sense then. I'm trying to use...

    well, that makes sense then. I'm trying to use something from the wrong language...
  17. Replies
    2
    Views
    1,589

    help with getline.

    Could someone explain the proper usage of getline? I am trying to use it, but i do not understand it's formatting.
  18. Replies
    24
    Views
    7,410

    Thanks! But how should I handle it?

    Thanks! But how should I handle it?
  19. Replies
    24
    Views
    7,410

    Better? EDIT: Runs fine now... Thanks for all...

    Better? EDIT: Runs fine now... Thanks for all your help!

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    int main (void)
    {
    char word[21];
    char wordtocheck[50];
  20. Replies
    24
    Views
    7,410

    Ok, I forgot to do that. Changed "%s" to match...

    Ok, I forgot to do that. Changed "&#37;s" to match the sizes.
  21. Replies
    24
    Views
    7,410

    I use Dev C++, It doesn't like indenting...

    I use Dev C++, It doesn't like indenting properly. Suggestions on a better IDE? Also, where do I not have a curly-bracket newline?
  22. Replies
    24
    Views
    7,410

    Ah, Thanks Elysia. What did I do wrong now? Won't...

    Ah, Thanks Elysia. What did I do wrong now? Won't go through second while loop...

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    int main (void)
    {
    char a[21];
    char b[50];
  23. Replies
    24
    Views
    7,410

    Ok, back to fscanf code, which worked somewhat....

    Ok, back to fscanf code, which worked somewhat. Someone explain how fgets should be used in this situation, please? Fscanf is more suitable because it searches up until whitespace, which is what I...
  24. Replies
    24
    Views
    7,410

    robwhit, i don't understand the question. What...

    robwhit, i don't understand the question. What happens when there are more than 16 synonyms to what? Elysia, you suggest changing, but I did and now the code is even worse off then before. How do you...
  25. Replies
    24
    Views
    7,410

    the thesaurus is moby thesaurus, all spaces in...

    the thesaurus is moby thesaurus, all spaces in words changed to be _ and all , replaced with a space
Results 1 to 25 of 28
Page 1 of 2 1 2