ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
string printString(string s, char ch, int count) { // Your code goes here int cnt=0; int n=s.length(); string ans =""; for(int i=0;i=count ){ ans += s[i]; } if(s[i]==ch)cnt++; } return ans;
string printString(string s, char ch, int count) {
// Your code goes here
int cnt=0;
int n=s.length();
string ans ="";
for(int i=0;i=count ){
ans += s[i];
}
if(s[i]==ch)cnt++;
}
return ans;