Search:

Type: Posts; User: saahmed

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Hmm.. It seems to work either way.

    Hmm.. It seems to work either way.
  2. Oh, I should have figured that out. Thanks.

    Oh, I should have figured that out. Thanks.
  3. Thats not working either for some reason.

    Thats not working either for some reason.
  4. One more question. Why wont this work? Im using...

    One more question. Why wont this work? Im using the OR's correctly right?


    if(major!='e'||'h'||'m'||'c'||'b'||'u'){
    printf("ERROR! Invalid Error Code Entered\n");
    count--;
    }


    But...
  5. Yeh, figured that out. Also needed a pause at end...

    Yeh, figured that out. Also needed a pause at end of main function.

    Its all good now.
  6. Structures, passing array of structures to function

    This involves structures. Basically I created an array of structures and I am supposed to pass it onto a function that was given. This is where my problem is (marked /*HERE*/). I think I am passing...
  7. Replies
    39
    Views
    4,566

    Im thinking the best way to do this, if possible,...

    Im thinking the best way to do this, if possible, is to create a pointer. Go through the each element of the array and dereference it. If it is a 0 leave it. If it is a 1 change it to *. After...
  8. Replies
    39
    Views
    4,566

    but that wouldnt go through just the first line...

    but that wouldnt go through just the first line would it?
  9. Replies
    39
    Views
    4,566

    I cant think of anyway to get the length of the...

    I cant think of anyway to get the length of the side of the square without actually passing that to the function (which I am not supposed to do per the assignment).

    EDIT: I think I thought of...
  10. Replies
    39
    Views
    4,566

    hmmm... well I am gonna have to work on this a...

    hmmm... well I am gonna have to work on this a little, Im still not getting anything. But, I have to study for an exam I have tommorrow, or today I guess.

    Thanks for your help qqqxxxx.
  11. Replies
    39
    Views
    4,566

    Its working? When I enter the size I want, the...

    Its working? When I enter the size I want, the program just ends without any warnings or anything. But, it doesnt print anything.
  12. Replies
    39
    Views
    4,566

    well, no, the program is just ending after the...

    well, no, the program is just ending after the user prompt to enter the desired size. This is why I was trying to understand drawImage better.
  13. Replies
    39
    Views
    4,566

    but the side hasnt been passed on to this...

    but the side hasnt been passed on to this function. so this is needed right?
  14. Replies
    39
    Views
    4,566

    This is true, I am not really understanding the...

    This is true, I am not really understanding the assignment well. I think I understood the part about the canvas and the square being in the center of the canvas, but Im just not understanding how it...
  15. Replies
    39
    Views
    4,566

    Well here I am just trying to get the length of...

    Well here I am just trying to get the length of the square. I was thinking all I needed was the length of a side. Am I wrong?
  16. Replies
    39
    Views
    4,566

    I just wanted to get this straight because Im not...

    I just wanted to get this straight because Im not so sure. The drawImage function is creating a square of 1s right? Because when I try out the program with the function I added, it just ends after...
  17. Replies
    39
    Views
    4,566

    do you think there is any other way to do it? ...

    do you think there is any other way to do it?

    This is what I got, I know its wrong, but is there something I could change to make it work?


    int size=0;

    for(r=0;r<25;r++){...
  18. Replies
    39
    Views
    4,566

    While that may work, I dont think I can really...

    While that may work, I dont think I can really use it because I havent learned anything like that. But i'll look through the book quick and see if it is anywhere, then I could use it.

    EDIT:...
  19. Replies
    39
    Views
    4,566

    does it have anything to do with storing the...

    does it have anything to do with storing the memory location?
  20. Replies
    39
    Views
    4,566

    whoops.

    whoops.
  21. Replies
    39
    Views
    4,566

    Okay, I think I understand what youre saying, but...

    Okay, I think I understand what youre saying, but how would I go about doing that?

    EDIT:
    something like this?


    for (r = 0; r < size; r++)
    {

    for (c = 0; c < size; c++)
  22. Replies
    39
    Views
    4,566

    Im working on the printImage function. It doesnt...

    Im working on the printImage function. It doesnt require the use of this function. Or maybe I dont know what youre getting at.

    I know I need to pass an array to printImage.

    EDIT: Wait,...
  23. Replies
    39
    Views
    4,566

    Okay, so the way Im understanding this is that...

    Okay, so the way Im understanding this is that the drawImage function is creating a square of 1's right? So in my printImage function I can just tell it to change 1's to *? If so, I am only passing...
  24. Replies
    39
    Views
    4,566

    Oh, I didnt know that. Thanks.

    Oh, I didnt know that. Thanks.
  25. Replies
    39
    Views
    4,566

    I dont understand the assignment for even. So is...

    I dont understand the assignment for even. So is that not if the side is an even number? Or is it a typo? Could you just explain it for me please.
Results 1 to 25 of 63
Page 1 of 3 1 2 3