![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Removing the " underline pointer?" and advance clrscr()?1.) I would like to ask how can I remove this "underline pointer" or I dont know what is is called... run this code and you will see that grey underline going around the square...
CPP / C++ / C Code:
2.) Is there any comand like clrscr(); but it doesnt delite all screen, just some..like only on "while" sentence or something like that... I would like this square to be drawn and then under a "while" sentence I would get some other stuff like writing some words, and then clearing them - just them, not the sqauare... I hope anyone can help me! Last edited by dsmith : 11-Nov-2004 at 17:30.
Reason: Please use [c] & [/c] for syntax highlighting
|
|||
|
#2
|
||||
|
||||
|
Quote:
Problem #1: If you aren't using Borland, this will probably not even compile. Since you are using a lot of non-standard functions (cprintf(), gotoxy(), textcolor() for example) you need to let us know what compiler you're using. Problem #2: If you are going to use the variable ch as the exit to your loop, you might want to try an input or assignment to ch so your program can actually exit. Solution #3: The function clrscr() clears the screen in Borland. Works fine when I used it. Info #4: Since you are using all C syntax, there is no need to include #include <iostream.h> and #include <windows.h>. All your I/O is coming from stdio.h and conio.h. Problem #5:The little grey line I think you're talking about is called a caret now. It used to be a cursor but M$ decided only the mouse pointer is now a cursor. Anyway, there are ways to turn it off but I can't remember at the moment. Try looking in your compiler manuals for functions dealing with cursor and maybe caret __________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
|
#3
|
|||||
|
|||||
|
Quote:
I have Borland c++. Quote:
I will do that later, but for now this is good for looping all the time for the square... Quote:
clrscr(); clears all screen... I need some function to clear only part of it...So square stays writen, so I can write that outside of the "while" sentance and it wont be delited... Quote:
Yes I know, I will need those libraries later. Quote:
I will try some search for caret |
|
#4
|
||||||
|
||||||
|
Quote:
Quote:
CPP / C++ / C Code:
Quote:
Otherwise you might be able to do it thru APIs Quote:
Quote:
Quote:
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
|
#5
|
|||
|
|||
|
Quote:
I am trying to do with this but cant make it... BTW: Here on the http://info.borland.com/techpubs/bcppbuilder/v5/updates/std.html Are only help files... Where do I get all those librarys and stuff to work with new things like visual stuff,...? |
|
#6
|
||||
|
||||
|
Quote:
Unfortunately I have no idea what could be wrong without a description of the trouble.Quote:
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
|
#7
|
|||
|
|||
|
Quote:
How can I put this in code for no cursor? I am trying some combination, and none worked... |
|
#8
|
||||
|
||||
|
Quote:
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The