Skip to content

Instantly share code, notes, and snippets.

@KIMBIBLE
Created December 3, 2017 05:26
Show Gist options
  • Save KIMBIBLE/857fe5ebdbe8ca98a0dee363dd9247ac to your computer and use it in GitHub Desktop.
Save KIMBIBLE/857fe5ebdbe8ca98a0dee363dd9247ac to your computer and use it in GitHub Desktop.

Revisions

  1. KIMBIBLE created this gist Dec 3, 2017.
    12 changes: 12 additions & 0 deletions getline1.cpp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #include <iostream>
    #include <string>
    using namespace std;

    int main()
    {
    string strBuf;
    while(getline(cin, strBuf))
    {
    cout << strbuf < '\n';
    }
    }