how to use insert() in c++??? please help me to make any c++ syntax using insert() ... :D
There are many insert() function in c++, so the question is ambiguous.
its ok i just need any one example how to use it :)
@Callisto :)
This website is probably something you need. Reference - C++ Reference: http://www.cplusplus.com/reference/
i don't know how to used that c++ shortcut :/
@Callisto but insert() is not included there
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++".
i already tried to find in google but there are so many examples and they are not similar. it's confusing
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.
huh..
i would like to ask if what is the importance of insert() and what will happened if i used this in a program ??
You can look up any insert() function there then. The implementation may not be the same, but they are usually doing the same thing.
:/
@ajprincess please help
@wio sorry.. uhh that insert() is all about string :)
Then, google "string insert() c++".
std::string str="foobar"; std::string str2=" : "; str.insert(3,str2);
Join our real-time social learning platform and learn together with your friends!