Programming help?

Don't have 100 hours, or answered your question yourself? Ask for help and post your answers here!
Post Reply
Zedability
Posts: 987
Joined: Fri Jun 01, 2012 6:17 pm

Programming help?

Post by Zedability »

Any programming people here? I need to print out relations in a specific way. So say I have:

A B B C A A
-----------------------------
'1' '4' '4' '7' '1' '1'
'9' '3' '3' '5' '9' '9'

(sorry I can't figure out how to make it line up in this thing)

I need to develop an algorithm that would print:
A='1', B='4', C='7'
A='9', B='3', C='5'

without repeating the extra B's and A's

The problem is that the top row (the scheme) is stored in one vector of strings (myscheme), and the bottom rows (the tuples) are each their own separate vectors of strings, which are stored in a set (mytuples). So it's more complicated than just using the unique() std function or something.

And yes it has to be stored and printed that way.

Normally I don't ask for hw help on here, but one of my TA's quit and there's basically no TA hours to get help with these things.
User avatar
Cognoscente
Posts: 597
Joined: Tue Sep 25, 2007 4:50 pm
Location: Salt Lake Sizzle
Contact:

Re: Programming help?

Post by Cognoscente »

Just guessing.... C++?

Also, use the

Code: Select all

 tag.
Early to bed and early to rise
Precludes you from seeing the most brilliant starry nights
User avatar
Cognoscente
Posts: 597
Joined: Tue Sep 25, 2007 4:50 pm
Location: Salt Lake Sizzle
Contact:

Re: Programming help?

Post by Cognoscente »

Also, if you haven't used Stack Overflow yet, now's a great time to start. Every single professional dev I've worked with uses it on a regular basis. One of the most active and helpful resources for code questions anywhere.
Early to bed and early to rise
Precludes you from seeing the most brilliant starry nights
Zedability
Posts: 987
Joined: Fri Jun 01, 2012 6:17 pm

Re: Programming help?

Post by Zedability »

Sounds good.

Also, I figured it out. Because apparently all it takes is for me to actually ask for help and then my brain is like, "hold up, this is how!"
Amity
Posts: 138
Joined: Thu Jan 02, 2014 10:52 pm

Re: Programming help?

Post by Amity »

Ha, my brain does that all the time too.
Post Reply