i reckon .. his got terrible writting tooOriginally posted by ...
i mean, wtf..new lecturer writing in a comp lecture?!!?!?!??!?!
Students helping students, join us in improving boredofstudies.org by donating and supporting future learners!
i reckon .. his got terrible writting tooOriginally posted by ...
i mean, wtf..new lecturer writing in a comp lecture?!!?!?!??!?!
you could have a student class that has all the info (name, id, avg mark, grade etc). you could keep them in a linked list ordered by avg mark (ie highest mark at the start of the list, lowest at the end). finding the highest would be O(1), finding the lowest would be O(N) but easy (just traverse to the end), printing out the summary would be easy, just print out the excellent heading, then traverse the list printing till you get "good" mark, print the good heading, traverse and print and so on.Originally posted by ND
Hmmm not sure how i'm gonna do the bonus...
not to sound like your parents but: thats true but in the harder subjects make sure you understand all the stuff covered in the week, otherwise its too much to study for. like comp225, none of the concepts are particularly hard, theres just a lot of them you need to remember.Originally posted by Rahul
i havent used them yet...comp is studpid...you dont need to "study" till before the finals....just need to do assignments.
i prefer doin assignments.
it depends on the compiler. some will just warn you about it, some will error out, in some languages its standardized that you must have it, im not sure about c++ and cant be arsed checking. the reaon its there is so the compiler can check the arguments for each function call are of the correct type. c has all functions implictly declared to return an int, implicit function declarations are the tool of the devil though. its considered sloppy not to put prototypes in. an easy way to avoid having to type out the prototype is to declare the function before it is used in the source file. say i have supplementary functions foo() and bar() used by main(), if my source file is laid out like thisOriginally posted by Wacky
scroll down a lot "You are required to give the definitions of declarared user-defined functions"
Don't you need that for the program to compile in the first place?
i think its just a guide to how you might want to do it, im 99% sure you wouldnt be penalised for processing and outputting as you read them in, but mail your lecturer to be sure.Originally posted by Wacky
Does the comment at point 1 mean that we have to process it between point 1 and point 2 (i.e. first do all the processing, then after point 2 do only outputting and no processing), or point 1 and the end (i.e you can do processing everywhere)?
so true... just submit the template... as long as you submit something its all goodOriginally posted by jezzmo
*phew*. it's not just me.
i think this weeks exercise is one of those things im just going to put a "I tried but failed" comment in my file. Not that I really have tried...but the failing part is true.
you can help me!!Originally posted by pb
I've done half of Section 1 of the assignment. I wanted to do it early to get it out of the way, but im lost already lol.