Search:

Type: Posts; User: shiryu3

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,535

    Side note, since you're using strlen() you ought...

    Side note, since you're using strlen() you ought to include string.h, and getch() doesn't seem to have a prototype declaration. Are you able to successfully compile a binary off your pasted code?
  2. Thread: if else help

    by shiryu3
    Replies
    18
    Views
    2,102

    You might consider using something other than...

    You might consider using something other than integers so the interest can calculate propertly

    I see another post with the same program:...
  3. Replies
    5
    Views
    1,950

    You're spot on with #1, that's a easy one. As...

    You're spot on with #1, that's a easy one.

    As for #2...
    I'm unclear about this, but does the user defined fraction between 0 & 1 need to multiply against the final average?

    As for the...
  4. Replies
    5
    Views
    1,950

    Paste in the the full code with your updates and...

    Paste in the the full code with your updates and any compiling errors and the forum can better assist and attack items individually. Looks like your instructor has done all the fancy coding for you...
  5. Replies
    10
    Views
    1,835

    For a price...

    For a price...
  6. Replies
    4
    Views
    34,240

    Not the prettiest function since it has two...

    Not the prettiest function since it has two return statements in the function, but I did this in a homework assignment in the past. Note tolowerStr() is a custom function to lowercase an entire...
  7. Replies
    10
    Views
    5,121

    Per CommonTater's point #3, note the space on the...

    Per CommonTater's point #3, note the space on the 2nd scanf() now




    #include<stdio.h>
    int main()

    {
    int age;
  8. Thread: c programming

    by shiryu3
    Replies
    3
    Views
    1,260

    Have you tried typing all those up and compiling...

    Have you tried typing all those up and compiling it, that'll spill the output too
  9. Replies
    11
    Views
    2,769

    Is this the same assignment from this thread?...

    Is this the same assignment from this thread? http://cboard.cprogramming.com/c-programming/126956-change-function.html
  10. Replies
    19
    Views
    18,167

    I think the value of pennies gets messed up...

    I think the value of pennies gets messed up through all the type conversions, and it may be a rounding issue. I got some results by adding 0.5 to the pennies and casting it as an integer.
  11. Replies
    6
    Views
    14,156

    strtod() is part of the standard library,...

    strtod() is part of the standard library, otherwise you'll have to sscanf it yourself
  12. Replies
    6
    Views
    1,015

    I think you're looking for i++

    I think you're looking for i++
  13. Thread: C Compilers

    by shiryu3
    Replies
    52
    Views
    5,660

    Bloodshed Software - Dev-C++...

    Bloodshed Software - Dev-C++

    Here's one at no cost, its a Windows front end for GCC/G++
  14. Replies
    21
    Views
    4,079

    No problem DJ, please take the time to compare...

    No problem DJ, please take the time to compare this working code with your original post and look over all the broken syntax issues.
  15. Replies
    21
    Views
    4,079

    I admit I'm typing out solutions, but nothing...

    I admit I'm typing out solutions, but nothing that's going to give away the overall program. The requester here had a lot of broken C syntax so I felt it necessary that he be provided with something...
  16. Replies
    21
    Views
    4,079

    Here's a cheesy example of how I've been coding...

    Here's a cheesy example of how I've been coding simple menus recently



    #include <stdio.h>
    int main()
    {

    int MenuOptions() ;
    int choice ;
  17. Replies
    10
    Views
    3,007

    #include int main() { ...

    #include <stdio.h>
    int main()
    {
    printf("Hello World!\n") ;
    return 0;
    }


    Compiles to a 4719 byte binary in Linux, but I'm sure there's a good reason about the difference in...
  18. Replies
    21
    Views
    4,079

    Is this last snippet relevant to the 3-step...

    Is this last snippet relevant to the 3-step program you're working on?
  19. Replies
    21
    Views
    4,079

    #include int main() { int...

    #include <stdio.h>

    int main()
    {
    int number, i ;

    printf("Enter a number: ") ;
    scanf("%d", &number) ;

    if ( number >= 0 && number <= 50 )
  20. Replies
    21
    Views
    4,079

    I think that 2nd posting of code confused us even...

    I think that 2nd posting of code confused us even more the specs on this.
  21. Replies
    7
    Views
    935

    Was this from some "IT course" or a latter half...

    Was this from some "IT course" or a latter half of a C programming class to get into link lists?
  22. Replies
    21
    Views
    4,079

    With letter declared in main, you may want to...

    With letter declared in main, you may want to pass the address of letter as a argument of function step1().
    Prototype:

    void step1(char letter)

    or declare char letter within the function and...
  23. Replies
    8
    Views
    9,149

    You might use strtok for this #include...

    You might use strtok for this




    #include <stdio.h>
    #include <string.h>
    #define LENGTH 64

    int main()
  24. Replies
    8
    Views
    9,149

    Have you tried strtok() ?

    Have you tried strtok() ?
  25. I think return dog will do

    I think return dog will do
Results 1 to 25 of 30
Page 1 of 2 1 2