Search:

Type: Posts; User: _jamie

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    205

    Thanks Structure, took a few days for someone to...

    Thanks Structure, took a few days for someone to post. Looks like I was just missing that one line:



    successful_tries = 0;
  2. Replies
    3
    Views
    205

    Simple reset counter on for loop

    Please, if you have the time and run and compile this program, I am looking for further instruction from someone on game_loop variable to countdown from 3 to 0 (reset it). I've tried with a while...
  3. Replies
    6
    Views
    172

    alright thanks, i worked through that problem,...

    alright thanks, i worked through that problem, i'm working on a new problem tonight, will paste soon. Also, i missed your typo "for int count"
  4. Replies
    6
    Views
    172

    this fixed it #include #include...

    this fixed it


    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    #include <ctype.h>


    int main(void)
  5. Replies
    6
    Views
    172

    thanks Jim. Yes i forgot to run gcc with -Wall...

    thanks Jim. Yes i forgot to run gcc with -Wall now I see "chosen" is an int not a %ld also count is counting down a max of 3 loops
  6. Replies
    6
    Views
    172

    Simple do { while () loop entire program

    Program code:




    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    #include <ctype.h>
  7. This code works, this just about finishes the...

    This code works, this just about finishes the first part of the exercise. I removed the if() and else if() statements inside the else if () statement under the matching (input != num) which was...
  8. Please help, wouldn't mind a few suggestions, I...

    Please help, wouldn't mind a few suggestions, I know I could just sit here and play with the loops, the whole chapter is on loops (Chapter 4), but I was thinking, is this correct:



    else if...
  9. This is what I came up with...there are a few...

    This is what I came up with...there are a few bugs, and i'll work on it more tomorrow. Any suggestions running it through gdb? That's my next step, using gdb.



    /* Chapter 4 Exercise from C...
  10. Thanks for the followup Hodor, I misread the...

    Thanks for the followup Hodor, I misread the Exercise question. Looks like the book wasn't asking for a 9 digit number, that would be beyond my capabities and isn't mentioned in the Chapter, also I...
  11. Hey all, i believe the scanf() function is...

    Hey all, i believe the scanf() function is getting confused with a for loop or the delay() function resulting in a confused scanf() function, resulting in there being no exact match for the if...
  12. I ran the code through gdb couldn't make sense...

    I ran the code through gdb couldn't make sense out of it, complained about line 13 though and kept showing random numbers


    Thanks Salem for the post. Look at this code (this program finds a...
  13. segmentation fault (if input == var) program compiles

    Hey all, this exercise is out of "Beginning C 5th Edition" and it's much easier than working through the Project Euler problems but I am still working on them too. Here is the exercise question:
    ...
  14. This square root method is wrong (a = 500, b =...

    This square root method is wrong (a = 500, b = 500, c = 1000 is not a valid triplet). This is my second attempt. My first attempt seems to be the correct method but I deleted the source code but it...
  15. float ret fixed it

    float ret


    fixed it
  16. quick question passing data types for square root function (function parameters)

    hey all i've already worked through the math of this problem and i'm ready to start the code but please i'm just getting 0.000 when I compile this program, I believe it's an issue with the...
  17. This code works #include #include...

    This code works


    #include <stdio.h>
    #include <stdbool.h>


    int main ()
    {
    int p = 2;
  18. that fixed it, thanks Hodor I completely misssed...

    that fixed it, thanks Hodor I completely misssed it. I now have the working source code and it found & matched the 10001 prime number
  19. I missed my braces missing error in the source...

    I missed my braces missing error in the source code, hows this look



    #include <stdio.h>
    #include <stdbool.h>


    int main ()
    {
  20. Can't get this to output correct prime number,...

    Can't get this to output correct prime number, i'm getting program output "2" for "10001" Thanks john.c for the continuous support on the forum, now i see accessing the p variable from the first for...
  21. thanks john.c for the quick response, i am going...

    thanks john.c for the quick response, i am going over your code now and will formulate a lengthier response soon
  22. prime number generation, match 10001 prime number

    Please help. I've been playing around with this code most of the day, or for a couple days, trying to find a way to insert "10001" after program execution to find the matching answer (this is on...
  23. Hodor, please, what do you mean "brute force"...

    Hodor, please, what do you mean "brute force" (method) for the 5% difficulty Euler problems? What is this referred to as? Thanks!
  24. Thanks for the support and encouragement

    Thanks for the support and encouragement
  25. thanks for the response Hodor

    thanks for the response Hodor
Results 1 to 25 of 114
Page 1 of 5 1 2 3 4