Search:

Type: Posts; User: Posto2012

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,099

    Unfortunately for me, this assignment is due in...

    Unfortunately for me, this assignment is due in an hour and a half. I think I'm stuck with trying to figure out this method.
  2. Replies
    5
    Views
    1,099

    Sorry, I don't understand. I also tried using ...

    Sorry, I don't understand.

    I also tried using


    while (t->startx != t->dollarX && t->starty != t->dollarY){
    findDollar(t);
    }
  3. Replies
    5
    Views
    1,099

    Problem with recursive function

    Hello,

    I am writing a program that navigates a maze. I am trying to use a recursive function to do so. My problem is the function stops working partway through. This is the maze I am using:
    ...
  4. Replies
    4
    Views
    1,199

    I'll try that , thanks.

    I'll try that , thanks.
  5. Replies
    4
    Views
    1,199

    ooooooooooo o*********o o*ooooooo *o...

    ooooooooooo
    o*********o
    o*ooooooo *o
    o+o*******o
    ooo* ooooooo
    o$o******$o
    o*o*ooooooo
    o********-o
    ooooooooooo
  6. Replies
    4
    Views
    1,199

    Need help with maze program.

    I am working on a maze assignment. We are supposed to read in the text file that contains the maze, which looks like the one below, and convert it to a graph/ grid. I can get it to read in the file,...
  7. Replies
    7
    Views
    3,641

    Thanks guys, that got it.

    Thanks guys, that got it.
  8. Replies
    7
    Views
    3,641

    For that particular one error C2065:...

    For that particular one

    error C2065: 'myStudents' : undeclared identifier
    error C2228: left of '.fname' must have class/struct/union
  9. Replies
    7
    Views
    3,641

    Arrays of pointers inside structures.

    Hello.

    I am writing a student records program for class. We are supposed to make two structures, one for students and one for courses. Inside each structure the needs to be an array of pointers to...
  10. Replies
    15
    Views
    2,171

    I think this is what I needed. Thanks everyone.

    I think this is what I needed.
    Thanks everyone.
  11. Replies
    15
    Views
    2,171

    I need to sort the two arrays of x,y coordinates...

    I need to sort the two arrays of x,y coordinates by their distance from the origin.
    The user selects the coordinates and they go into two arrays, one for x and one for y.
    So, i have to get the...
  12. Replies
    15
    Views
    2,171

    So, when I have the square root of the...

    So, when I have the square root of the coordinates, how would I implement it in my function to sort the two arrays?
  13. Replies
    15
    Views
    2,171

    So I wrote the function out like this: ...

    So I wrote the function out like this:



    void sort_xy (int x[], int y[] ) {
    int hold1, hold2,j;
    for (i = 0; i < coordNumber -1 ; i++) {
    for (j = i + 1 ; j < coordNumber; j++) { ...
  14. Replies
    15
    Views
    2,171

    That got rid of the errors. It's still not...

    That got rid of the errors. It's still not sorting though. Ill have to mess with it.

    For the other question. I had the float in there because without it it gives me a
    error C2668: 'sqrt' :...
  15. Replies
    15
    Views
    2,171

    Need help sorting 2 arrays.

    Hello everyone.

    I'm trying to write a program where a user will enter a set of x,y coordinates and the program will sort them based on their distance from the origin using sqrt (x*x + y*y). The x...
Results 1 to 15 of 15