Author Topic: c problems to be coded  (Read 4011 times)

0 Members and 1 Guest are viewing this topic.

Offline ospapapa

  • Member
  • Sr. Member
  • *
  • Points: 45
  • Posts: 333
    • View Profile
c problems to be coded
« on: December 26, 2008, 11:58:04 pm »
here are some freaky and challenging programming questions you can judge your skills upon

click to go to download page
albert said "he will come!!!"
You do not have permission to give points
point 0 Points

This topic did not receive points.

Offline Rohit Prajapti

  • Hard work pays off later
  • Member
  • Newbie
  • *
  • Points: 0
  • Posts: 14
  • Hard work pays off later
    • View Profile
c problems to be coded
« Reply #1 on: March 18, 2009, 10:31:36 pm »
I want to learn graphics in c
 
Can you tell me the name of a good book ?

Offline Legend

  • Member
  • Sr. Member
  • *
  • Points: 95
  • Posts: 431
    • View Profile
c problems to be coded
« Reply #2 on: March 18, 2009, 11:07:00 pm »
Quote from: Toyeca on March 18, 2009, 10:31:36 pm
I want to learn graphics in c
 
Can you tell me the name of a good book ?



budy try this

http://rapidshare.com/files/64790900/Introduction_to_C___Programming_and_Graphics.rar
       



Offline Rohit Prajapti

  • Hard work pays off later
  • Member
  • Newbie
  • *
  • Points: 0
  • Posts: 14
  • Hard work pays off later
    • View Profile
c problems to be coded
« Reply #3 on: March 19, 2009, 07:30:33 pm »
Thanks for link

Sir when i run the program given below. The output screen doesnot stays for even one sec but there is no error and warning in the program.
 
Can you tell me what is the wrong with this situation
 
PROGRAM
 
/* Sample program to draw a circle*/
#include<graphics.h>
#include<conio.h>
main()
{
  int gd=DETECT,gm;
  initgraph(&gd,&gm,""); /* initialization of graphic mode */
  circle(150,150,100);
  getch();
  closegraph(); /* Restore orignal screen mode */
}
/* End of program */

Offline kurosaki

  • Administrator
  • Super Member
  • *
  • Points: 652
  • Posts: 1342
    • View Profile
c problems to be coded
« Reply #4 on: March 19, 2009, 08:22:35 pm »
/* Sample program to draw a circle*/
#include<graphics.h>
#include<conio.h>
void main()
{
  int gd=DETECT,gm;
  initgraph(&gd,&gm,"D:/TC/bgi"); /* initialization of graphic mode */
  circle(150,150,100);
  getch();
  closegraph(); /* Restore orignal screen mode */
}
/* End of program */

two errors
1. main declared void
    u have not
2.set path for the bgi folder
    in my computer  c++ is intalled in d: drive so i have set path for d drive


and i have tested it so it will work 100%

still if u have problem then u are free to ask
« Last Edit: March 19, 2009, 08:25:14 pm by kurosaki »

Offline D*Evil

  • Member
  • Sr. Member
  • *
  • Points: 10
  • Posts: 264
    • View Profile
c problems to be coded
« Reply #5 on: March 19, 2009, 09:05:03 pm »
seems like a programming forum
ok!one probs from my side too plss.
i have made a programme on library system ok
when i compile it(Alt+f9)=giving no error
when i run it(ctrl+f9)=nothing appears ,like, that screen stays there only n no any other black screen !!!!

**********pls help******* :hi






Offline kurosaki

  • Administrator
  • Super Member
  • *
  • Points: 652
  • Posts: 1342
    • View Profile
c problems to be coded
« Reply #6 on: March 19, 2009, 09:19:49 pm »
Quote from: D*Evil on March 19, 2009, 09:05:03 pm
seems like a programming forum
ok!one probs from my side too plss.
i have made a programme on library system ok
when i compile it(Alt+f9)=giving no error
when i run it(ctrl+f9)=nothing appears ,like, that screen stays there only n no any other black screen !!!!

**********pls help******* :hi


seems very odd problem

though i didnt get ur problem very clearly

possible reason:

1.incorrect installation

2.output directory or include directory different

possible solution:

1.try to install it once more

2.check ur output directory


or if u can elaborate ur problem more than may be i or someone other than me can help

Offline D*Evil

  • Member
  • Sr. Member
  • *
  • Points: 10
  • Posts: 264
    • View Profile
c problems to be coded
« Reply #7 on: March 19, 2009, 09:24:42 pm »
i knew that it will not be clear but nevermind!
the probs was that no output screen comes up after when i run the programme
even if its not statin any error in compiling it(maybe it's linking)

1. write the programme
2. Alt+f9 = no error
3. ctrl+f9 = no output screen(simply that screen on which we write the programme

hope u now get it
« Last Edit: March 19, 2009, 09:25:03 pm by D*Evil »






Offline Rohit Prajapti

  • Hard work pays off later
  • Member
  • Newbie
  • *
  • Points: 0
  • Posts: 14
  • Hard work pays off later
    • View Profile
c problems to be coded
« Reply #8 on: March 20, 2009, 08:59:09 pm »
i have got your point about bgi screen but how can i set path for the bgi folder
because there is not anything wrong with my system.
 
thanks

Offline Rohit Prajapti

  • Hard work pays off later
  • Member
  • Newbie
  • *
  • Points: 0
  • Posts: 14
  • Hard work pays off later
    • View Profile
c problems to be coded
« Reply #9 on: March 20, 2009, 09:09:08 pm »
I have just carefully noted that
 
BGI error : Graphics not initialised

prints on the output screen.
 
What should i do?

Offline Debugg3r

  • Alumni
  • Super Member
  • *
  • Points: 131
  • Posts: 1409

    • MAIT
    • _
      IT
    • View Profile
c problems to be coded
« Reply #10 on: March 22, 2009, 11:07:32 pm »
oye!!! p***a ke pati.......

i think n sure too that this error is due to not adding this line in it....

Code:
Only registered users can see contents. Please click here to Register or Login.

(for a simple programme, i think)...

n let me know if m wrong smvere okiee.........

« Last Edit: March 22, 2009, 11:07:54 pm by Debugg3r »
Rahul Sahni
[MAIT Alumni]

Offline kurosaki

  • Administrator
  • Super Member
  • *
  • Points: 652
  • Posts: 1342
    • View Profile
c problems to be coded
« Reply #11 on: March 23, 2009, 04:34:57 pm »
Quote from: D*Evil on March 19, 2009, 09:24:42 pm
i knew that it will not be clear but nevermind!
the probs was that no output screen comes up after when i run the programme
even if its not statin any error in compiling it(maybe it's linking)

1. write the programme
2. Alt+f9 = no error
3. ctrl+f9 = no output screen(simply that screen on which we write the programme

hope u now get it


would u mind posting ur porgramme too I would like to check it on my system
for clearance


Offline kurosaki

  • Administrator
  • Super Member
  • *
  • Points: 652
  • Posts: 1342
    • View Profile
c problems to be coded
« Reply #12 on: March 23, 2009, 04:36:55 pm »
Quote from: Toyeca on March 20, 2009, 09:09:08 pm
I have just carefully noted that
 
BGI error : Graphics not initialised

prints on the output screen.
 
What should i do?

as mentioned by S-I-F-I-G -U-Y
initialise the graphics by line mentioned by him and include the graphics library if not included

 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49