Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

récupération de tab de char

Featured Replies

Posté(e)

bonjour tout le monde,

voila mon code

string leopard("salut");

string leopard2("toto");

string leopard3("tata");

vector<char> buffer;

std::copy(leopard.begin(),leopard.end(), std::back_inserter(buffer));

buffer.push_back('\');

std::copy(leopard2.begin(),leopard2.end(), std::back_inserter(buffer));

buffer.push_back('\');

std::copy(leopard3.begin(),leopard3.end(), std::back_inserter(buffer));

buffer.push_back('\');

buffer.push_back('\');

maintenant aprés le remplissage, je veux savoir comment récupérer mes chaine de caractères

merci d'avance

Posté(e)

tu veut les recupéré sous quel forme ? char* ? string ? vector de char séparé ?

Dans tout les il suffi de reprendre tes caractere un a un en prennant le "/" comme séparateur non ? y'a plein de doc sur les fonction de traitement de chaine de caractere.

Je comprend pas trop le but mais, si tu veut stocker tes chaine sous forme de char, pourquoi ne pas avoir fais un vector de char* ? ou un vector de vector a la limite ^^ plutot que d'avoir a géré la decoupe avec les /

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.