Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
clrscr
- Page 1
clrscr is usually given after declaration of variables. why ?
Programming
Software Development
14 Years Ago
by rocky2008
clrscr
() is usually given after the declaration of all variables. If it is given before the declaration(of variables), the compiler points out an error. Why is this due to ? Will there be any problem in allocating the required amount of memory if at all
clrscr
() is given before the declaration? Kindly reply to this question !! Thanks !!
Re: how to make clrscr() work
Programming
Software Development
19 Years Ago
by vegaseat
clrscr
() is a presumptuous Borland fetish. Not every user of your …
Re: please help me here!
Programming
Software Development
12 Years Ago
by Narue
clrscr
() is a non-standard function typically declared in the <… compiler supports both <conio.h> [i]and[/i]
clrscr
(), including that header will fix your error. However, since your… use of
clrscr
() is nonsensical anyway, my recommendation would be to remove it…
Re: please help me out with my c++ assignment!
Programming
Software Development
19 Years Ago
by jwenting
clrscr
() is a custom extension introduced by MSC.
Re: Numbers to words
Programming
Software Development
14 Years Ago
by Narue
>
clrscr
? at the beginning of the program? who does such a thing? Antisocial programmers who want to remove the output of all previous programs in the console window. I haven't made any secret of my disdain for this practice.
Re: Print "Hello world 1000 times" without using loop
Programming
Software Development
11 Years Ago
by TrustyTony
clrscr
is not standard c, this is just replacing normal loop with recursion, you can allways do that without too much difficulty, usually with increased memory use and running time. I can not see anything tricky here.How about not allowing recursion also and producing 1024 messages fixed. Maybe slightly more interesting.
Re: selection sort
Programming
Software Development
11 Years Ago
by tubzz
clrscr
(); int matrix[3][4]; int rowindex, colindex; cout<<&…
Re: Dev CPP Help
Programming
Software Development
10 Years Ago
by tankit260
clrscr
(); is not work in devcpp...why???????????
Re: clrscr is usually given after declaration of variables. why ?
Programming
Software Development
10 Years Ago
by RAJAT_3
This means that there is no conceptual reson for
clrscr
() to come after the declaration part. Its just an ISO norm. Am I correct ???
'clrscr' undeclared (first use this function)
Programming
Software Development
13 Years Ago
by jmangu
… in Dev-C++ (Windows OS) the following error message apears: '
clrscr
' undeclared (first use this function) int main() { int c; char… d;
clrscr
(); printf(" Example program for PSC232 \n"); setup(); printf…
Re: 'clrscr' undeclared (first use this function)
Programming
Software Development
13 Years Ago
by jmangu
I've just found a way to solve the problem. Include the stdlib library (#include <stdlib.h>;) and instead of
clrscr
(); code replace for system("cls"); and voilá it works.
clrscr(); and gotoxy();
Programming
Software Development
16 Years Ago
by playagain
Please help me how to use
clrscr
(); and gotoxy(); functions in other C Compilers?
Re: clrscr(); and gotoxy();
Programming
Software Development
16 Years Ago
by guy40az
…(STD_OUTPUT_HANDLE); SetConsoleCursorPosition(hConsoleOutput,dwCursorPosition); } // function definition -- requires process.h void
clrscr
() { system("cls"); }
Re: clrscr(); and gotoxy();
Programming
Software Development
16 Years Ago
by guy40az
in DEV C++ #include <windows.h> void gotoxy(int x, int y) { COORD coord; coord.X = x; coord.Y = y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_H ANDLE), coord); } the
clrscr
function should work
clrscr() code...???(urgent)
Programming
Software Development
16 Years Ago
by boyz
hey guys...can anyone write the code to clear the screen as
clrscr
() function does.... chk out this.... void main() { printf("\033[2J"); printf("\033[0;0f"); } but i couldn't able to undrstnd......can anyone xplain....
Need help with some errors in my homework? Something about clrscr();
Programming
Software Development
11 Years Ago
by Hyperion101
…Tigers win?"); tw = GetInteger();
clrscr
(); printf("How many games did…Rockets win?"); rw = GetInteger();
clrscr
(); printf("How many games did …many games did the Flyers win?"); fw = GetInteger();
clrscr
(); tp = tw / t * 100; rp = rw…
Re: Need help with some errors in my homework? Something about clrscr();
Programming
Software Development
11 Years Ago
by RainbowMatrix
Hey i think the problem is with the header files:
clrscr
(); and getch(); requires the header file conio.h i.e #include <conio.h>
Re: Need help with some errors in my homework? Something about clrscr();
Programming
Software Development
10 Years Ago
by HiHe
Just comment out
clrscr
(), it is sort of silly to use. Mostly a leftover from the rather outdated Turbo C.
Re: use of clrscr
Programming
Software Development
12 Years Ago
by Narue
… Like here? [code] void foo(void) { /* ... */ }
clrscr
(); int main(void) { /* ... */ } [/code] Or what …about here? [code] struct foo { int x;
clrscr
(); int y; }; [/code] What's your logical interpretation of …question. [QUOTE]why cannot we use
clrscr
() before initializing a variable in C?[/…
use of clrscr
Programming
Software Development
12 Years Ago
by tubby123
i have a doubt. why cannot we use
clrscr
() before initializing a variable in C? i mean, why wont this work ? void main() {
clrscr
(); int a,b; ---- ---- getch(); } It'll give an error saying , "Declaration is not allowed here " Logically speaking , you should be able to put a
clrscr
() anywhere right ?
Re: how to make clrscr() work
Programming
Software Development
17 Years Ago
by ssuryakiran
Friends,seems like many of us are having problem in using
clrscr
() function in DEV C++.We need to know the fact that functions call and return type values which are by default of void type in C but not in c++In c++ we need to tell the function what value is retuned too. So use void
clrscr
(void) instead of
clrscr
(). I hope this works.
Re: use of clrscr
Programming
Software Development
12 Years Ago
by Ancient Dragon
…;>Logically speaking , you should be able to put a
clrscr
() anywhere right ? Wrong. 1. Its [b]int[/b] main, not…. A block of code is one surrounded by { and } 3.
clrscr
() is a non-standard function found mostly in old ancient…
how to make clrscr() work
Programming
Software Development
19 Years Ago
by potential
guys, please help me... how do i make
clrscr
() work? my friend told me to include conio.c, but …...so i tried downloading conio.c...but the problem is,
clrscr
() still doesn't work in my pc but it works…
Re: how to make clrscr() work
Programming
Software Development
19 Years Ago
by frrossk
[QUOTE=potential]guys, please help me... how do i make
clrscr
() work? my friend told me to include conio.c, but …...so i tried downloading conio.c...but the problem is,
clrscr
() still doesn't work in my pc but it works…
alternative of clrscr() in C++
Programming
Software Development
16 Years Ago
by bhoot_jb
heyy friends.. i m a beginner in C++ and am currently workin wid a program.. just for
clrscr
(), i have to include the whole conio.h file in my program inorder to clear the screen.. so is there any alternative to
clrscr
()?? please throw some light on this topic.. :)
Re: alternative to clrscr()
Programming
Software Development
10 Years Ago
by deceptikon
… moment and consider *why* you need `
clrscr
` or any variations. It's my fairly…on a Windows system you can write a `
clrscr
` (all of the conio library, in fact)… relevant parts are: #include <Windows.h> void
clrscr
(void) { HANDLE sys_stdout = GetStdHandle(STD_OUTPUT_HANDLE); CONSOLE_SCREEN_BUFFER_INFO info; COORD…
Re: how to make clrscr() work
Programming
Software Development
19 Years Ago
by anastacia
…++ I USE #INLCUDE<CONIO.H> AND I USE
CLRSCR
(); TRY IT ON YOUR DEV C++. BY THE WAY CAN…
Re: alternative of clrscr() in C++
Programming
Software Development
16 Years Ago
by Lerner
… to do this or use a third party function like
clrscr
(). I'll be happy to learn along side you if…
Re: alternative of clrscr() in C++
Programming
Software Development
16 Years Ago
by bhoot_jb
… to do this or use a third party function like
clrscr
(). I'll be happy to learn along side you if…
Re: alternative of clrscr() in C++
Programming
Software Development
16 Years Ago
by Lerner
You've lised the most common options I'm aware of. I'd go with the
clrscr
() if I really had to clear the screen. My least favorite would be the system('cls'), because I always avoid system() calls if possible.
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC