Changeset 348 for cpp/frams/_demos/neuro_test.cpp
- Timestamp:
- 04/09/15 23:51:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/neuro_test.cpp
r288 r348 69 69 } 70 70 SString gen(argv[1]); 71 if (!strcmp(gen ,"-"))71 if (!strcmp(gen.c_str(),"-")) 72 72 { 73 73 gen=0; … … 98 98 { 99 99 if (no_impl) no_impl_names+=','; 100 no_impl_names+=SString::sprintf("#%d.%s",i, (const char*)n->getClassName());100 no_impl_names+=SString::sprintf("#%d.%s",i,n->getClassName().c_str()); 101 101 no_impl++; 102 102 } … … 104 104 { 105 105 if (init_err) init_err_names+=','; 106 init_err_names+=SString::sprintf("#%d.%s",i, (const char*)n->getClassName());106 init_err_names+=SString::sprintf("#%d.%s",i,n->getClassName().c_str()); 107 107 init_err++; 108 108 } 109 109 } 110 110 printf("\n"); 111 if (no_impl) printf("%d x missing implementation (%s)\n",no_impl, (const char*)no_impl_names);112 if (init_err) printf("%d x failed initialization (%s)\n",init_err, (const char*)init_err_names);111 if (no_impl) printf("%d x missing implementation (%s)\n",no_impl,no_impl_names.c_str()); 112 if (init_err) printf("%d x failed initialization (%s)\n",init_err,init_err_names.c_str()); 113 113 } 114 114 int steps=1; … … 119 119 { 120 120 n=m.getNeuro(i); 121 printf("\t#%d.%s",i, (const char*)n->getClassName());121 printf("\t#%d.%s",i,n->getClassName().c_str()); 122 122 } 123 123 printf("\n");
Note: See TracChangeset
for help on using the changeset viewer.