Question:
Can you give me the source code for inserting and locating elements in array for any programming languages?
?
2010-02-05 18:16:54 UTC
To all concern ,please give me the code that can LOCATE and INSERT elements into array. I will accept all source codes for any type of programming languages. Your greatest concern is highly appreciated.Thank you.
Three answers:
?
2010-02-05 19:12:06 UTC
C++ is good with that, it has dozens of ways to do either, depending on the representation of the array and the data that are being inserted/located. In trivial cases, it looks something like this:

find(a.begin(), a.end(), element);

a.insert(position, element);
2016-04-07 10:27:08 UTC
When you run the program, pass it args. Type this at the command line to execute it: java Blanks argument1 Argument2 Argument3
Gueule
2010-02-05 18:31:00 UTC
This seems like a job for SQL!



Locate data:

SELECT * FROM DATA_ARRAY WHERE (VALUE=value1)



Insert data:

INSERT INTO DATA_ARRAY VALUES (value1)


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...