menhitung panjang karakter tanpa strlen c++
codinganya :
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
string a;
cout<<"Masukkan Kalimat : ";getline(cin,a);
cout<<a<<endl;
cout<<"Panjang Karakter : "<<a.size();
return 0;
}
EmoticonEmoticon