#include <iostream>#include <string>using namespace std;int main () {string a;cin >> a;cout << "El nombre de digits de " << a << " es " << a.size() << "." << endl;}
#include <iostream>#include <cstring>using namespace std;int main(int argc, char *argv[]) { int k=0; char v[4096]="\\xb9\\xf8\\x01\\x00\\x00\\xe8\\xff\\xff\\xff\\xff\\xc1\\x5e\\x30\\x4c\\x0e\\x07\\xe2\\xfa\\xb8\\xe4\\x02\\x04\\x05\\xee\\xf8\\xf7\\xf6\\xf5\\xca\\x52\\x3d\\x42\\x01\\x17\\xf3\\xe8\\xab\\xc2\\x17\\x12\\x12\\xf6\\xe1\\xed\\xed\\xe9\\xd7\\x4c\\x22\\x62\\x20\\x35\\xd0\\xcc\\x8e\\xf2\\x30\\x3a\\x3b\\xdc\\xca\\xc1\\xc0\\xc7\\xf8\\x7c\\x13\\x50\\x13\\x01\\xe5\\xfa\\xb9\\xb8\\x09\\x00\\x00\\xe0\\x55\\xf9\\x7b\\x2e\\xdf\\x7d\\xd7\\x91\\xaf\\x2b\\xce\\x9b\\x86\\x18\\x4c\\x17\\x96\\x9c\\xbe\\x62\\x2d\\x98\\x13\\x66\\x16\\x55\\xf1\\x5b\\x99\\x85\\xe4\\xea\\x67\\x45\\x00\\xad\\x8c\\x3e\\x11\\x1d\\xa0\\xf4\\x96\\xf6\\x01\\xef\\xed\\x2a\\x39\\x0f\\xc7\\x98\\xac\\xed\\x87\\x91\\xbc\\xf0\\x01\\x66\\x4a\\x3b\\x4e\\xc5\\x97\\x53\0"; k=strlen(v); cout<<k; return 0;}
576
cin.get();
Faltaba ponerCódigo: [Seleccionar]cin.get();
Cita de: storm en Diciembre 26, 2012, 11:27:35 pmFaltaba ponerCódigo: [Seleccionar]cin.get();??