d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Anyone Here? > Need Some Help With A C++ Program
Prev12
Add Reply New Topic New Poll
Member
Posts: 23,838
Joined: Feb 18 2009
Gold: 0.01
Feb 11 2013 04:01pm
Thanks for all the responses . Not home atm , will look at them in depth
But uh krza it seems too advanced lol
This is begineer c++ objected orientated
So background knowledge going into this part of class is basic io , arrays pointers functions from c and not much from c++ cept function overload, use namespace std , cout cin .

My friend suggested a second array set (same size as first) and something with boolean , does that work ?

This post was edited by Haxs on Feb 11 2013 04:06pm
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Feb 11 2013 04:07pm
Quote (Haxs @ Feb 11 2013 02:01pm)
Thanks for all the responses . Not home atm , will look at them in depth
But uh krza it seems too advanced lol
This is begineer c++ objected orientated
So background knowledge going into this part of class is basic io , arrays pointers functions from c and not much from c++ cept function overload, use namespace std , cout cin .

My friend suggested a second array set (same size as first) and something with boolean , does that work ?


Should work. Kind of the same method as the code I previously posted.
Member
Posts: 23,838
Joined: Feb 18 2009
Gold: 0.01
Feb 11 2013 04:09pm
Quote (SelfTaught @ Feb 11 2013 03:07pm)
Should work. Kind of the same method as the code I previously posted.


No clue what std vector is or what's in ur for loops conditions

This post was edited by Haxs on Feb 11 2013 04:10pm
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Feb 11 2013 05:17pm
if you're looking for an actual c++ response to this problem use Krza's or selftaughts as they use c++ to more if its potential. if you're looking for a simple way to do this for an intro course look into something i said. all its doing is looping through the array and if it finds a match bumps all other values down 1 element to erase the duplicate.
Member
Posts: 23,838
Joined: Feb 18 2009
Gold: 0.01
Feb 11 2013 08:22pm
Quote (AbDuCt @ Feb 11 2013 04:17pm)
if you're looking for an actual c++ response to this problem use Krza's or selftaughts as they use c++ to more if its potential. if you're looking for a simple way to do this for an intro course look into something i said. all its doing is looping through the array and if it finds a match bumps all other values down 1 element to erase the duplicate.


yea just got home
will look into this stuff
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Feb 11 2013 08:46pm
Go Back To Programming & Development Topic List
Prev12
Add Reply New Topic New Poll