Found error in String C++ inputs

Bug description:
line 11, i gave output to print the enter the string but it bypass the code

Expected vs Current Behavior:

Steps to reproduce:

Bug appears at this link: https://replit.com/@BALAKUMAR14/tutor-joes#main.cpp

Screenshot(s)/Screen Recording:

Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.58

Replit Profile: https://replit.com/@BALAKUMAR14

This category only needs Replit Editor.

2 Likes

What do you mean “bypass the code”?

@QwertyQwerty88 can you change the tag to C++?

1 Like

@BALAKUMAR14 change getline (cin,str); to cin>>str;

1 Like