#include <iostream> using namespace std; int main() { // I want to get a function here which clears screen before displaying this output... cout<<"***********************************************************"<<endl; cout<<"**********************Authored By:*************************"<<endl; cout<<" Mario Santana "<<endl; cout<<" madmax.santana@gmail.com "<<endl; cout<<"***********************************************************"<<endl; cout<<"***********************************************************"<<endl; cout<<endl; cout<<endl; cout<<"This is a simpe demonstration of the GNU-g++ Compiled C++ Program."<<endl; cout<<"The program was built by console module of GNU-g++ at Ubuntu Platform."<<endl; cout<<"Please press any key to exit."<<endl; cout<<"..."<<endl; // I want to get a function here which prompts the screen for input (Keyboard hit) // Also the function should not echo the input on screen. // In the end I want to put a function which exits the program, erases all the output off the screen and take the user back to exactly where he was... // That would possibly define the basics of a nice console program for linux. :D return 0; } |
Is there an IDE like MSVC++ in linux? |
#inlcude <curses.h> |
But may I know the reason? |
And how to download Code::Blocks? |
And I don't know the version of my G++... How to find that out??? |
g++ -v
t=x86_64-linux-gnu Thread model: posix gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) |
sudo apt-get install codeblocks
where do i get new libraries... |
apt-cache search somelibrary
it will show a lot of package, read those starting with 'lib'. If you find the wanted package you can install it: sudo apt-get install somelibrarypackagename
. If you already have that library installed it will say "somelibrarypackagename is already the newest version"Will Codeblocks automatically link the libraries |
is it a GUI package??? |
madmax@Mean-Machine:~$ sudo bash [sudo] password for madmax: root@Mean-Machine:~# apt-get install libcurses Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package libcurses |