Search:

Type: Posts; User: Reboot.Revival

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,145

    The process function was just a bad copy and...

    The process function was just a bad copy and paste. I was trying to cut out parts of the code that I didnt need for the post and started cutting the "parts" area of the code. Just didnt get it put...
  2. Replies
    7
    Views
    1,145

    If I were to include the [x] I would have to...

    If I were to include the [x] I would have to change it from a pointer and use ptr[x].num. but then it segment faults.

    read_p and dis_p work fine. I included them to show that even though being...
  3. Replies
    7
    Views
    1,145

    passing into functions

    EDIT: forget everything from before. It came out of confusion regard the supplier functions. dis_s() and read_s() the part functions work and are not any different really.


    #include...
  4. Replies
    10
    Views
    1,380

    O I see. I have seen people use buffer before so...

    O I see. I have seen people use buffer before so I assumed it was something special. The teacher who told us that about continue and what not was last semester. This guy doesn't care. I get what...
  5. Replies
    10
    Views
    1,380

    Smokey: I used that if buffer statement you...

    Smokey:
    I used that if buffer statement you provided and for some reason it was skipping the 3rd structure at the print out. the one with the empty s2_code. I toyed with it for a bit and found...
  6. Replies
    10
    Views
    1,380

    Ok I will play with that for a bit. I don't...

    Ok I will play with that for a bit. I don't really know how to use buffer so I will read about that.

    Our teacher said that goto, continue, break, and something else I cannot remember right now...
  7. Replies
    10
    Views
    1,380

    "It looks like code and qty and s1_code are...

    "It looks like code and qty and s1_code are always stored, s2_code isn't always stored, and records are separated with "--". Are blank lines important? Do they need to be stored somehow, or should...
  8. Replies
    10
    Views
    1,380

    I mad some adjustments and came out with this ...

    I mad some adjustments and came out with this



    int main()
    {
    PART e[MPS];

    int x,;
    FILE *fpr;
  9. Replies
    10
    Views
    1,380

    Ill try that. I am just kind of piecing this...

    Ill try that. I am just kind of piecing this together from what I am reading in my book and online because i haven't been able to find anything directly related to this.

    Originally his...
  10. Replies
    10
    Views
    1,380

    File I/O, Arrays of Structures, etc

    This is my second semester in C programming. Data Structures and Algorithms. Our teacher is from Cali, and this is his first semester here. He has no idea what the 211 class teaches and isn't...
  11. Replies
    22
    Views
    4,960

    It was like this. #include ...

    It was like this.



    #include <stdio.h>


    int main(void)
    {
    char x[50];
  12. Replies
    22
    Views
    4,960

    My book says scanf will read in a string to a...

    My book says scanf will read in a string to a space and will continue from that space if it is looped. If you compile the program that is what it does. I can write a full sentence in the program...
  13. Replies
    22
    Views
    4,960

    @camel-man I dont understand why you say *phr is...

    @camel-man I dont understand why you say *phr is never changing. scanf is reading in the string that is going to phr. scanf reads to the space, converts that piece, gets looped back through reads...
  14. Replies
    22
    Views
    4,960

    Here is the new code. Much easier to do after...

    Here is the new code. Much easier to do after after reading a few chapters ahead. A lot of the stuff in this code was mentioned in class but not defined or shown which is why I didn't use it. My...
  15. Replies
    22
    Views
    4,960

    Thanks for all the help. My professor said she...

    Thanks for all the help. My professor said she didnt want switch statements because it would take to long to grade so I had to scrap the whole thing and start over. I ended up with a cleaner...
  16. Replies
    22
    Views
    4,960

    Im super stuck on this part. Any ideas. I need...

    Im super stuck on this part. Any ideas. I need to convert alphas and digits and obviously switch won't work. This is my first assignment with strings so I am pretty stumped.
  17. Replies
    22
    Views
    4,960

    @ Nominal Animal The j++ line isnt a bug, I...

    @ Nominal Animal
    The j++ line isnt a bug, I added that in there so I wouldnt have to increment every j in all the case lines. Every loop starts at the next index because of that one line. Also I...
  18. Replies
    22
    Views
    4,960

    Thanks for the advice. I have class this morning...

    Thanks for the advice. I have class this morning and work afterwords so I will try it out this evening.
  19. Replies
    22
    Views
    4,960

    Homework- Morse Code output problem

    I have been working on this for about 5 hours now and I can't figure this out.. Its my first semester in Computer Engineering with no programming experience.

    So, the program is supposed to...
Results 1 to 19 of 19