Questions tagged [insertion]

place into or between other items in an enumeration

578 questions
0
votes
1 answer

Create and insert data into Objects in Sales Force?

I want to create and insert data into a Sales Force Object. How can I do that in the Sales Force free trial console?
user1536923
  • 7
  • 2
  • 6
0
votes
3 answers

Python string insertion

I remember learning that there is a simple way to insert string segments into other strings quite easily in Python, but I don't remember how it's done. For example, let's say I'm editing HTML with Python and it looks something like this: …
user1094565
  • 9
  • 3
  • 5
0
votes
1 answer

Insert Ajax.Updater content before specific element using insertion parameter

I thought this would be fairly simple but it turns out not to work as I thought it would or should. new Ajax.Updater('myContainer','/url/',{ insertion: {before: 'anotherElementId'} }); How is this done correctly?
SquareCat
  • 5,699
  • 9
  • 41
  • 75
0
votes
2 answers

How to call an INSERT query by name?

I've to clone a class ID #FORM.classid# several times but instead of writing the INSERT sql query each time I need it, is there any solution to just write it one time and call the query with its addClass name ? I wish I know how to code functions…
Stephane
  • 4,978
  • 9
  • 51
  • 86
0
votes
3 answers

C++ Insertion Sort Median Calculation Error

I'm encountering an error I've not seen before, that states that reference to things are ambiguous. I'm writing a small test program that calculates a running median. As the list grows, it recalculates the median. In this case, median means the…
Edge
  • 2,456
  • 6
  • 32
  • 57
0
votes
2 answers

Can't check first node's value with my target value in order to avoid duplication in my place_first function

As always being this problem comes from a book's exercises. Neither I am not studying data structures, nor the book is about that. But, there is a chapter that is "Dynamic Data Structures". I've already finished this chapter. But, I have problem…
mustafaSarialp
  • 265
  • 1
  • 7
  • 17
0
votes
1 answer

Given a pointer to a container, how would I add an item to it?

I'm trying to create an array which holds a pointer to a container at each element. The container is of type Queue and is basically a linked list queue. I want to add an item to the linked list at a given index but I can't figure out how to do…
0
votes
1 answer

overloading cascading insertion operator

Here are the instructions verbatim: String insertion/extraction operators (<< and >>) need to be overloaded within the MyString object. These operators will also need to be capable of cascaded operations (i.e., cout << String1 << String2 or cin >>…
user1363061
  • 105
  • 1
  • 4
  • 12
0
votes
1 answer

INSERT statement works only once

I asked something like this earlier, but now I ran better tests, and tried to analyze what the problem was. This is the ajax request: //start ajax request here// $.post('purchaseitem.php',{itemAmount:itemAmount, itemId:itemId}, function(data){ …
Khalid Okiely
  • 113
  • 2
  • 8
0
votes
1 answer

Implementing insertion sort, passing list to other class?

i posted a version of the code yesterday but i thought it could handle some improvement or something. the thing is im stuck again. as you can see im trying to sort a linked list and write it back to the text file. the first question would be, what…
serge
  • 366
  • 1
  • 4
  • 22
-1
votes
1 answer

According to my teacher the outer for loop repeats once in this algorithm . why?

This is the pseudocode for insertion sort. According to my teacher the for loop repeats once. Can someone explain why? for i<-2,n do aux<-v [i] j<-i-1 while aux=0 do v[j+1] <-v [j] j<-j-1 end while …
Mary
  • 11
  • 2
-1
votes
1 answer

why i have to pass newBst.root as argument to implement the preorder traversal method?

i am facing problem while implementing the preorder traversal , if i use newBst.root then it gives me expected output but while i donot use it then the output donot show expected result it throughs an error method preOrder in class…
-1
votes
1 answer

how to add a new field with a given condition in mongo db?

I wanted to insert a new field to all the documents in my collection named 'students' where the age is >19..but I am getting an error. I run the following command:- my_db> db.students.updateMany({age:{$gt:19},{$set:{'marks':9}}}) and the error…
m_anand
  • 1
  • 1
-1
votes
1 answer

how to insert into the list at the next odd index position

I have written the python code below to create a database: list = ["a","b","c","d","e"] while(True): print("1/insert") print("2/delete") print("3/quit") print("4/display") choice=int(input("enter your choice: ")) if choice==1: …
-1
votes
1 answer

Can't insert a node at the beginning of a linked list using a void function

I m trying to insert a newNode at the beginning of a linked list in C language. I have tried other methods such as returing the newNode from the insertAtBeginnning function and then setting the head as that newNode in the main function & that works…