can u give me the code of this problem regarding c array..need badly..

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2008
Posts: 1
Reputation: iannemic is an unknown quantity at this point 
Solved Threads: 0
iannemic iannemic is offline Offline
Newbie Poster

can u give me the code of this problem regarding c array..need badly..

 
-2
  #1
Dec 19th, 2008
deleting first element of an array....
deleting last element of an array...
deleting middle element of an array...
inserting first element of an array....
inserting last element of an array...
inserting middle element of an array...
searching the 2nd highest positive even integer


thanks i need it...


thanks
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 182
Reputation: mrboolf will become famous soon enough mrboolf will become famous soon enough 
Solved Threads: 18
mrboolf mrboolf is offline Offline
Junior Poster

Re: can u give me the code of this problem regarding c array..need badly..

 
0
  #2
Dec 19th, 2008
No.

We won't do your homework for you. Read the forum rules, post your attempt and then ask for help (specifically).

Make sure you use code tags.
Last edited by mrboolf; Dec 19th, 2008 at 8:31 pm.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 1,132
Reputation: firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice firstPerson is just really nice 
Solved Threads: 144
firstPerson's Avatar
firstPerson firstPerson is online now Online
Veteran Poster

Re: can u give me the code of this problem regarding c array..need badly..

 
0
  #3
Dec 21st, 2008
I could help you write your code but I will do something even better . I will give you some hints of how to go about this so you can solve it yourself. And when you do, you will get the satisfaction of knowing that you did it and not someone else. So now here are the hints :

first to declare an arrray is the following:

datatype variable_name [constant size];

ex. int ary[100];

note:
when you declare an array of some size. its end size is its (size-1)

so on the example above the last element is ary[9];

This is so because the first element starts with 0 and not 1 ;

so to delete a last or first element you would....do something
(maybe...ary[99]=0; this would be the same as deleting)

and to insert you would ..do something. (maybe ary[0]=23

for the rest you should figure it out yourself. And if you still do not get it then post your problem with proof that you tried..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC