Search:

Type: Posts; User: matthayzon89

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    2,032

    Hey there, I just started C last year, I took...

    Hey there,
    I just started C last year, I took intro to c at my univ. and it was one of the toughest classes ever but it pays off, once you get through the basics its great. I recommend you get the...
  2. Yes I did check that the file pointers are valid...

    Yes I did check that the file pointers are valid and they are.

    Can someone please help my small sample code work (its in the original post)? it does not print correctly...
  3. Adding data to existing data in an input file?

    Hello,

    I am working on a program (other than the attached example).

    At first my FILE was declared in "r" (read) mode, then I realized that in order to write i need it to be in "w" (write) mode,...
  4. Program crashing b/c of malloc, can someone please help?

    I created a function to do some security calculations....

    After completing these calculations, this function is suppose to return an array to main.

    I malloc'ed in the function like this... (its...
  5. YES IT IS. I figured it out, My computer,...

    YES IT IS.

    I figured it out,

    My computer, for some reason, automatically added .txt extension to the filename....
    Once I erased it, it worked.

    I guess what happened was the compiler read it...
  6. I used the path to exact location and it still...

    I used the path to exact location and it still fails!
  7. REALLY?! thats so weird. lol at least I...

    REALLY?! thats so weird.

    lol

    at least I can give myself credit for knowing how to read from an input file but WHY isnt it working on my computer?! I am 100% sure the input file makes sense.....
  8. Well I know for a fact that it is not opening the...

    Well I know for a fact that it is not opening the txt file b/c I set numClasses to zero and the first integer in the input file is not zero, but the program still prints zero.

    On any note, as i...
  9. Weird, cannot read from input file? Makes no sense....

    Well, this is very weird.
    The input file contains two integers on the first two lines then some other data.....
    It is called 'input' and it is a txt doc.
    It is in the same folder as my program.
    ...
  10. Difference between 12-bit address and 12-bit address operand?

    Hello,

    I have an exam coming up tomorrow and I was wondering if someone can help me understand the difference between a 12-bit address and 12-bit address operand?

    Isnt an address operand the...
  11. How can I verify that the input filename the user entered (to read from) exists?

    How would I check whether the input filename the user entered exists?

    I need to create a program where a very tiny part of it is making sure that the filename the user wants to read from exists,...
  12. Replies
    3
    Views
    839

    Thanks for the response....! :) Can someone...

    Thanks for the response....! :)

    Can someone please help me understand this warning?'

    "[Warning] Struct queue declared inside parameter list"
  13. Replies
    23
    Views
    3,086

    A brief intro to functions... your function...

    A brief intro to functions...

    your function declaration goes between your C libraries and the body of main. This simply lets the compiler know that it is going to bump into a function at some...
  14. Replies
    3
    Views
    839

    Question about Queues

    Hello,
    I am have a programming assignment where I need to simulate a store's waiting line for check out.

    I am a little confused about the struct declaration, can someone please help me make sure...
  15. so, calloc usually comes in handy when I want to...

    so, calloc usually comes in handy when I want to allocate memeory for an array of structs and initialize all the elements to zero at the same time, basically???



    thanks
  16. @ Elysia, thats understandable, thanks for...

    @ Elysia, thats understandable, thanks for clarifying.

    I am actually starting to get the hang of malloc (for arrays at least)

    what if you had an array of structs... can someone please give me a...
  17. Thanks for all the responses!!! Especially @...

    Thanks for all the responses!!! Especially @ QuadtraticFighte and claudiu!!!


    Very helpful....


    QuadtraticFighte, can you help me understand what the general format of calloc is and when...
  18. Pointer= An Address Maybe, you can answer the...

    Pointer= An Address

    Maybe, you can answer the question and be helpful... instead of getting smart.
  19. Trouble understanding Malloc, Calloc, and Realloc

    Does this successfully allocate dynamic memory for the array?

    Also, what is the significance of '*' specifically when dealing with malloc/calloc??

    In the code below I use-> '*' twice:
    ...
  20. Actually, I am not really limited to...

    Actually, I am not really limited to algorithmically chellenging problems. Anything any of the forum members think would be good practice for any reason, I will try to code sooner or later...


    Im...
  21. Thank you. I found some good ones online from...

    Thank you. I found some good ones online from searching programming contests.

    At first, I tried googling programming excercises or programing ideas but nothing good came up. Everything I found was...
  22. Why waste your time on responding to this thread...

    Why waste your time on responding to this thread if you are not going to be helpful? to try and make someone feel dumb over the internet...?? thats stupid. I feel sorry for YOU my friend.

    Move...
  23. Here are some practice program ideas: 1)Write...

    Here are some practice program ideas:

    1)Write a program that allows a user to play a guessing game. Pick a random number in between 1 and 100, and then prompt the user for a guess. Based on their...
  24. Since you had enough intelligence to read my...

    Since you had enough intelligence to read my post, I asked for people to post practice program ideas. There arent any practice program ideas there.
  25. Sorry for the duplicate threads, my computer...

    Sorry for the duplicate threads, my computer froze then when I clicked submit it somehow created multiple new threads, please delete the extras.
Results 1 to 25 of 247
Page 1 of 10 1 2 3 4