Search:

Type: Posts; User: toadkiwi

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,797

    Issues with Anagram Program

    Whats up C board. Ok so I'm writing a program to check if two user-input strings are anagrams of eachother or not.

    I've written code, but get this error upon compilation:



    Undefined ...
  2. Thread: Sudoku

    by toadkiwi
    Replies
    10
    Views
    14,813

    Was this solved?

    Was this solved?
  3. Alright so I changed what vart said to, and I...

    Alright so I changed what vart said to, and I fixed some of the line errors. One problem that happened a few times was the line breaks caused the program to get wacky. But here's what it looks like...
  4. gcc? I dont really know much about the compiler...

    gcc? I dont really know much about the compiler itself. I just use gcc -lm in this case.
  5. Tried compiling that, got: ...

    Tried compiling that, got:




    quadratic-roots.c: In function `main':
    quadratic-roots.c:34: error: missing terminating " character
    quadratic-roots.c:35: error: `root2' undeclared (first use in...
  6. Yeah I'm still getting the messed up output...

    Yeah I'm still getting the messed up output (missing line). Could you maybe post the whole code so I can see if anything else is different?
  7. Ok vart, that eliminated the double processing,...

    Ok vart, that eliminated the double processing, but it also eliminated the first line.

    So the output was

    1 0 -4.84 root1=2.2 root2=-2.2
    1 0 1 The roots are complex

    Instead of

    1 -3 2 ...
  8. Replies
    10
    Views
    1,678

    Ack! Nice catch. Thanks.

    Ack! Nice catch. Thanks.
  9. Replies
    10
    Views
    1,678

    I'm not sure what you mean.

    I'm not sure what you mean.
  10. Program to to compute roots of a quadratic equation (HELP PLEASE!)

    Hey all. New problem. Been working on this one though during TA hours. Here's the problem (#1):

    http://ece.arizona.edu/~ece175/assignments/assignment06.pdf

    Ignore #2. I have a separate thread...
  11. Replies
    10
    Views
    1,678

    Ok some reading and TA help later, I've got: ...

    Ok some reading and TA help later, I've got:



    #include <stdio.h>
    #define INFILE "original.txt"
    #define OUTFILE "encoded.txt"

    int main(void)
    {
  12. Replies
    10
    Views
    1,678

    yeah vart, I'm gonna see if I can do that first.

    yeah vart, I'm gonna see if I can do that first.
  13. Replies
    10
    Views
    1,678

    Need Help Writing a Sum of Digits program

    Hey all. I need to use input and output files, and create a code such that the input value digit sums are added and then output to a file. Here is the problem as given to me:



    If anyone can...
  14. Replies
    12
    Views
    2,642

    Thanks!

    Thanks!
  15. Replies
    12
    Views
    2,642

    Ok I figured it out: #include ...

    Ok I figured it out:



    #include <stdio.h>
    #include <math.h>

    main()
    {
    double x;
  16. Replies
    12
    Views
    2,642

    Forgot about that. But now there's a new problem....

    Forgot about that. But now there's a new problem. The program just returns exactly what I input. I.e. after it asks for a number, I input 6 and it returns the number 6.
  17. Replies
    12
    Views
    2,642

    I had tried that and I get a crazy error: ...

    I had tried that and I get a crazy error:



    Undefined first referenced
    symbol in file
    exp ...
  18. Replies
    12
    Views
    2,642

    Trying to create an exp(x) program

    Hey all. I'm experimenting with a program that is in relation to an assignment I have. All I'm trying to do is have the user input a number, and then have the program raise "e" (as in 2.71828...) to...
  19. Replies
    16
    Views
    3,393

    Lost ("short int" and "while" statements)

    Got a problem to work out this week for my C class. I don't even understand what it's asking.



    Can anyone help me understand what it's asking me to do? Perhaps in more of the laymans terms...
  20. Replies
    8
    Views
    5,008

    I dont think we've learned all the things your...

    I dont think we've learned all the things your program employs
  21. Replies
    8
    Views
    5,008

    So it looks like I'm gonna need one - nineteen...

    So it looks like I'm gonna need

    one - nineteen (manually)
    twenty, thirty, forty, fifty, sixty, seventy, eighty, and ninety

    And somehow I need to have the program identify which inputs are in...
  22. Replies
    8
    Views
    5,008

    Need to create an integer-to-word program

    "Write a program that takes a two-digit integer (-99 to +99) as an input and outputs the number in words. If the input is outside this range, the program should print that it is outside the range."
    ...
  23. Replies
    12
    Views
    1,667

    Nice and organized. Thanks!

    Nice and organized. Thanks!
  24. Replies
    12
    Views
    1,667

    My indentation? Any suggestions?

    My indentation?

    Any suggestions?
  25. Replies
    12
    Views
    1,667

    Ahh, much thanks!

    Ahh, much thanks!
Results 1 to 25 of 31
Page 1 of 2 1 2