Skip to main content



      Home
Home » Newcomers » Newcomers » getline not working for eclipse.
icon10.gif  getline not working for eclipse. [message #1735046] Tue, 14 June 2016 17:49 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Jul 24 19:46:03 EDT 2025

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

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

Back to the top