#include

  1. sauravgr8

    Unable to run graphics program in C..

    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>...
  2. nikhil ramteke

    simple c++ program

    watch the following code:- #include<conio.h> #include<iostream.h> int main() { int c=0,a=0,b=0; clrscr(); cout<<"c="<<c++<<"\n"; cout<<"c="<<c<<"\n"; b=a++ +c++ +c++; cout<<"a="<<a<<"\n"; cout<<"b="<<b <<"\n"; cout<<"c="<<c; getch(); return 0; } o/p:- c=0 c=1 a=1 b=2 c=3 plz tell...
  3. arunks

    plz remove error in my c program

    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)...
  4. R

    Bloodshed DevC++ gives errors...

    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()...
  5. anantkhaitan

    File handling using GCC/G++

    Friends point me where I m wrong. Code: Command for compilation : Error message(s):
  6. rakeshishere

    Post all:Funny Programming Source Codes HERE!!!

    I Knew so many but dont remember them:(...Please Post them all u know..I love programming
  7. eagle_y2j

    Help me over C project !

    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...
  8. morpheusv6

    Turbo CPP 3.0 help

    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...
  9. morpheusv6

    Turbo CPP 3.0 help

    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() {
  10. aditya.shevade

    Help needed in C, rand() function.

    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...
  11. G

    cant declare a string variable...

    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...
  12. Official Techie

    problems in programming language

    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...
  13. aditya.shevade

    How to add a timer and background music in a C program?

    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...
  14. I

    C++ question

    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...
  15. L

    time of execution of program, in C

    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
  16. M

    LInk List Problem , Immediate soln needed

    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...
  17. Maverick340

    Switch(not_working)

    #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; }...
  18. iinfi

    EDITED: C Graphics Programming help

    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???
  19. sourav

    Problem with C#

    on entering no. above 30 it has some problems. If I go above 30 it shows wrong negative ans. :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?:
  20. S

    C++ Program Q.

    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
Top Bottom