#include <iostream>
#include <string>
using namespace std;
int main() {
string dane;
cout << "Podaj w formacie cena=123: ";
cin>>dane;
size_t pos = dane.find('=');
if (pos != string::npos) {
string liczbaStr = dane.substr(pos + 1);
int cena = stoi(liczbaStr);
cout <<"Cena + 10 =" << cena + 10 << endl;
}else {
cout << "Brak znaku ="<< endl;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: