Search:

Type: Posts; User: DJPlayer

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    4,053

    I didn't realize there was a memory leak involved...

    I didn't realize there was a memory leak involved in the mere use of the pointer in C. But essentially your statement of how C looks at arrays was going to be my attempt. The fact that you have a...
  2. Replies
    15
    Views
    4,053

    Just a thought.. but notice I cannot use the =...

    Just a thought.. but notice I cannot use the = operator on array variables but I can use it on primitive data types that use name equivalence. Difference being == , vs. =. So possibly a way to...
  3. Replies
    15
    Views
    4,053

    structural equivalence is basically the same...

    structural equivalence is basically the same structure (vs type name). I'm assuming with arrays we include that to be the same primitive data stored as well as it's amount of memory allocation.
    ...
  4. Replies
    15
    Views
    4,053

    "That array constructor in C does not construct a...

    "That array constructor in C does not construct a new type and structural equivalence is applied to arrays. How can your write code to test this? i.e. how can you test that C uses structural...
  5. Replies
    15
    Views
    4,053

    nope.. I was looking through some other commands...

    nope.. I was looking through some other commands like typeof() etc.. because of the structure of arrays it's very difficult to make a comparison. I've been searching for a hint for the past day...
  6. Replies
    15
    Views
    4,053

    this is what lead me to the possibility of using...

    this is what lead me to the possibility of using the sizeof(). Very confusing question to say the least..

    homework - Are two int arrays of different size "type equivalent" in C? - Stack Overflow
  7. Replies
    15
    Views
    4,053

    Structural Equivalence Array

    Does anyone know how to test the structural equivalence of an array in C?

    I'm unsure if I should be tested the size of the array. Or the 1st element of the array (b/c the name is equivalent to a...
  8. just screwing around and I didn't follow your...

    just screwing around and I didn't follow your constraints. but this is the general idea of how it works.. of course you need to use a function taking 2 doubles and return a double (the max). You...
  9. Replies
    7
    Views
    3,526

    if you are new to C++ why are starting out with...

    if you are new to C++ why are starting out with functions in classes?? You might wanna hold off on the object oriented side until you can get past functions and loops.
  10. Replies
    3
    Views
    2,388

    was worded rather poorly. edited to fix. I...

    was worded rather poorly. edited to fix.

    I randomly grabbed 16 values from a text file. Now I want to that those 16 random letters and randomly place them in a 2d array. Currently I'm putting...
  11. Replies
    3
    Views
    2,388

    value in random slot of 2d array?

    This is a large never ending project .. but a piece at this point is to:

    currently I'm taking a random value from a text file.. There are 16 values grabbed and placed in a 2d array 4x4.
    ...
  12. Replies
    7
    Views
    1,518

    I can compile your code w/o error...

    I can compile your code w/o error...
  13. Replies
    4
    Views
    2,455

    sounds good, I'll give the 2D array a shot then.....

    sounds good, I'll give the 2D array a shot then.. thanx
  14. Replies
    4
    Views
    2,455

    I should explain what I have: int array[5] //...

    I should explain what I have:

    int array[5] // each of the spaces has an integer value in it, say "1,2,1,2"

    char one[5]="blah"
    char two[5]="wassa"

    now I want to cout "blah wassa blah wassa"...
  15. Replies
    4
    Views
    2,455

    integer array to char array?

    I'll explain basically what I'm doing.. Since I'm just looking for a step I don't think any code needs to be posted.

    I took a user input and turned it into a integer array (I needed to run some...
  16. Replies
    9
    Views
    1,385

    my grammar was somehow horrid on that quote.....

    my grammar was somehow horrid on that quote.. but.. I'll explain.

    Pod and Phone both used the function mute. I had to use the PodPhone instead of Pod or Phone to control the muting/unmuting of...
  17. Replies
    9
    Views
    1,385

    thanx.. after some time I did get through it.. ...

    thanx.. after some time I did get through it.. had some major syntax issues obviously..

    I used destructors but did you virtual inheritance in PodPhone class that would seperately work the mute...
  18. Replies
    9
    Views
    1,385

    this is my basic code and comments on what...

    this is my basic code and comments on what will/should go on..



    class Phone
    {
    public:
    void dial(int* number)
    { cout << "Dialing " << number << "...\n"; }
  19. Replies
    9
    Views
    1,385

    I think I have but I'm obviously just missing...

    I think I have but I'm obviously just missing some very stupid obvious basic syntax..

    in my generic program what syntax would I use to to print "blah blah" via the print function..
  20. Replies
    9
    Views
    1,385

    Calling functions through class

    using very very simple functions because need to use inheritance in multiple classes

    so let's say I said


    class a {

    public:

    void print()
  21. Thread: maze array

    by DJPlayer
    Replies
    1
    Views
    1,068

    maze array

    this one piece of code has me going nutz.. I'm essentially trying to predict the next move..

    everything is based in columns and rows for a 2 dimensional array.. do I define the current positon to...
  22. Replies
    5
    Views
    1,247

    no you're absolutely correct.. just as starting...

    no you're absolutely correct.. just as starting point is [1,1]. You location would always change the movement goes along. 17 columns, 20 rows.. as long as I'm not allowing myself to go through...
  23. Replies
    5
    Views
    1,247

    with that area of the loop. I'm just adding 1 to...

    with that area of the loop. I'm just adding 1 to the column or row. problem being that I'm looking over my code and notice that I can't use a definate position #. Need to use the current position...
  24. Replies
    5
    Views
    1,247

    help w/ 2dimensional array maze

    just trying to finish up this maze.. getting a little fustrated when getting close to completion. Anyone? I bolded the areas I'm a little lost on how to complete.



    const int ROW_SIZE = 20,...
  25. I just took my exam.. so I ended up learning alot...

    I just took my exam.. so I ended up learning alot more about how it probably should be done..

    the file should most likely be stored as a 2 dimensional array.
    the file comparison to validate is...
Results 1 to 25 of 27
Page 1 of 2 1 2