Search:

Type: Posts; User: green_ghoul

Search: Search took 0.01 seconds.

  1. I tried to make my code to write the initial...

    I tried to make my code to write the initial array, but I get an error that says "error: r undeclared, first time use in this function"

    my code is

    #include <stdio.h>

    int main()
    {
    FILE...
  2. KC is right, I take an already solved, or attempt...

    KC is right, I take an already solved, or attempt at a solution, and determine whether it's correct or not. What is dis[]? Is it just the name of the array I'm going to make?

    Oh, the ackerman...
  3. I can work out the second one with help, all it...

    I can work out the second one with help, all it takes is asking him to explain the function to me.

    The sudoku one I understand already for the most part, all I need to know is how to take...
  4. Homework help: Sudoku and "explosive recursion"

    So for my homework, one of my problems asks me to write a program that reads a text file and determines if it is a correct solution to a sudoku puzzle. I'm not totally sure what to do.

    I think...
  5. Replies
    5
    Views
    1,139

    fixed it #include void main()...

    fixed it


    #include <stdio.h>

    void main()
    {
    int w;
    printf("Enter a number");
    scanf("%i",&w);
  6. Replies
    5
    Views
    1,139

    Recursion, Fibonacci Sequence

    One of the problems on my homework assignment is asking me to print the fibonacci sequence using recursion.

    I can make it return the given number, like if I put 4, it'll give me 3 since 3 is the...
  7. Replies
    6
    Views
    1,766

    I still don't really understand the whole concept...

    I still don't really understand the whole concept of complex numbers, I think I get it with pointers and such, it's just a value that can be called upon, right?

    I'm just going to try and write...
  8. Replies
    6
    Views
    1,766

    ok, so i create a pointer for each complex number...

    ok, so i create a pointer for each complex number in the function, then work through the pointers, and then backwards to get integers so I can display the answers?
  9. Replies
    6
    Views
    1,766

    all of that went over my head =\

    all of that went over my head =\
  10. Replies
    6
    Views
    1,766

    Simple Calculator

    create a complex number calculator, your calculator should be able to compute the following:
    addition of 2 numbers
    subtraction of 2 numbers
    multiplication of 2 numbers
    division of 2 numbers...
  11. Replies
    6
    Views
    6,201

    it works now, I don't know what named constants...

    it works now, I don't know what named constants are though, I'm used to java where I can work my magic.

    Thanks for the help, I'm opening another topic for my other problem which I can't even start...
  12. Replies
    6
    Views
    6,201

    opening doors game

    problem 4: consider the following game: there are 100 doors (numbered 1 through 100) and 100 students (numbered 1 through 100) waiting in a line. Initially, all the doors are closed. A student...
  13. Replies
    4
    Views
    3,397

    I think I fixed it sort of, but all the...

    I think I fixed it sort of, but all the primes.dat is showing is a bunch of 2s
  14. Replies
    4
    Views
    3,397

    oh, there are some editing things i need to do...

    oh, there are some editing things i need to do still, but that's the basic idea of what i'm trying to get at....but it just crashes whenever i execute.
  15. Replies
    4
    Views
    3,397

    thanks, what about reading/writing files? I'm...

    thanks, what about reading/writing files?

    I'm supposed to write a program that takes the prime numbers from numbers.dat and writes them to primes.dat

    but I don't know what to do, I wrote a...
  16. Replies
    4
    Views
    3,397

    Temperature and air speed calculation

    My assignment says

    "write a program that calculates the speed of sound (a) in air of temperature T (in fahrenheit) The formula to compute speed is:
    a = 1086(square root((5*T...
Results 1 to 16 of 16