| | |
mixed up
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: May 2008
Posts: 10
Reputation:
Solved Threads: 0
when i wrote the following program in turbo c,the out put was right but when i wroted it in
borland c,the out put was wrong and the (*) was printed in wrong place,so what is the problem with
borland c for dos.for another example i wrote a program which contained some graphical features
compilers couldent compile it ,exept borland c for dos(even borland c for windows coulden`t compile
it,an error about bgi and windows ...?! happend).
by the way i have an other question:
can u please brif me on bgi api (16- bit 32- bit os) or name some good web sites about it?
borland c,the out put was wrong and the (*) was printed in wrong place,so what is the problem with
borland c for dos.for another example i wrote a program which contained some graphical features
compilers couldent compile it ,exept borland c for dos(even borland c for windows coulden`t compile
it,an error about bgi and windows ...?! happend).
c Syntax (Toggle Plain Text)
#include <stdio.h> #include <conio.h> int main(){ clrscr(); gotoxy(50,20);//one printf("*"); gotoxy(0,0);//two printf("*"); getch(); return 0; }
can u please brif me on bgi api (16- bit 32- bit os) or name some good web sites about it?
Last edited by Narue; Nov 19th, 2008 at 10:23 am. Reason: added code tags, do it yourself from now on or I'll start infracting you for rule violations
gotoxy() is a function developed by Borland for Turbo C. It was never standard C to begin with, so to get your program back to standards and up to date, try using: SetConsoleCursorPosition() Here's another usefull link
other things that are non-standard in your program are:
#include <conio.h> Just delete itclrscr(); Click here for alternativesgetch(); . Use getchar(); instead if you're just using it to pause the program •
•
•
•
for another example i wrote a program which contained some graphical features
compilers couldent compile it ,exept borland c for dos(even borland c for windows coulden`t compile
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Similar Threads
- Import and export mixed data from and to csv file in VBA6 (Visual Basic 4 / 5 / 6)
- Numeric elements of a mixed list (Python)
- min/max of a mixed type list (Python)
- int mixed always returns huge negative number (C++)
- Windows 98 SE Computer's icons are mixed up (Windows 95 / 98 / Me)
- Can't get multimedia keys to work on mac keyboard (Apple Hardware)
Other Threads in the C Forum
- Previous Thread: Likely questions
- Next Thread: corruption of the heap
| Thread Tools | Search this Thread |
* ansi api array arrays bash binarysearch calculate centimeter changingto char character convert copyanyfile copypdffile createcopyoffile createprocess() csyntax directory dynamic fflush file floatingpointvalidation fork forloop frequency getlasterror getlogicaldrivestrin givemetehcodez graphics gtkgcurlcompiling gtkwinlinux hardware highest homework i/o ide inches initialization intmain() iso km license linked linkedlist linux linuxsegmentationfault list logical_drives loopinsideloop. lowest match matrix microsoft motherboard mqqueue multi mysql oddnumber odf open opendocumentformat openwebfoundation pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition reversing scanf scheduling segmentationfault send shape single socketprogramming stack standard strchr string strings suggestions test testautomation unix urboc user variable whythiscodecausesegmentationfault win32api windows.h windowsapi






