![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1 |
Dracolisk
![]() Join Date: January 5, 2002
Location: Guantanamo Bay, Cuba
Age: 39
Posts: 6,043
|
Alright alright I should've picked HTML or some other language I was at least half-familiar with to start this project off but some of their machines were so old that they were only running DOS, oh right i'll tell you the full story first...
mmmkay... So this local school has just received word that they will have to work their grades out electronically, i've got a great system worked out, but the program has to exit everytime a new grade is entered to a main index of a student. I used Visual C++ because it seemed like a good idea at the time and I knew a littl ebit of it... basically, what I'm asking is... What is the alternative to saying end1; where as it would repeat the program again, from the start, while also retaining the original output... As an example: If student 01 had a 87.5 on a grade, it would list their name, class, grade, assignment, everything, and THEN it says "press any key to continue" and up and exits the main program. I know there must be a way to enter Suzy's information and Carl's too, one after the other, and then have the read outs listed alphabetically or by highest grade % . . . I was basically chosen for this task because I'm supposed to be the expert around here but gosh darnit i wasn't made for writing DOS programs! If anybody might have a clue as to how to continue the program running, pleeeeease, I could really use a bit of help here, infact everyone here could [img]tongue.gif[/img] And If not i'll just begin the daunting task anew, perhaps HTML will read in some version of DOS (who'm I kidding?...)
__________________
[img]\"http://membres.lycos.fr/th8or/ZeroSigForIronworks.gif\" alt=\" - \" /> o.o; |
![]() |
![]() |
#2 |
Harper
![]() Join Date: October 2, 2001
Location: Aberdeen, Scotland
Age: 43
Posts: 4,774
|
Sigh, homework problems. Oh wait, your saying your doing this for real? Odd, but never mind. Post your algorithms and such, for preferance your main() as well.
I cant work in Visual C++ (cant afford it), but you should be able to use an array[] to store the details and work with them later.
__________________
[img]\"http://www.sighost.us/members/Zvijer/andrewas.gif\" alt=\" - \" /> |
![]() |
![]() |
#3 |
Baaz Draconian
![]() Join Date: September 8, 2002
Location: Cornelius,NC
Age: 37
Posts: 700
|
Where did you get c++ I've been looking all over for it.
__________________
I am the Ferret king, master of the hordes, allied to Someguy\'s mighty pinguins, we will soon rule the world! |
![]() |
![]() |
#4 | |
Harper
![]() Join Date: October 2, 2001
Location: Aberdeen, Scotland
Age: 43
Posts: 4,774
|
Quote:
Its a bit of a pain to setup though. Search for it. DOS only, not windows. Its actualy the same compiler they wrote Quake 1 in. /)Deathkiller. Assuming this is a real problem and not homework, itd be easier to use Excel or another spreadsheet package to solve this problem.
__________________
[img]\"http://www.sighost.us/members/Zvijer/andrewas.gif\" alt=\" - \" /> |
|
![]() |
![]() |
#5 |
Lord Ao
![]() ![]() ![]() ![]() ![]() ![]() Join Date: June 24, 2002
Location: Nevernever Land
Age: 50
Posts: 2,002
|
You are talking about a simple database app here. MS Access would lend itself nicely to quickly get you up and running. No real need to recreate the wheel and redeisgn a database. I wouldn't recomend Access for big time critical information but it sounds reasonable in this case. The code within Access is a watered down VB (VB Visual Basic for Applications). Access will handle the database and you can code and store your interface (forms and reports) within the same .mdb file.
Note: Not a plug for M$. I only use Access for prototyping and small scale stuff. I think it's way to buggy for larger apps.
__________________
[url]\"http://www.duryea.org/pinky/gurkin.wav\" target=\"_blank\">AYPWIP?</a> .... <img border=\"0\" alt=\"[1ponder]\" title=\"\" src=\"graemlins/1ponder.gif\" /> <br />\"I think so Brain, but isn\'t a cucumber that small called a gherkin?\"<br /> ![]() |
![]() |
![]() |
#6 |
Harper
![]() Join Date: October 2, 2001
Location: Aberdeen, Scotland
Age: 43
Posts: 4,774
|
Access for what sounds like a flatfile database is overkill. And Visual Basic is evil, in whatever form. Excel is probably the easiest way to go. And also has VBA built into it.
C++ can do it though. Post the complete specification of the problem and Ill see if I can be a bit more helpful.
__________________
[img]\"http://www.sighost.us/members/Zvijer/andrewas.gif\" alt=\" - \" /> |
![]() |
![]() |
#7 | |
Dracolisk
![]() Join Date: January 5, 2002
Location: Guantanamo Bay, Cuba
Age: 39
Posts: 6,043
|
Quote:
__________________
[img]\"http://membres.lycos.fr/th8or/ZeroSigForIronworks.gif\" alt=\" - \" /> o.o; |
|
![]() |
![]() |
#8 | |
Dracolisk
![]() Join Date: January 5, 2002
Location: Guantanamo Bay, Cuba
Age: 39
Posts: 6,043
|
Quote:
__________________
[img]\"http://membres.lycos.fr/th8or/ZeroSigForIronworks.gif\" alt=\" - \" /> o.o; |
|
![]() |
![]() |
#9 |
Drow Warrior
![]() Join Date: April 6, 2002
Location: Canada
Posts: 254
|
Gee! Visual C++ is a breeze to use, the latest version at least. If you're masochist or broken, you can download the borland compiler for free from borland.com.
Why don't you enter all the info in a matrix (struct in C)? number of rows = number of students 1rst column: the names number of columns = number of results + 1 (total or average) + 1 (name, the 1rst column). This would work well only if the total/average is always calculated in the same way. Otherwise you would have to ask the user how much each result count on the final grade (ADD a row in your matrix for it, so # of row = # of students + 1). ie. test 1 = .3 of the final grade test 2 = .1 test 4 = .2 test 5 = .5 First ask for the number of students and the number of exams. Define the size and type of your matrix. Second, ask for value of each exam on the final grade. Create a first sub where you ask for each of the n student names, one by one. You might want to do another sub where the user can check for any mistake he could have made and correct them. Then do another sub where the user enters results, either of one column (exam after exam) or one row (students after students). Again, you can have a nice little sub where the user can double check and correct his input. Do the maths, export matrix with final grade to text file. (I don't know how to save and retrieve info, but it should be easy to convert to and from a text file.) [ 09-26-2002, 09:46 PM: Message edited by: flibulzbuth ]
__________________
Boo for president! |
![]() |
![]() |
#10 |
Dracolisk
![]() Join Date: January 5, 2002
Location: Guantanamo Bay, Cuba
Age: 39
Posts: 6,043
|
um... thanks... now... If ya' don't mind... what's the command you'd place instead of end1; to make it go back to the begging again and start over like resetting DOS or something wihtout actually restarting the computer... I'd like to know for future reference
![]() Thanks for the tips... I used my own kind of matrix tho [img]tongue.gif[/img] a spreadsheet ![]()
__________________
[img]\"http://membres.lycos.fr/th8or/ZeroSigForIronworks.gif\" alt=\" - \" /> o.o; |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
shifter advice and questions and a little cleric question too! | shamrock_uk | Neverwinter Nights 1 & 2 Also SoU & HotU Forum | 3 | 06-13-2004 09:41 AM |
Romance question...(a standard advice asking thread) | slicer15 | Baldurs Gate II: Shadows of Amn & Throne of Bhaal | 6 | 05-31-2003 02:36 PM |
thanks for the advice | WYZZ | Wizards & Warriors Forum | 1 | 02-28-2003 02:02 PM |
graphics question, advice sorely needed | enigma | Baldurs Gate II: Shadows of Amn & Throne of Bhaal | 2 | 03-04-2002 01:53 AM |
a question about advice I got on the forum | DavidL | Baldurs Gate & Tales of the Sword Coast | 1 | 07-21-2001 01:19 AM |