Search:

Type: Posts; User: DonW

Search: Search took 0.01 seconds.

  1. Thread: 2D Array

    by DonW
    Replies
    5
    Views
    1,017

    Really

    Hey keep the comments, if you don't want to be a team player, thats your deal. We all have things in life that are easy, programming C is yours, mine is dealing with blind students. Be glad you can...
  2. Thread: 2D Array

    by DonW
    Replies
    5
    Views
    1,017

    2D Array

    Does anyone have code for a 2D array ([5][4]) that adds the rows and columns? Like to use a couple for loops.
  3. Thread: C++ to C

    by DonW
    Replies
    2
    Views
    1,039

    C++ to C

    Want to convert these C++ to C??

    (1)


    #include <iostream.h>
    #include <iomanip.h>


    // Print out the first n Fibonacci numbers. n is assumed to be >= 1.
  4. Replies
    2
    Views
    1,319

    Binary based input

    Is there a way to enter a binary number and print its decimal equivalent.
  5. Thread: Non C Question

    by DonW
    Replies
    4
    Views
    1,092

    Non C Question

    I know. I'm trying to print the entire screen in office 2003. The pc I have (HP Pavilian) library does not default any of the F keys to this function. The MSN suggests hit the print screen button. OK...
  6. Thread: Input and output

    by DonW
    Replies
    1
    Views
    1,460

    Input and output

    (1) If I wanted the following piece of code to input an integer and a character and print them, while assuming the user types as input 100 A, what corrections do I need:

    .
    .
    .
    scanf( "%d",...
  7. Thread: Factorial

    by DonW
    Replies
    10
    Views
    2,951

    Thanks I went a little different way

    My new code. it works maybe not the best, but it works. Het all of you whom commented, much kudos and love, great ideas and made me get down and dirty.... :D


    #include <stdio.h>

    double...
  8. Replies
    4
    Views
    1,110

    Something is wrong???

    I'm trying to prompt and print principal,rate,and days; and compute and display interest. The following doesn't seem to work. Any thoughts for correcting? :cool: The copile error I get on the last...
  9. Replies
    5
    Views
    1,112

    ????

    I don't know what you mean by contests, and if I found the right library I probably wouldn't know that. Keep in mine I have been in a C class for 3 weeks, not 3 years. :(
  10. Replies
    5
    Views
    1,112

    Ok, so how do I do that. I looked at the...

    Ok, so how do I do that. I looked at the libraries and there are over 122K search replies from "library" in our response?
  11. Replies
    5
    Views
    1,112

    Allowing larger numbers

    If I wanted to improve this program that would allow me to enter larger integers than 10, what would I do. I think I would use long. Any help or ideas?? :confused:


    #include <stdio.h>

    int...
  12. Thread: Factorial

    by DonW
    Replies
    10
    Views
    2,951

    I have changed the code a small amount, it...

    I have changed the code a small amount, it compiles, and runs, it requests an integer, but prints out only a 0......Hmmmmm


    #include<stdio.h>

    int factorial;

    void main(void)

    {
  13. Thread: Factorial

    by DonW
    Replies
    10
    Views
    2,951

    Factorial

    I'm just starting in C, and I'm trying to use the factorial function and print the result from entering a nonnegative integer. Anybody got some ideas. By the way the error message says: Lvalue...
  14. Thread: Text string

    by DonW
    Replies
    6
    Views
    1,227

    Ignore request

    I added spaces before %c. Thanks anyway. DW :p
  15. Thread: Text string

    by DonW
    Replies
    6
    Views
    1,227

    More spaces

    If Iwanted more spaces between the output number (3 spaces between each number vs one, what do I add to the program??
  16. Thread: Text string

    by DonW
    Replies
    6
    Views
    1,227

    Integer

    I want to read in a 5 digit integer, and print it as follows with spaces between each number.

    Ex: Read 12345,
    and print 1 2 3 4 5.

    I heard some smart programmer in my class say read...
  17. Thread: Text string

    by DonW
    Replies
    6
    Views
    1,227

    Text string

    how do you read in an integer as a text string.
    Plsgive example. Thanks :confused:
  18. Thread: Problem

    by DonW
    Replies
    4
    Views
    1,020

    Problem

    I'm abeginning student of C. I need to develop a program that reads in 2 integers and determines and prints if the first integer is a multiple of the second. I think I need to use the remainder...
Results 1 to 18 of 18