954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Some question i cannot solve with C++

spothao
Newbie Poster
4 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
 

Try to figure it out for yourself. Come back with specific questions.

Sodabread
Posting Whiz in Training
290 posts since Nov 2009
Reputation Points: 103
Solved Threads: 42
 

I have done the last few question , but i totally didn't get what the first question asking and also the way to solve question 2 and 7 by using c-string

spothao
Newbie Poster
4 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
 

1. Pick the best RFP by number of requirements met, then by lowest cost if there are multiples with the same number of requirements met.

2. Use strcat and see if the result of each combination is equal to that (strcmp) of any other word in your dictionary.

7. This one's a bit trickier with a few possible solutions, but think about using one or more for loops, strncmp and perhaps strncpy, depending on how you want to do it.

Check here: http://www.cplusplus.com/reference/clibrary/cstring/strncmp/ for some decent c string documentation.

Sodabread
Posting Whiz in Training
290 posts since Nov 2009
Reputation Points: 103
Solved Threads: 42
 

Thanks , i try do it first with your advise there

spothao
Newbie Poster
4 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: