![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 | |
|
Newbie
Join Date: Apr 2006
Posts: 15
Rep Power: 0
![]() |
Quote:
|
|
|
|
|
|
|
#12 |
|
Professional Programmer
|
Because, from what I understand, conio.h (which is a borland file, doesn't even work for me in Dev-C++) is not included with Linux. You would need to use the appropriate header file for Linux to get clrscr() compatible with Linux.
Newbie questions are just fine, as long as you put a little research into your question (or answer for that matter)
__________________
The world's first athletic computer geek! The home of PrProgramsStudios How not to post a question: <-- Please don't reply |
|
|
|
|
|
#13 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Dev-Cpp has a (somewhat raped) conio.h. Woiks fine here. Except on my Braille output device, of course. Normally, I just use the console IO from Windows for my non-portable stuff. Hell to have to write 5 lines of code to clear the screen, but what can I say?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#14 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 6
![]() |
i believe (i may be wrong) that conio.h has been deprecated. it's good to get in the habit now of writing portable code. what dawei is saying is that it may work on your computer in your development environment and all that happy shit, but may have weird results on other systems (like crashing). it's like telling someone on a rotary phone to "hit *67" to call back, it's not portable. in college even this may come back to bite you in the ass if whomever is grading your stuff is running on a non-compliant system. even worse in the professional environment.
__________________
i put on my robe and wizard hat... Have you ever heard of Plato, Aristotle, Socrates?...Morons. |
|
|
|
|
|
#15 |
|
Newbie
Join Date: Apr 2006
Posts: 15
Rep Power: 0
![]() |
how is one to know what is portable and what isnt? is that something you are taught, or something you just figure out with use of programs? i mean, i think its kinda ridiculous and a waste of time to make large programs that you are unsure of there running capabilities...
|
|
|
|
|
|
#16 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
There is a thing called the standard library. THAT is what is portable. Sometimes you don't want/need portable. That's fine too, in that case it helps to mention what OS and system you want your code for.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
#17 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|