![]() |
Okay when I complie this using Miracle C as the complier, it will complie, build and run. When DOS opens I try to type and then DOS Closes. Any suggestions?
:
#include <stdio.h> |
Added code tags.
It looks like you're telling it to close after keyboard input. What exactly did you want to type? |
>When DOS opens I try to type and then DOS Closes.
Of course it does. The only interactive input your program asks for is the final pause at the end meant to keep the window open. All other input comes from a file. |
Thanks, I'll have to get with my team and see waht the deal is on where the data file is.
one of my team members asked this question. What if I use a "struct" to collect the information and then write it to file? (*fp) I'm trying to figure out if all the "get" statements can be linked into a struct. Mjordan2nd- You are right, apparently it is supposed to bring up a data file that has certain parameters in it. Of course my team mates have not sent that file to me (ugh). I am so lost with this! I do not think I shall go into programming as a profession or hobby, but who knows I may actually get into it and like it. But for now, I am frustrated with it. /kick yammer from progamming class! :mrgreen: |
>But for now, I am frustrated with it.
The frustration doesn't go away, it just gives way to new frustrations as you learn more and become more confident. Though very few professions are as stimulating and rewarding. >I'm trying to figure out if all the "get" statements can be linked into a struct. The two options are to read each field individually as a line and assign them to the record, or read an entire formatted record and then parse it. Here is the former: :
#include <stdio.h>:
#include <stdio.h> |
Well thanks.
Appaerntly I got the worng code, but what you have given/explained to me helps a great deal. I'll look at the psuedo code again and see what I can develope from that. Thanks again eggbert! |
| All times are GMT -5. The time now is 2:03 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC