Search:

Type: Posts; User: t014y

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,248

    thank you so much. i removed ref and it worked,...

    thank you so much. i removed ref and it worked, kinda, it still crashed but but during run time. as for the other stuff... i copied over string from the other class the reason i dont use it is...
  2. Replies
    6
    Views
    1,248

    i dont understand b/c i didnt use "new" in my...

    i dont understand b/c i didnt use "new" in my program. it says new is in "xmemory" idk what that does but it is an include and i dont think i sould change it. as for my profileNode class it doesnt...
  3. Replies
    6
    Views
    1,248

    vector of pointers

    why can't i do this?

    (not sure which includes matter so i just put them all in)


    #include <ws2tcpip.h>
    #include <windows.h>
    #include <iostream>
    #include <fstream>
    #include <stdio.h>
  4. Thread: strcmp issue

    by t014y
    Replies
    8
    Views
    1,127

    i changed it to be more C++ like and it seems to...

    i changed it to be more C++ like and it seems to work now. still dont know why it didn't work before. the %[^\n] reads in a whole line where %s reads in a string that is the reason i was using that....
  5. Thread: strcmp issue

    by t014y
    Replies
    8
    Views
    1,127

    the reason is simply because I'm used to C-stile...

    the reason is simply because I'm used to C-stile I/O. i didn't think it would make a difference.
  6. Thread: strcmp issue

    by t014y
    Replies
    8
    Views
    1,127

    in my code is it "!=" idk why it is wrong here....

    in my code is it "!=" idk why it is wrong here. and this is C++ code.



    the file is set up so that the ** indicates the start of the data in the file. if there is no ** then the data file is set...
  7. Thread: strcmp issue

    by t014y
    Replies
    8
    Views
    1,127

    strcmp issue

    idk why but i cannot figure out what is wrong with my program. i found it crashes on strcmp but as far as i can tell this is how i have always used it. i'll post what i think are the impotent parts....
  8. Replies
    1
    Views
    1,684

    network programming

    i have 2 questions that i'm sure are easy to answer but i can't find the answer anywhere. I'm trying to write a program that will sent information though a UDP datagram from port 2006 on the source...
  9. Thread: big-Oh

    by t014y
    Replies
    2
    Views
    879

    i know it will take "m" to find the highest sum...

    i know it will take "m" to find the highest sum in each of the new sets. so i guess i was right, O(n^3), b/c n^2*m = n^3 (m is about the same as n). thanks for confirming. :D
  10. Thread: big-Oh

    by t014y
    Replies
    2
    Views
    879

    big-Oh

    I just need some help finding the run time of my program in the general big-Oh notation. what my program does is takes a 2d array of numbers adds all the possibilities to make 1d sets and then finds...
  11. the best i can think of is to have 4 if cases to...

    the best i can think of is to have 4 if cases to find the max then inside of each if statement have 3 more to find the min. i don't know if that counts as 4 or 16 though. there are only 4 if...
  12. Thread: memory issue

    by t014y
    Replies
    2
    Views
    4,170

    memory issue

    i have posted this before. please see this

    i am almost 100% positive that it is a memory problem in my program. the program is supposed to turn a sting of numbers in to a linked list. each node in...
  13. Thread: Link List math

    by t014y
    Replies
    17
    Views
    18,729

    maybe if i knew how to use the debugger (Dev-C++)...

    maybe if i knew how to use the debugger (Dev-C++) that would help?
  14. Replies
    8
    Views
    2,115

    i was told that if the pointer was pointing to...

    i was told that if the pointer was pointing to 'NULL' then free() did nothing... not make the program crash. but i don't know that much.

    but if that is true then you could free the same thing any...
  15. Thread: Link List math

    by t014y
    Replies
    17
    Views
    18,729

    i wasn't trying to be passive aggressive. i...

    i wasn't trying to be passive aggressive. i needed to get off at that time and when i used the quick post thing it locked up... i clicked it twice total, i guess both worked.
  16. Thread: Link List math

    by t014y
    Replies
    17
    Views
    18,729

    I'm getting off line now. any input will be...

    I'm getting off line now. any input will be helpful. thank you
  17. Thread: Link List math

    by t014y
    Replies
    17
    Views
    18,729

    I'm getting off line now. any input will be...

    I'm getting off line now. any input will be helpful. thank you
  18. Thread: Link List math

    by t014y
    Replies
    17
    Views
    18,729

    oh i guess it does... we did this same program...

    oh i guess it does...
    we did this same program with dynamically allocated arrays. and i didn't have this problem but that was an array not a linked list...
  19. Thread: Link List math

    by t014y
    Replies
    17
    Views
    18,729

    yes it printed "okay" twice before the program...

    yes it printed "okay" twice before the program ended
  20. Thread: Link List math

    by t014y
    Replies
    17
    Views
    18,729

    there is no specifications about what base. i'll...

    there is no specifications about what base. i'll print the assignment here

    it made me print it like this...sorry



    Computer Science I
    Program 3: BigIntegers
    Assigned: 2/9/09 (Monday)
    Due:...
  21. Thread: Link List math

    by t014y
    Replies
    17
    Views
    18,729

    when i ran that it worked... your program did not...

    when i ran that it worked... your program did not crash
  22. Thread: Link List math

    by t014y
    Replies
    17
    Views
    18,729

    yes it is an assignment and i have to use linked...

    yes it is an assignment and i have to use linked list /sigh
    i don't get an error message at all (windos XP) but i think it is a memory problem. but i cant see how it is.
  23. Thread: Link List math

    by t014y
    Replies
    17
    Views
    18,729

    Link List math

    I'm trying to make a program that adds and subtracts very large integers. the integers are stored digit by digit in a linked list. i am having problems with the program crashing with out an error...
  24. Replies
    6
    Views
    1,358

    i guess it helps if i don't close my for loop =P...

    i guess it helps if i don't close my for loop =P



    for (i = 0; i < diction->size; i++);

    needs to be


    for (i = 0; i < diction->size; i++)
  25. Replies
    6
    Views
    1,358

    ...nm about that last one... the code i have...

    ...nm about that last one...

    the code i have now is



    struct dictionary* ReadDictionary(void)
    {
    struct dictionary* diction;
    char word [MAX_SIZE];
Results 1 to 25 of 43
Page 1 of 2 1 2