如何使用ubuntu版本在C ++程序中运行字符串功能..... [英] How can I run a string functionalities in C++ program while am using ubuntu version.....

查看:116
本文介绍了如何使用ubuntu版本在C ++程序中运行字符串功能.....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图在ubuntu中运行c或c ++中的sring相关程序时它不支持它并且它不支持headerfiles..conio.h ...如果我想在ubuntu中执行我的程序该怎么办? ..还有任何额外的包安装..



我尝试过:



i尝试安装crusers.h包

when am trying to run a sring related program in either c or c++ in ubuntu its not supporting and it does not supporting headerfiles..conio.h ...what do i do if i want to execute my program in ubuntu...is there any additional package to install..

What I have tried:

i tried by installing crusers.h package

推荐答案

如前所述 conio.h 是一个特定于编译器套件的头文件介绍通过Turbo C for MS-DOS,后来也被微软用于他们的C编译器。



对于Linux上的类似功能,你可以使用像宣布ncurses 6.0 - GNU项目 - 自由软件基金会(FSF) [ ^ ]。



有使用nc实现 conio.h 的项目urses: conio.h的Linux c ++实现SourceForge.net [ ^ ]。



如果您只需要阅读控制台输入,请使用 Ubuntu Manpage:fgetc,fgets,getc,getchar,gets,ungetc - 输入字符和字符串 [ ^ ]。



使用C ++你也可以使用< a href =http://www.cplusplus.com/doc/tutorial/basic_io/>基本输入/输出 - C ++教程 [ ^ ]。
As already mentioned conio.h is a compiler suite specific header file introduced by Turbo C for MS-DOS which has been later adapted also by Microsoft for their C compilers.

For similar functions on Linux you can use a curses library like Announcing ncurses 6.0 - GNU Project - Free Software Foundation (FSF)[^].

There is a project that implements conio.h using ncurses: Linux c++ implementation of conio.h download | SourceForge.net[^].

If you only need to read console input, use Ubuntu Manpage: fgetc, fgets, getc, getchar, gets, ungetc - input of characters and strings[^].

With C++ you can use also use Basic Input/Output - C++ Tutorials[^] which is supported by all compilers.


这篇关于如何使用ubuntu版本在C ++程序中运行字符串功能.....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆