Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

在 linux 下, gets() 一用就报警, ft, 请问怎么用linux+gcc 读一整行呢?

Posted by sunmoonstar at 2006-06-26 20:49:41 on Problem 2316
In Reply To:留个纪念,给使用cygwin的朋友 Posted by:blablabla at 2006-06-26 20:29:40
> cygwin没有包含GNU的C函数库,至少我的cygwin没有,所以不能用getline;
> 
> 主要说说关于臭名昭著的gets(),GNU的gets会自动舍去行尾的回车,但cygwin里的gets将回车保存在返回
> 的字符串中。小心。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator