Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,102 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,685 people online right now. Registration is fast and FREE... Join Now!




I need help

 
Reply to this topicStart new topic

I need help, insertion in an array with a specific algorithm

e_engineer
3 Oct, 2007 - 02:04 AM
Post #1

New D.I.C Head
*

Joined: 3 Oct, 2007
Posts: 3


My Contributions
hi i am a student i just begine in programming with c++ according to the algorithm that the instructor give us it is

for insert an element in an array i.e i have already the array and i want to insert an element on it

the algorithm

CODE
1 copy a[ins....right-1] into a[ins+1....right]
2 copy val into a[ins]
3 terminate  


help me please

This post has been edited by e_engineer: 3 Oct, 2007 - 03:10 AM
User is offlineProfile CardPM
+Quote Post

girasquid
RE: I Need Help
3 Oct, 2007 - 11:09 AM
Post #2

Barbarbar
Group Icon

Joined: 3 Oct, 2006
Posts: 1,266



Thanked: 14 times
Dream Kudos: 650
My Contributions
Can you show us some of the work that you've done to solve the problem yourself?

Because otherwise, we can't really help you.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 08:58PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month