| | |
can u give me the code of this problem regarding c array..need badly..
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2008
Posts: 1
Reputation:
Solved Threads: 0
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
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
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..
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..
![]() |
Other Threads in the C++ Forum
- Previous Thread: Formmating 0's as whitespaces
- Next Thread: need some assistance with class
| Thread Tools | Search this Thread |
api array based binary bitmap c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






