bonjour
je voudrais inverser un chaine . voila mon code . je ne sais pas pourquoi il me fait des erreurs .
Code C++ : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 private: System::Void btnInverseCar_Click(System::Object^ sender, System::EventArgs^ e) { int nNombre,i; String ^stChaine; String ^stChaineTempo[200]; stChaine = edtSaisie->Text; nNombre = stChaine->Length; for(i=0;i<=nNombre;i++) { stChaineTempo[i]= stChaine->Substring(nNombre-1-i,1); } }
Partager