Search:

Type: Posts; User: Brimak86

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    945

    ok the OS would be Linux Ubuntu specifically ...

    ok the OS would be Linux Ubuntu specifically
    the compiler g++
    the application type console is fine
    the printer it'd actually be a couple are networked.
    I guess I was thinking the printers could...
  2. Replies
    2
    Views
    945

    question about printing

    Hey I was wondering if it was possible to send the contents of say an array to a printer. I've searched but it seems like all I've found is printing the page one pixel at a time, through coordinates,...
  3. Replies
    2
    Views
    832

    Question on algorithm

    I need to write a program that uses a binary search tree, and linear linked list, but I can only use 1 struct, are there any tutorials about how to do either one without using a structure?
  4. Replies
    6
    Views
    1,396

    Thanks for the responses, so I'm pretty sure its...

    Thanks for the responses, so I'm pretty sure its line 95, so I did try to change it to a pointer.


    *ptr = stream[i];
    s = atoi(&ptr);

    that didn't fix it, I thought that was...
  5. Replies
    6
    Views
    1,396

    It seg faults right away

    I'm trying to read in text from a file exclusive or it against a random number, and output that to another file. I thought this should work, but it seg faults as soon as I run my program. Any help...
  6. Thread: Exclusice-OR

    by Brimak86
    Replies
    4
    Views
    1,142

    um, I'm still unclear. I need to read text in...

    um, I'm still unclear. I need to read text in and compare it with random numbers. So I have it compiling with one warning, but it seg faults right away and I cant see why.
    The warning is passing...
  7. Thread: Exclusice-OR

    by Brimak86
    Replies
    4
    Views
    1,142

    Exclusice-OR

    I have to write a stream cipher using the exclusive-OR (XOR), I have to read text from a file and XOR it to rand. How do I compare the two, I just want to know which one I need to convert, and...
  8. Replies
    1
    Views
    934

    Quesion about #define

    I'm writing a program for school, and just wanted to know is there a flag to tell which operating system your code is on? If so what's the windows flag keyword?
  9. Replies
    4
    Views
    1,069

    Quick question

    I have a program for class, and I need to implement a timer, just like a stopwatch, time the milliseconds between displaying something and the user inputting something. Someone told me to call...
  10. Thread: It seg faults

    by Brimak86
    Replies
    2
    Views
    919

    That did it thanks a lot

    That did it thanks a lot
  11. Thread: It seg faults

    by Brimak86
    Replies
    2
    Views
    919

    It seg faults

    I'm trying to use a random number generator to index through an array. I get the numbers and have printed them to the screen but I cant seem to get anything to work past that. I've tried to store...
  12. Replies
    11
    Views
    1,067

    I'm still getting errors when I go to compile I...

    I'm still getting errors when I go to compile I changed the thing you all have suggested, so now it reads:


    static const char *list[100] = { "the", "of", "and", "a", "to", "in", "is", "you",...
  13. Replies
    11
    Views
    1,067

    need help with pointers to a list of chars

    Can I treat a pointer to a list of chars, just like an array in C++? I have an assignment, he gave us a defined list of pointers to chars.


    static char *list[100] = { "the", "of", "and", "a",...
  14. Replies
    3
    Views
    1,344

    ok, you'r both right, that did it. Thanks so much

    ok, you'r both right, that did it. Thanks so much
  15. Replies
    3
    Views
    1,344

    help with random number generator

    I have an assignment for school, to make a long story short I'm having trouble with the random number generator. I get two errors saying "error: expected expression before = token" they give the...
  16. Replies
    1
    Views
    717

    help with program

    I'm working on a program thats supposed to read a line in, then pass it to a function which prints the line one word per line, like this,
    >>>> ENTER A LINE:
    this is a test
    <<<< RESULT (4...
  17. Replies
    6
    Views
    1,023

    ok so I worked a little more on this, now I'm...

    ok so I worked a little more on this, now I'm getting errors saying line 36 and 39 fprintf is not a function. I want to print the stuff to an external data file, I thought it was fprintf in C, any...
  18. Replies
    6
    Views
    1,023

    Help with program

    I'm working on a program for school, and its supposed to accept a command line argument to print to a file, but it has to be functional both ways. I cant quite figure out where I'm going wrong it...
  19. Replies
    5
    Views
    821

    I just wanted to say thanks to all those who...

    I just wanted to say thanks to all those who responded, I was able to get the program running and turned in, thanks.
  20. Replies
    5
    Views
    821

    I figured I would post all the code I have for...

    I figured I would post all the code I have for the insert, so you can hopefully figure out where I was headed with this.


    ...
  21. Replies
    5
    Views
    821

    foodm and location are both in the main, we're...

    foodm and location are both in the main, we're implementing ADT's, and cant cin or cout from a class, so I'm trying to pass them from the main to the class.
    The struct food_TYPE is declared in...
  22. Replies
    5
    Views
    821

    Errors please help

    I'm trying to finish up some homework, and keep getting the "invalid conversion from `char' to `const char*' " error. I'm trying to insert into a linear linked list, any help would be appericated. ...
Results 1 to 22 of 22