|
|
Ça doit être quelque chose du genre:
#include <iostream>
#include <string>
using namespace std;
int main(){
void display_row(string str){
const int sizeOfArray =sizeof(str)+1;
char array1[sizeOfArray] =str;
// ou string str1 =str;
// ou strcpy(str, array1);
for(int z=0; z!=sizeOfArray; z++){
cout <<array1[z] <<endl;
}
return 0;
}
je n<ai pas essay/, mais ça devrais marcher...
|