Sign in

gwj / po_oopc · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • po_oopc
  • examples01-en
  • 02-string
  • string.cpp
  • Reformatted code
    c0b14c54
    Grzegorz Jabłoński authored
    2022-09-16 14:36:36 +0200  
    Browse Code »
string.cpp 227 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <iostream>
#include <string>
using namespace std;

string getword()
{
    string s;
    cin >> s;
    return s;
}

int main()
{
    cout << "Podaj slowo" << endl;
    cout << "Podane slowo to:" << getword() << endl;
}