Search:

Type: Posts; User: Sinery

Search: Search took 0.01 seconds.

  1. Yeah, works perfect. Thanks.

    Yeah, works perfect.
    Thanks.
  2. If statement to check matching word to pointer's address value

    Hello strangers,

    I'm having an issue coming up with an if() statement to check if a word match the one in the value of a pointer's address.
    So far the best I've come up with only matches the...
  3. A whole lot of crap, essentially reading values...

    A whole lot of crap, essentially reading values into n, n2, ArraySize, reserve memory for struct array, get a pointer for the array, and get the pointer to fly all over the place to eventually count...
  4. #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>


    struct MyStruct
    {
    int n;
    char n2[32];
    };
  5. I have been using strcpy earlier, but I ended up...

    I have been using strcpy earlier, but I ended up not using it because I couldn't figure out how to load in a value to it.
    Instead I used:

    scanf("%s", &ArrayPointer[0].n2);

    I don't know if...
  6. Thank you very much, I do not have words enough...

    Thank you very much, I do not have words enough to describe my appreciation.

    However, I am struggling to implement a char array into your program.



    #include <stdio.h>
    #include <stdlib.h>
  7. I am currently using a help pointer for the sole...

    I am currently using a help pointer for the sole purpose to be allowed to use * and it is working just fine.
    It's a bit dirty, but there is nothing in my task saying I may not do it.


    int...
  8. Frankly, this is the first time I'm using a...

    Frankly, this is the first time I'm using a struct and there is little instruction on how I shall use it, so I have no idea if I am utilizing it as I should.
  9. The task I have is required to have a pointer as...

    The task I have is required to have a pointer as a return value, and then use a pointer that is pointing on the same address as a parameter to another function where it will go through the array.
    ...
  10. Yeah, I wouldn't be throwing a pointer all around...

    Yeah, I wouldn't be throwing a pointer all around the place if I wasn't instructed to do just that.

    However, the pointer works just as it ought to all the way except at the place I showed above....
  11. I'll give you the whole life length of each. ...

    I'll give you the whole life length of each.


    int ArraySize = 3;
    int *ReturnedArrayPointer = 0;


    int Stock(ArraySize)
    {
    struct MyStruct *ArrayPointer;
  12. Putting * in the function parameter gives me...

    Putting * in the function parameter gives me "Unamned prototyped parameters not allowed when body is present." error.
  13. Yeah, that's when I get the Operand of '*' must...

    Yeah, that's when I get the Operand of '*' must be of a pointer error.
  14. Unable to Acquire the Value of a Address that a Parameter Pointer has.

    I am unable to use * to acquire the value of the address that ReturnedArrayPointer has.
    The comments in the code should explain in more clearly.


    #include"Header.h"

    /* These are in Header.h...
  15. Sorry about that, did search for a code tag but...

    Sorry about that, did search for a code tag but must have missed it.

    About the parameter, yeah I was testing how my memory responded to me setting it to different numbers manually like that but...
  16. Pointer jumping over adress in "uneven" array.

    13861

    I have no idea why my pointer skips over the colour addresses, it jumps to the next size address when I use Pointer++.
    I have tried changing the the char array to 4 bytes instead of 32 and...
Results 1 to 16 of 16