getline not working for eclipse. [message #1735046] |
Tue, 14 June 2016 17:49  |
Eclipse User |
|
|
|
Hey guy's. completely new to eclipse, have not ever used it before, but i have noticed that the getline(std::cin, name); apparently does not work on Eclipse mars.2.
Even when i am using, using namespace std; it does not recognize that i am wanting to input into cout
Coding example:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello what is your name" << "\n";
getline(cin, name);
cout << "ohhh what a great name!"
return 0;
}
again just started with C++ and Eclipse so my knowledge is that of a grade-schooler heh.
[Updated on: Tue, 14 June 2016 23:59] by Moderator
|
|
|
Re: getline not working for eclipse. [message #1735088 is a reply to message #1735046] |
Wed, 15 June 2016 09:24  |
Eclipse User |
|
|
|
On 06/14/2016 03:49 PM, ian Strickland wrote:
> Hey guy's. completely new to eclipse, have not ever used it before, but
> i have noticed that the getline(std::cin, name); apparently does not
> work on Eclipse mars.2. Even when i am using, using namespace std; it
> does not recognize that i am wanting to input into cout
>
> again just started with C++ and Eclipse so my knowledge is that of a
> grade-schooler heh.
For C/C++ questions, please post in the Eclipse CDT forum.
|
|
|
Powered by
FUDForum. Page generated in 1.63897 seconds