| jfp2716 (17) | |
|
| |
|
Last edited on
|
|
| Legend28469 (38) | |
| Have you tried? The tutorial at this site covers this. | |
|
Last edited on
|
|
| jfp2716 (17) | |
|
Here's what I have so far [ | |
|
Last edited on
|
|
| jsmith (5804) | |
|
Have you tried to compile it? (No, obviously not...) | |
|
|
|
| Legend28469 (38) | |
Change thisin SIZE;To this int SIZE;near beginning | |
|
Last edited on
|
|
| jfp2716 (17) | |
| haha no I've just started working on it over the past few days and that was just the basics I kind of started with | |
|
|
|
| Legend28469 (38) | |||
Maybe this will suit you... not to change your style or anything.. but this is just a start..
I haven't really looked through.. it... but its a start.. sorry there isn't any comments.. your code was missing headers for example <fstream> and <iostream> and <string>.. i really had to rush through it.. so if it's unorganized i'm sorry... | |||
|
Last edited on
|
|||
| jfp2716 (17) | |
| ... | |
|
Last edited on
|
|
| Legend28469 (38) | |
|
Look to the right of the text box --> and you'll see this --> # click it.. and it will spawn a (code) (/code) but the brackets are actually [] put your code in between that.. and by the way, if you need further help, we could work on this together. | |
|
Last edited on
|
|
| jfp2716 (17) | |
| ... | |
|
Last edited on
|
|
| Legend28469 (38) | |||||
I see, you have to use functions, well since its your project, we can stick to your code but add these to the headers
And when starting out.. comments are a good habit they help you remember. Comment = // I am a one line comment or Comment =
These pages should help you with your project http://www.cplusplus.com/doc/tutorial/files.html -- That's for I/O http://www.cplusplus.com/doc/tutorial/arrays.html -- That's for arrays http://www.cplusplus.com/doc/tutorial/control.html -- That's for loops (such as for, or while) | |||||
|
Last edited on
|
|||||
| jfp2716 (17) | |||
Yea he basically said we had to use those basic functions I had up their. void inputStudentInfo(int IDs[], string studentNames[], float scores[], int& numOfStudents)
Thanks I forgot to add those libraries in | |||
|
|
|||
| Legend28469 (38) | |
| There's quite a bit missing, but you've got (a week I think), so you should be fine. Functions are a good practice if used properly, this site's tutorial has everything you need. You can get it done within 30 minutes (If it took 10 minutes to read, and even if you needed reference and checked back another 20 minutes to actually code). You should try compiling it, if it doesn't compile, read the errors and fix em, if you got a problem that you can't solve (no matter how stupid) bring it to the forums =D. (Lol, I don't wanna sound like a teacher) | |
|
Last edited on
|
|
| jfp2716 (17) | |
| Thanks legend I'll post any problems or errors I cant't figure out or if I get stuck no matter how stupid they are here | |
|
|
|
| Legend28469 (38) | |
|
That's the spirit! Happy Coding _ .____ .___ | | ____ ____ ____ ____ __| _/ | | _/ __ \ / ___\_/ __ \ / \ / __ | | | |__\ ___// /_/ > ___/| | \/ /_/ | |_______ \___ >___ / \___ >___| /\____ | \/ \/_____/ \/ \/ \/ lol.. sorry.. I love ASCII | |
|
|
|
| jfp2716 (17) | |
| ... | |
|
Last edited on
|
|
| Legend28469 (38) | |
|
Everyday and Night. If you ever need me to come on or something, email = johnathaneb@hotmail.com and you can always find me on facebook Johnathan Brown is the name with a picture of a "J.B." in graffiti | |
|
Last edited on
|
|
| jfp2716 (17) | |
| ... | |
|
Last edited on
|
|
| Legend28469 (38) | |
| So, I just built it today. It's got quite a bit of functions. May not be exactly what your looking for. We'll walk through it, and I'll show ya how it's done, I used a function to calculate the avg, a function, to output data to the file, a function to get info, and a function to assign the grades, and there are arrays too so yeah, talk to me on facebook when your ready (if im not online it gets sent to my phone so when you send I'll be on about a minute later but only after 7) because I"m working and can't get to facebook yet... Happy CODING!! | |
|
|
|
| Legend28469 (38) | |||
It's all commented so you can learn as much as you can. Have fun.. NOW UPDATED!! D now gives correct value.. and Output is displayed to the screen while it is being put in a text file | |||
|
Last edited on
|
|||