Search:

Type: Posts; User: Alan Gott

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    28
    Views
    2,259

    It's 1:30 here as well. I've been searching the...

    It's 1:30 here as well. I've been searching the internet for tuts since about 8, but I learn more from seeing the code in action rather than just reading the basics in some tut.
    As I said, I'll...
  2. Replies
    28
    Views
    2,259

    Don't pointers take two locations and combine...

    Don't pointers take two locations and combine them? Or something of that sort.

    EX:

    a | location 1
    --------|
    |
    --------|
    ptr = &a| location 1
  3. Replies
    28
    Views
    2,259

    I'm hoping to figure out how pointers work, so...

    I'm hoping to figure out how pointers work, so I'll probably just ask my professor since some help here rather make people feel foolish rather than actually try to help... Thanks for your input, and...
  4. Replies
    28
    Views
    2,259

    I do understand functions and scoping, what I...

    I do understand functions and scoping, what I don't understand is how pointers are used and how they work...
    When you throw pointers in, without fully explaining them to someone who knows nothing...
  5. Replies
    28
    Views
    2,259

    A simple "look up a tutorial" would have sufficed...

    A simple "look up a tutorial" would have sufficed instead of being a tad arrogant. I know, and admit often, that I don't understand everything people tell me on here. Just because I don't understand...
  6. Replies
    28
    Views
    2,259

    I can assure you that it did... Video - TinyPic -...

    I can assure you that it did... Video - TinyPic - Free Image Hosting, Photo Sharing & Video Hosting <- Video of it working as I said.

    And as for CommonTater's suggestion, is there a link to a...
  7. Replies
    28
    Views
    2,259

    I'm not too keen on a lot of the technical stuff...

    I'm not too keen on a lot of the technical stuff when it comes to building and compiling, but I'd have to say gcc just from a quick look.

    imgur: the simple image sharer
  8. Replies
    28
    Views
    2,259

    In display_array, everything got printed...

    In display_array, everything got printed correctly (see the first image in this link <Photo Album - Imgur>), which is why I am having trouble understanding what I need to do differently.

    EDIT:

    ...
  9. Replies
    28
    Views
    2,259

    How was I able to access it in display_array...

    How was I able to access it in display_array then, and how am I able to return two things, as I have never done that as of yet.
  10. Replies
    28
    Views
    2,259

    BUMP? I feel as though I am so close, yet so far...

    BUMP? I feel as though I am so close, yet so far from finally understanding why this isn't working.
  11. If what you are asking is for a way for the loop...

    If what you are asking is for a way for the loop to end, how about changing it to a do-while loop, or something, where it asks the user if he/she wants to repeat it.

    EX:


    do{
    //code here...
  12. Replies
    13
    Views
    5,138

    if (var == ':') fscanf (in, "&d",...

    if (var == ':')
    fscanf (in, "&d", &lab[MAX]);

    Well this part here might be why. First off, I have no idea, since I must be less knowledgeable than you in C atm, what the first part is...
  13. Well, I have to use MSVC++ for my lab, so I have...

    Well, I have to use MSVC++ for my lab, so I have to keep in standards with C-89 since MSV doesn't like the new standards. As I said, I am a novice still and I was just trying to help in whatever way...
  14. Replies
    13
    Views
    5,138

    Try taking "&" out of this, so you will have... ...

    Try taking "&" out of this, so you will have...


    printf ("%d",lab[1]);
  15. First off,I would declare i at the beginning of...

    First off,I would declare i at the beginning of the function instead of the in the for statement, so you would only be left with "i = 0" in the for statement instead of "int i = 0".

    Then, what...
  16. If you have the positive and negative numbers in...

    If you have the positive and negative numbers in separate arrays, then wouldn't you just use a for-loop and display all of the integers stored in it? (It might be helpful if you posted your code so I...
  17. Thread: Basic C

    by Alan Gott
    Replies
    7
    Views
    1,756

    In order for anyone to help, you have to have...

    In order for anyone to help, you have to have some work done. Do as much as you can, and when stumped on a specific spot, ask for help.
  18. Replies
    28
    Views
    2,259

    Ok, well I knew that much then, I just didn't...

    Ok, well I knew that much then, I just didn't know the technical way of saying it. I guess my problem is not understanding how structs fit into that. Why is it that I can use fill_array to store data...
  19. Replies
    14
    Views
    7,222

    Yep, each 'slot' of the array can hold a value....

    Yep, each 'slot' of the array can hold a value. (Excluding strings which need a 'slot' per character.)
  20. Replies
    4
    Views
    14,934

    Do you know what a do-while loop is? Here is...

    Do you know what a do-while loop is?

    Here is the tut from this website, if you find it hard to understand for whatever reason, I'll try to explain to you what it is to the best of my limited...
  21. Replies
    28
    Views
    2,259

    I noticed, and changed, that in line 25 didn't I?...

    I noticed, and changed, that in line 25 didn't I? (It might have been after you read it and before you posted this).


    I am not sure what you mean here, I still only have limited knowledge on...
  22. Replies
    28
    Views
    2,259

    I know what a global varaible is, but I am not...

    I know what a global varaible is, but I am not sure what you mean by declaring it static.

    What's wrong with that? Doesn't it add the next variable in the array to average _wage in each loop?
  23. Replies
    28
    Views
    2,259

    Having a problem with a struct.

    Source

    #include <stdio.h>


    int fill_array(void);
    int display_array(int count);


    typedef struct
  24. Replies
    33
    Views
    2,561

    Well, that would have been good to know at the...

    Well, that would have been good to know at the beginning of the semester lol.

    But now that that one was a rather simple solve, my older ones are still having compile errors. ;(

    EDIT: NVM, it...
  25. Replies
    33
    Views
    2,561

    Wow, that did it lol. So I can't even have a...

    Wow, that did it lol. So I can't even have a function that is independent from the rest of the code used before declaring my variables?
Results 1 to 25 of 59
Page 1 of 3 1 2 3