Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
73% Quality Score
Upvotes Received
7
Posts with Upvotes
7
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #4K
~1K People Reached
Favorite Forums
Favorite Tags
c++ x 10
c x 6

6 Posted Topics

Member Avatar for hay_man

I am programming in C++ and am attempting to find the intersection of two strings, only the items common to both and thus return a third string with these items. Essentially, I am trying to write the code for the STL library set_intersection. To approach this problem I thought of …

Member Avatar for Micko
1
246
Member Avatar for hay_man

Here's a really simple problem. I understand the basic search algorithms however, is there a difference when implemeting them in regards to vectors or strings? I want to determine if a certain value using a sequential search, the code would look something like this; [code] #include <iostream> #include <fstream> #include …

Member Avatar for hay_man
1
106
Member Avatar for hay_man

I am using c++ and need to devise a method to determine the check digit of a credit card. The user enters the card no. as a string. The card no is then divided into blocks of length, x. these blocks are then added. I have the code to convert …

Member Avatar for Grunt
0
157
Member Avatar for hay_man

Hi, Hope you can help. The following is essentially a small problem of an overall project, i have been trying to work out how to divide an inputted string, into say blocks of 4 characters and then output these separate blocks on the screen. e.g. 1234567891234567 ----> 1234 5678 9123 …

Member Avatar for Ancient Dragon
0
234
Member Avatar for dannyfang

I too am stuck on this problem of converting a string to its integer equivalent. My lecturer suggested that Horner's method can be adapted to convert string characters into their integer values. E.g. "4123" becomes 4123. Would you have any idea on how to implement this or are there any …

Member Avatar for Dave Sinkula
0
333
Member Avatar for hay_man

Hi guys, hope you can help me here. I have to write a program which does a complete shuffle of an array. For example, it would replace the array {11,22,33,44,55,66,77,88} with the array {11,55,22,66,33,77,44,88} or 12 23 34 45 56 67 78 89 90 with 12 56 23 67 34 …

Member Avatar for tech2me
0
199

The End.