Search:

Type: Posts; User: doampofo

Search: Search took 0.00 seconds.

  1. How do I retrace my steps after a wrong move?

    ...it's the same program i've been trying to finish for weeks now. I still can't get it to work properly.
    Can some loving person please help. I know this is qiute a bit of code to spiel....but this...
  2. Replies
    1
    Views
    1,355

    How do I pop off only the unwanted moves?

    Hi,
    this little function is finally able to solve the maze. However it prints out all the moves (even the once that lead nowhere). I can't figure out where to pop of the moves in order to print out...
  3. Replies
    4
    Views
    1,571

    An unending loop.

    I really need your help. I've been at this for a week now and I can't seem to find what i'm doing wrong. it's either I end up printing "this maze can't be soved" or I wait forever and the solved...
  4. Replies
    4
    Views
    1,571

    Is this better? . struct move_record{...

    Is this better?


    .

    struct move_record{
    int horizontal;
    int vertical;
    };
  5. Replies
    4
    Views
    1,571

    using deques to solve mazes.

    I heeded the advice I was given. I made my code more readable... I thought through it. I sought help from my peers and my proff, but still to no avail. I really need help. Can some lovely person...
  6. Replies
    0
    Views
    891

    Why am Printing out the same maze again?

    Well..i didn't want to drive anyone off by pasting all the code. However I think that's what I have to do now. My program solves a maze... or attempts to...using standard library template deques.
    ...
  7. Replies
    3
    Views
    2,601

    Yah!!

    That makes soo much sense. I feel soo silly now.
    Thanks eMMeMM....
  8. Replies
    3
    Views
    2,601

    Convertion from struct to 'const char'

    I was just wondering whether there was a way to convert structs to chars.
    I'm trying to solve a maze using deques. I want to push the different moves onto the deque as I go along... however the...
  9. Replies
    4
    Views
    1,350

    Thanks

    thanks, that worked. I wonder how people like you get this good.... I guess it's just practice , paractice....I've got a long way to go then.
  10. Replies
    4
    Views
    1,350

    letting the user type in the filename.

    well, I know this is pretty fundmental but I'm getting debug assertion errors and I don't understand why.
    The user enters a file name, I use getline to extract it.. then in my read file fuction ,...
  11. Thanks JasonD, I didn't think about it that...

    Thanks JasonD,
    I didn't think about it that way. I just changed my code. And it works the same way.
    However, my problem still persists.
    lets say i add 456 to639 ( i'm using small integers for...
  12. How do I add two long intergers of different lengths using STL?

    This funtion adds two long intergers of the same length, this one seems to be fine.

    .

    void add_integers(INTDEQUE &sum, INTDEQUE X, INTDEQUE Y)
    {

    int x,y;
    int carry =0;
    int result =0;
  13. Thread: Wrong output.

    by doampofo
    Replies
    2
    Views
    1,545

    Wrong output.

    .

    #include <stdio.h>
    #include <iostream.h>
    #include <fstream.h>
    #include <string.h>
    #include <conio.h>
    #include <math.h>
    #include <stdlib.h>
  14. Replies
    5
    Views
    2,145

    How do I calculate standard deviation.

    .
    #include <stdio.h>
    #include <iostream.h>
    #include <fstream.h>
    #include <string.h>
    #include <conio.h>

    typedef struct {
    int age;
    double off_time;
  15. Replies
    5
    Views
    2,145

    %lf?

    int main()


    {
    char line[200];
    int icount = 0;
    age_record females[100];
    age_record males[100];
    runner_t person;
  16. Replies
    5
    Views
    2,145

    What is wrong with my sscanf function?

    This is a small part of my program. The sscanf is creating run time errors. Could you please tell me what i'm doing wrong and how t o correct it?
    thanks


    paren_ptr = strchr (line, '(');...
Results 1 to 16 of 17