473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

in turbo c output is not clearing even after including #include<conio.h> and clrscr()

my first program was to print "welcome" on the screen and the second program was to print "sum of first 10 natural numbers" when i run the first o/p was welcome but when i run the second program o/p was "55lcome" i had included #include<conio.h> and clrscr(); also in my code. Same programs with same software tried in other computer o/p screen was cleared but in my computer it is not the same can anyone help about this......
Jan 15 '13 #1
2 3420
leecorp
10
The clrscr() is used to Clear the Output screen

When you call it the Output window Will clear like the cls command in Command Prompt

But if you put some Printing statements after the clrscr()
then that will be displayed later on screen

Look Again
Have a Nice Day
Jan 15 '13 #2
if clrscr() is not working then try
fflush(stdin)

Syntax for fflush () is
int fflush ( FILE * stream );

use stdin it means standard input
Jan 24 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Phil Powell | last post by:
I created a page that will be doing image resizing and manipulation, which seems to work (using GD library). However, upon returning to the page where the image has been changed, I still see the...
0
by: Mads Orbesen Troest | last post by:
Hi, If I have an XSLT sheet transforming elemens from the "myns" namespace into xhtml, the "myns" namespace is declared automatically in the output xhtml, even if not used. I can't seem to...
5
by: Binny V A | last post by:
Hello Everyone, I have been programming in C++ with borland compiler for a while now. But when I try to compile the same programs with other complilers like mingw, digital mars etc. there are...
7
by: git_cs | last post by:
Hey, guys and gals Somedays ago, I had asked for the DES algorithm in C language. Although I have written the algorthim in C myself, I am facing a peculiar problem, which I hope some of u guys and...
4
by: werD | last post by:
Hello, Ive been reading about cdata-section-elements b/c ive got a comments field that id like to inlcude some html in. For some reason the final output is not including any cdata tags though?...
3
by: ary | last post by:
I try to create a weblog host site! in this case i can't use cache for every page because that cause to be my Server ram full of caching page. but if I can save cache in hard disk my problem...
3
by: Zytan | last post by:
The Immediate Window is filled with debugging output from previous runs. Besides manually right clicking and clearing it, is there a programmatic way of doing this? Should I create and use a...
8
by: cyberdwarf | last post by:
Hi I need to print a report which will always output an even number of pages (this is for duplex printing). ie, if the report ends with an odd number of pages, I need to output a blank sheet... ...
11
AmberJain
by: AmberJain | last post by:
Hello everyone, Newbie here, PLZ HELP....... This is what I coded (it's very very simple, still I'm facing problem with this code) --------->...
4
by: shaieen | last post by:
#include<stdio.h> #include<conio.h> #include<string.h> main(){ typedef struct info { char fname(void),mname(void),famname(void); int age,cont; char adr; }...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.