Search:

Type: Posts; User: _jamie

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    307

    Thank you for time & effort Hodor.

    Thank you for time & effort Hodor.
  2. Replies
    11
    Views
    307

    Hodor: // EX_4.c #include

    Hodor:



    // EX_4.c


    #include <stdio.h>
  3. Replies
    1
    Views
    113

    passing structure arguments to function

    // EX_3.c CHAPTER 8


    #include <stdio.h>




    struct time1
    {
  4. Replies
    11
    Views
    307

    my code works, i just switched the result...

    my code works, i just switched the



    result = bb - aa;


    line around because I was getting a negative number. For example, inserting two dates, i.e. 7 27 2016 and 7 28 2016 results in the...
  5. Replies
    11
    Views
    307

    Here's my finished code right here i think I...

    Here's my finished code right here i think I found a typo in the book there is more than one so far I've found. The end of the formula "+ day" makes the calculation not add up correctly for the dates...
  6. Replies
    11
    Views
    307

    that worked thanks I fixed the scanf function call

    that worked thanks I fixed the scanf function call
  7. Replies
    11
    Views
    307

    passing structure to function

    Hey all, thanks for the help (again)

    I'm just returning link.year to try and get a working number after the function is called but it won't work. Do I somehow need to add link.year inside the...
  8. Replies
    5
    Views
    155

    Hodor: here's the code with the infinite while...

    Hodor: here's the code with the infinite while loop:



    // Program to convert a positive integer to another base




    #include <stdio.h>
  9. Replies
    5
    Views
    155

    Thanks for the time and effort on the last...

    Thanks for the time and effort on the last response laserlight. I was able to fix my problem by using the while (1) the break'ing out of the loop, works fine now. The global variables I completely...
  10. Replies
    5
    Views
    155

    do while loop question

    Hey all, i've just a quick question with my getNumbeAndBase() function. The program being executed is not continuing to the convertNumber() function after for example, "Number to be converted: 2001"...
  11. Replies
    4
    Views
    397

    using strftime() with gmtime()

    // time_convertor.c
    // Manilia, Phillipines (15 hrs ahead of San Diego)
    // Denver, CO (1 hr ahead of San Diego)


    #include <string.h>
    #include <stdio.h>
    #include <time.h>
    #include <stdlib.h>
  12. using gmtime() with strftime() (modifying time zone)

    // time_convertor.c
    // Manilia, Phillipines (15 hrs ahead of San Diego)
    // Denver, CO (1 hr ahead of San Diego)

    #include <string.h>
    #include <stdio.h>
    #include <time.h>
    #include <stdlib.h>
    ...
  13. Replies
    2
    Views
    580

    Where to go from here?

    Well, i've been working on C for 13 months (since Feb 2018) and i've kinda hit a stump. I was figuring on working through my third beginner book "C Programming Language: 4th Editon" by Stephan Kochan...
  14. Thread: assignment

    by _jamie
    Replies
    6
    Views
    541

    and you want us to do it for you or help you

    and you want us to do it for you or help you
  15. Replies
    2
    Views
    543

    seems to be working fine now. Thanks laserlight!...

    seems to be working fine now. Thanks laserlight!



    /* Write a program that acts as a simple "printing" calculator. The program should allow the user to type in expressions of the form
    *
    *...
  16. Replies
    2
    Views
    543

    nested while loop

    Hey all, program works, but one simple program. After starting program and typing in



    101 S


    (number can be any regular float value), there the program is putting
  17. The explanation is right C Program to Compute the...

    The explanation is right C Program to Compute the Sum of Digits in a given Integer - Sanfoundry
  18. I was just going on about my progress with C and...

    I was just going on about my progress with C and I mentioned GDB. Please excuse the confusion.


    Was just looking or an explanation of the while loop line by line.
  19. sum of digits in a number (while loop) please explain

    Hey all...also, i've started assembly on Intel 64 after dipping into C on FreeBSD for the past year. Would like to start using GDB.



    // Program to give sum of digits of a number

    #include...
  20. Replies
    2
    Views
    461

    Here's working code, thanks Salem! //...

    Here's working code, thanks Salem!



    // 4_5_5.c

    #include <stdio.h>

    int main(void)
    {
  21. Replies
    2
    Views
    461

    while loop, triangular number

    Simple program, what is in comment section, for loop, question out of book to be made into a "while" loop. First number works after executing program, but never is updated to 2 through 5th entry. ...
  22. Replies
    3
    Views
    486

    Thanks john.c My book states, "the %e...

    Thanks john.c

    My book states, "the %e characters are used the values of float or double in scientific notation".
  23. Replies
    3
    Views
    486

    negative exponents (simple math prog)

    Hey all, i'm using an outdated book, but first of all there is no mention of using pow().



    /* Write a program that evaluates the following expression and displays the results (remember to use...
  24. john.c: how about what to look for if I was...

    john.c:

    how about what to look for if I was running the program through gdb on freebsd...or a debugger....or anyone else. I am familar with "gcc -g -o grocery grocery_inventory.c" to enable...
  25. john.c: right now i'm working through these...

    john.c:

    right now i'm working through these Exercises.. C programming Exercises, Practice, Solution - w3resource (the array section)

    I finished a C programming book and the code above was what...
Results 1 to 25 of 63
Page 1 of 3 1 2 3