|
[05 Feb 2002|07:28am] |
| [ |
mood |
| |
distressed |
] |
oig. it is 7:30 am and i have been doing homework for 14 hours and i haven't slept because of COPY CONSTRUCTORS.
someone. help? please?
i keep trying and trying and trying. and it hates me....
everyplace i look they seem to do them differently... maybe i am going insane from lack of sleep. i do not. thank you... if i just knew what went with what and where i would be ok...
|
|
|
[05 Feb 2002|09:08am] |
I am taking my first programming class and this particular program is kicking my butt. I am having a problem with the cout/cin functions. I will put the code behind the lj cut thing.
( code hereCollapse )
|
|
| Just joined |
[05 Feb 2002|04:57pm] |
| [ |
mood |
| |
nervous |
] |
I was wondering if anything knew anything about raidx sort or a bucket sort or how it sorts the individual columns
|
|
| String problems and a new project |
[05 Feb 2002|07:08pm] |
Okay. Whenever I use the STL string instead of apstring that we use in my class to declare string objects, I'm getting problems. For some reason, my compiler (VC++6.0) won't recognize string as a datatype. I'll get a first error reading "'string' undeclared identifier" or sometimes, "'string' missing storage-class or type declarations" or something to that effect (on the program I'm doing right now I'm not getting it, so I can't tell you for sure).
New project in class! We have an alphabetized file of 348 names and scores. We need to read it in, and allow the user to input a name to look for, then perform a binary search to find the name and its corresponding score. I understand what a binary search is, but I'm unsure exactly how to use it. When I found the bsearch and binary_search functions though, he told me I have to do it without those, so all the finding needs to be done by code I write. Anyone have any tips?
Lastly, relating to that, what exactly are the bsearch and binary_search functions, and how are they used (arguments, what they return, etc.)?
|
|