Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » getline not working for eclipse.
icon10.gif  getline not working for eclipse. [message #1735046] Tue, 14 June 2016 21:49 Go to next message
ian Strickland is currently offline ian StricklandFriend
Messages: 3
Registered: June 2016
Junior Member
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: Wed, 15 June 2016 03:59]

Report message to a moderator

Re: getline not working for eclipse. [message #1735088 is a reply to message #1735046] Wed, 15 June 2016 13:24 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3799
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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.
Previous Topic:Custom binding xml for generating wsdl client classes using wsimport to work in Eclipse IDE.
Next Topic:UML2
Goto Forum:
  


Current Time: Thu Jun 20 19:46:02 GMT 2019

Powered by FUDForum. Page generated in 0.03131 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top