I am unable to run even a simplest graphics program in C, even though when i compile the program it shows success but when i run it , it gives the error that the
BGI error: graphics not initialized...
I dont know where is the problem...can any one help plz
#include<stdio.h>
#include<conio.h>...
i wrote a program which is given below
#include<stdio.h>
#include<conio.h>
struct employee
{
char name[5];
char deptt[5];
int idcode;
float s;
};
void main()
{
struct employee emp[2];
int i,j;
clrscr();
for(i=0;i<2;i++)
{
gets(emp[i].name);
gets(emp[i].deptt);
scanf("%d",&emp[i].idcode)...
Hi people , i have just started using Bloodshed DevC++ 4.9.9.2 to write and compile the C/C++ programs. The problem is that its giving errors when there is no error in the program.... For example look at this program....
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr()...
Can any of you check my BCA xcam project to find any bug ? I just completed this stuff using help from internet (answers) not sure are they correct or not !
Help will really be appreciated :-)
Question 1:
Write a C program to create a calculator. The program will accept an arithmetic...
I recently installed TCpp 3.0 on my system.
I am intrested in doing a grpahics oriented project in C. But I am unable to use graphics.h. initgraph() does not seem to function!
After typing the following code:
#include<conio.h>
#include<graphics.h>
int main()
{ int gd=DETECT,gm...
I recently installed TCpp 3.0 on my system.
I am intrested in doing a grpahics oriented project in C. But I am unable to use graphics.h. initgraph() does not seem to function!
After typing the following code:
#include<conio.h>
#include<graphics.h>
int main()
{
Hi
I am providing a code here which is a bulls cows game. I have compiled it using gcc. The program runs fine, but the rand function always generates 8467 as the first number.
Earlier I had used turboc and compiled the prgram. That program selects a differant value everytime. But with gcc...
hello..
i've just recently begun withh c++ programming in linux, and i am using debian sarge(stable) and gcc 3.3.
my problem is that i am nor being able to use string variables, whenever i declare a string variable with
string *variablename*..
the compiler returns an error "variable string...
i want to know whats the problem i want to print the address of a initialised variable
#include<iostream.h>
int main()
{
int i;
int z;
z = &i;
cout<<"the address"<<z;
cout<<"\n";
cout<<"the value is"<<i;
return i;
}
the error
--------------------Configuration: a...
Hi
I am attaching a program that I wrote in C.
I want to display a timer on the screen which will run till main is called back.
The time should be displayed when the number guessed is correct. (With the final output).
Can I add background music to this program? Ias there any way? (I...
I wrote an encryption/decryption prog in c++ using the xor operator(im just a n00b)
suppose my input is
my name is dheeraj kumar.
then my encrypted form is
㵧≥㙁刁Ԁ幅㸵ጕȕൽĜᰄ鉏
when i decrypt it the output is
my name is dheeraj kumar.ÿš
i dont know how i got the extra 2...
hi,
suppose i hav a matrix multiplication program written in C... how do i find the time it takes to calculate the result. how do i do that? also, i need the syntax for both windows and linux... thk u..
code if necessary
/legolas
Hi guys , plz see this code for me
The problem lies in the Inserting of node portion.
#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<stdio.h>
struct linklist
{ int data;
linklist *next;
};
typedef struct linklist node;
void create(node...
#include<iostream.h>
void main()
{
int d;
char a;
cout<<"Please enter your Date of Birth In the following Format :";
cout<<"DD\n" ;
cin>>d;
switch(d)
{
case (1): a="One";
break;
case (2) :a="Two";
break;
case (3) :a="Three";
break;
default:a="Null 0000";
}
cout<<a;
}...
i got the following program frm somewhere and want to run it on my PC ...
i didnt have vga.h and vgagl.h files in my include directory .....
searched google but got only vga.h ....
NOT THE OTHER FILE ....
where can i get the other???
on entering no. above 30 it has some problems. If I go above 30 it shows wrong negative ans.
:?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?:
Can anyone tell me the program for DELETION FROM THE END IN LINKED LIST DYNAMICALLY ???? I need it urgently, since day after tomorrow is my board practical. Here's the program for DELETION FROM THE BEGINING, but i m not able to modify it for DELETION from THE END
Hi Guest we just wanted to alert you to a major change in the forum. We will no longer be allowing the posting of outgoing links. Please use the attachment feature to attach media to your posts.