Ask your own question, for FREE!
Computer Science 25 Online
OpenStudy (anonymous):

how to use insert() in c++??? please help me to make any c++ syntax using insert() ... :D

OpenStudy (anonymous):

There are many insert() function in c++, so the question is ambiguous.

OpenStudy (anonymous):

its ok i just need any one example how to use it :)

OpenStudy (anonymous):

@Callisto :)

OpenStudy (callisto):

This website is probably something you need. Reference - C++ Reference: http://www.cplusplus.com/reference/

OpenStudy (anonymous):

i don't know how to used that c++ shortcut :/

OpenStudy (anonymous):

@Callisto but insert() is not included there

OpenStudy (callisto):

It is not a shortcut, but a member function of different classes. Search through that website by typing "insert()" in the search bar. Alternatively, you can google "insert() c++".

OpenStudy (anonymous):

i already tried to find in google but there are so many examples and they are not similar. it's confusing

OpenStudy (callisto):

It depends on what you are working on. For example, if you are working on the vector class, then look up the insert() function in the vector class.

OpenStudy (anonymous):

huh..

OpenStudy (anonymous):

i would like to ask if what is the importance of insert() and what will happened if i used this in a program ??

OpenStudy (callisto):

You can look up any insert() function there then. The implementation may not be the same, but they are usually doing the same thing.

OpenStudy (anonymous):

:/

OpenStudy (anonymous):

@ajprincess please help

OpenStudy (anonymous):

@wio sorry.. uhh that insert() is all about string :)

OpenStudy (callisto):

Then, google "string insert() c++".

OpenStudy (doc.brown):

std::string str="foobar"; std::string str2=" : "; str.insert(3,str2);

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!