![David Hemsworth on X: "In the tutorials today for C++ they went over stings discussing string lines and getline you can see the examples below. Of using strings couts and cin's. #CodeNewbie # David Hemsworth on X: "In the tutorials today for C++ they went over stings discussing string lines and getline you can see the examples below. Of using strings couts and cin's. #CodeNewbie #](https://pbs.twimg.com/media/E4aUZdAWQAQIQiW.png)
David Hemsworth on X: "In the tutorials today for C++ they went over stings discussing string lines and getline you can see the examples below. Of using strings couts and cin's. #CodeNewbie #
![How to use cin.get(), cin.peek() and cin.putback() in c++ programming. What is difference between cin amd cin.get() c++. | Medium How to use cin.get(), cin.peek() and cin.putback() in c++ programming. What is difference between cin amd cin.get() c++. | Medium](https://miro.medium.com/v2/resize:fit:617/1*baTyVvF1ZFWJAB1msrXRqA.png)
How to use cin.get(), cin.peek() and cin.putback() in c++ programming. What is difference between cin amd cin.get() c++. | Medium
![Read a line of string with getline(), a character with get(), output with put() via cin - C++ File Stream Read a line of string with getline(), a character with get(), output with put() via cin - C++ File Stream](http://www.java2s.com/example/cpp/file-stream/read-a-line-of-string-with-getline-a-character-with-get-output-w-a6999.png)
Read a line of string with getline(), a character with get(), output with put() via cin - C++ File Stream
![SOLVED: Consider the following C++ code: string str1; string str2; char ch; int index; cin >> str1; cin >> str2; cin >> index; ch = str1[index]; str1[index] = str2[index]; str2[index] = ch; SOLVED: Consider the following C++ code: string str1; string str2; char ch; int index; cin >> str1; cin >> str2; cin >> index; ch = str1[index]; str1[index] = str2[index]; str2[index] = ch;](https://cdn.numerade.com/ask_images/e4e7d9b124544d278df0343f2e4773cd.jpg)
SOLVED: Consider the following C++ code: string str1; string str2; char ch; int index; cin >> str1; cin >> str2; cin >> index; ch = str1[index]; str1[index] = str2[index]; str2[index] = ch;
![How to use cin.get(), cin.peek() and cin.putback() in c++ programming. What is difference between cin amd cin.get() c++. | Medium How to use cin.get(), cin.peek() and cin.putback() in c++ programming. What is difference between cin amd cin.get() c++. | Medium](https://miro.medium.com/v2/resize:fit:1062/1*dJ9VcFyBqqpjtGjQDKCtpA.png)