alors voila
- include <iostream>
- include <stdlib.h>
using namespace std;
int main(int argc, char *argv[])
{
string s = "hello";
cout << s[2] << endl;
system("PAUSE");
return 0;
}
ce code sert a te montrer quelque chose de particulier concernant le type string
grace a ca tu peux donc creer ta fonction souChaine() sans problemes
je vais encore t´aider en te proposant une signature possible pour ce type de fonction
string sousChaine(string maChaine, int premiercaractere , int nombredecaractere);