Search
 
SCRIPT & CODE EXAMPLE
 

CPP

remove digit from number c++

std::string n;
int k;
std::cin >> n >> k;
if (k > 0 && k <= n.size()) n.erase(k - 1, 1);
std::cout << n;
Comment

PREVIOUS NEXT
Code Example
Cpp :: cpp fread 
Cpp :: zsh: segmentation fault ./provided_files.exe erosion X . 
Cpp :: https://stackoverflow.comInstance of a Character in a String c++ 
Cpp :: the question for me 
Cpp :: comentar todas linhas de uma vez vs code 
Cpp :: How to execute a command and get return code stdout and stderr of command in C++ 
Cpp :: Qt asynchronous HTTP request 
Cpp :: c# unity rendering object 
Cpp :: estimateaffine3d example c++ 
Cpp :: how to use #define c++ 
Cpp :: c++ correct upto 3 decimal places 
Cpp :: how to compile with libstdc++ fedora 
Cpp :: error c4001 
Cpp :: fibonacci sequence c++ 
Cpp :: cpp Case value is not a constant expression 
Cpp :: delete an dynamic array 
Cpp :: create a table using pointers in C++ 
Cpp :: do c++ ints neeed to be initlaized 
Cpp :: inside information subtask 2 
Cpp :: algorithm map values 
Cpp :: c++ unordered set count 
Cpp :: python Difference Array | Range update query in O(1) 
Cpp :: play sound opencv video c++ 
Cpp :: c++ hsl to rgb integer 
Cpp :: sort in descending order c++ 
Cpp :: get player pawn 
Cpp :: C++ Enumeration Type 
Cpp :: std::string(size_t , char ) constructor: 
Cpp :: c++ compile to msi 
Cpp :: how to run a cpp file in visual studio 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =