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
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
220
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
100
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
151
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
223
Member Avatar for dannyfang

Hi, I'm a freshman in computer science and a new member to this forum. I'd like to convert the string representation of a number e.g "456" into its integer equivalent i.e. 456. As for character representation of single digits e.g. "6", I'm able to convert it to its integer equivalent …

Member Avatar for Dave Sinkula
0
327
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
196