Willing to do C/C++ programming homework

Archived from the original Sajha.com — preserved as posted, replies can no longer be added here.
Start a New Discussion
Archived Post

Hi guys, I am really strapped for cash right now so I am willing to do anyone's programming homework. The languages I cover are C/C++ and Java. I would need some cash of course. Thanks, GarbageGigo

garbagegigo · Oct 17, 2009 9:05 AM · 36,268 views

26 Replies · Showing 21 - 26
Page 2 of 2

lol constructor bhanya , that creates new obect hola, copy constructor bhanya , that copies the content to new object aswell hola You owe me 5 bucks !! src: http://www.learncpp.com/cpp-tu... Last edited: 22-Jan-10 04:08 PM

bange · Jan 22, 2010 4:08 PM

egg jam ple chai.. java ma dim hoi..c++ teti aunna..Object Oriented ko concept nai bujhne ta honi..hoina? set ra get method chai afai bujha hoi..alchi lago ke... public class Saman   {      String samanName;       int samanQty;             /**regular constructor**/          public Saman(String sName, String sQty)        {            samanName = sName;            samanQty = sQty;         }             /** copy constructor **/      public Saman(Saman s)      /** copy constructor always takes Class Object as parameter     {         this.samanName = s.getSamanName();         this.samanQty = s.getSamanQty();        /** Alternate methods          * Call regular constructor          * return(Saman (s.getSamanName(),s.getSamanQty());       }        public void testCopyConstruct()      {          Saman chauChau1 = new Saman("waiwai",10);  //calling regular constructor          Saman chauChau2 = new(chauChau1); //this will copy all the attributes of chauchau1                                                                             //to                      chauchau 2          chauChau2.setSamanName("rara"); //aba rara ni 10 wotai raicha bhane..kina feri 10 bhanera                                                                 //initialize garnu bhanera...tyo copy use garya hoi    } } aba yo program milyo milena chai thaha chaina hera....but concept chai testai ho.. aba bujhena bhane..gimme 5 more bucks..feri bujhaidimla..

bange · Jan 22, 2010 4:38 PM

wow...thanks!!i never heard it on C#....C++ ra Java ma mattra ho?

wai_wai · Jan 22, 2010 4:45 PM

khoi c# ta thaha chaina..but i think you should be able to  implement copy constructor the same way.

bange · Jan 22, 2010 4:56 PM

wai_wai, you are correct! There is no copy constrcutor in C#. If you want  to copy the values from the object, then you have to define your own method.. Let me know if you need an example to clarify this concept. Bange, your code looks perfect except that you didn't define accessor and mutator method!

hellCoder++ · Jan 22, 2010 9:07 PM

Hi Guys, never knew this thread would see so much activity. I don't have time to go through all the replies so if anyone wants any homework done, please send me an email directly at my email address: garbagegigo@gmail.com. Thanks,

garbagegigo · Jan 24, 2010 10:28 AM

This conversation is preserved exactly as it was on the original Sajha.com and can't accept new replies.

Start a New Discussion