Top.Mail.Ru
The C++ Community's Journal -- Day
? ?
The C++ Community's Journal -- Day [entries|friends|calendar]
The C++ Community

[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

[05 Feb 2002|07:28am]
[ mood | Image 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...

4 comments|post comment

[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 )
15 comments|post comment

Just joined [05 Feb 2002|04:57pm]
[ mood | Image nervous ]

I was wondering if anything knew anything about raidx sort or a bucket sort or how it sorts the individual columns

5 comments|post comment

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.)?
13 comments|post comment

navigation
[ viewing | February 5th, 2002 ]
[ go | previous day|next day ]
Image