473,395 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

using getline option in dev C++

I am using Win Xp and devc++. But there is problem using getline with cin. It unable to read the total string and the cursor jumped automaticaly to the next line. Can you please suggest me how to take a total line of text in devc++.
Oct 12 '07 #1
2 2514
RedSon
5,000 Expert 4TB
Moved to the C++ forum.
Oct 12 '07 #2
Ganon11
3,652 Expert 2GB
Can you show us some code? I used to use Dev C++ all the time and never encountered problems with getline.
Oct 12 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Fred H | last post by:
Hi I'm trying to write a more or less fool proof method of getting lines of text from either standard input (cin) or files (ifstream). It needs to be fool proof for later use, since I can be...
6
by: Simon Gibson | last post by:
Hi there, im trying to write a program where you can write reports and save them into an array. im having problems with getting the string into an array tho it seems to be skipping over the...
2
by: Peter Gordon | last post by:
Is using getline with a fstream reference covered in the standard? I have three C++ compilers on my system. Two of them compile the code below without warnings. The third returns the following...
7
by: Greg | last post by:
I am trying to convert an older console application written in C to a visual application using several Borland VCL components (open and save dialogs). I am declaring input and output stream...
2
by: manwanirg | last post by:
the function getline is a public member of istream and cin.getline can be used. Since ifstream is publicily derived from istream, getline shall be available in ifstream as well. However,on solaris...
3
by: Wilson | last post by:
hi, one aspect of a program i am creating needs to extract a certain line of text from a simple ".txt" file. However i can only find a way of extract everything present in the file using i/o...
3
by: Gary Wessle | last post by:
Hi I have a method A which have a loop, in that loop, another method B is called, B opens a file and does getline till found something interesting, does something with it and return void. then...
15
by: rEvolution27 | last post by:
I'm a c++ newbie here, trying out some stuff and when I try to compile this: void create() { char name; cout << "Creating a new timetable /n Please type a name for this timetable"; cin >name;...
4
by: tushar.saxena | last post by:
Hi, I'm trying to read a file using the istearm class (I cant use ifstream since the input might be a file or it might be stdin). istream *input; // Add checks for file name here, else use...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.