hey amar(right??)

here I write code,(there may be some syntax error as it has been three years 
since i studied C) may provide you some help, you can ask me further if you end 
up in some error..

so go in turbo C first, open a new file give a relevant name :-)

#include<stdio.h>
#include<conio.h>
void main()
    {
    int a,b;
scanf("%d%d",&a,&b);    
c=a+b /* here u can  do -,* / operation
    printf("%d",c);
getch();
    }
for graphics you can refer to turbo C library itself and there are some code 
already given to start with a graphics file..
so you may type  a simple code to generate a circle of pericular circumference 
and put it in infinite loop like this

for (i=0;i>0;i++)
{
    circle(parameters);
}

and you can have a ball rolling on your screen, its as simple as that!!
ali alali <[EMAIL PROTECTED]> wrote:                                  1st thanx 
for sending
   2nd the problem  
          my teachers want us to write a program which a 6 years boy can learn 
form it how to \
           ( sum , subtract , mulitply ....etc)
          i can not imagine how to start in this program (may be i need a 
example)
          but as an out lining i want to but games (small ones )
           i may also need to use some graphics 
          BUT I  HAVE NEVER BEFOR CODED (USED) GEAPHICS NOR MAKE GAMES
          IN C++ AND THIS IS THE REAL PROBLEM
   3ed  what is OP.
   4th  i had write a few c++ prog. which dont deal with graphics
    
   THNX ALOT
    
    
    
   
 
 Nico Heinze <[EMAIL PROTECTED]> wrote:
           --- In [email protected], pakhi yan <[EMAIL PROTECTED]> wrote:
 >
 > well, C programming is easy,there are many ways to solve
 > one given problem, in your case if you wanna build a
 > maths function, it can be done through pass by value to
 > function or making logic in the main program.
 > 
 > ANCI C by balaguru sami is wonderful book for beginner
 > programmers, for graphics you can refer C graphics by
 > Yahswant kanetkar.
 <snip>
 
 Stop, stop, stop, stop, stop.
 
 The first paragraph above refers to some particular potential problems
 of the OP. However, we do not know whether these issues are what the
 OP does face. So we can only do guesswork.
 OP, please tell us _exactly_ what issues you have with your program(s).
 
 Second, regarding graphics it all depends on the OS you work on. There
 are some OS-independent graphic systems available, but the OP has not
 yet indicated whether he may, may not, must not, has to use one of
 them or whatever. Without further information again it's just
 guesswork we can do, and guesswork is the worst possible base for good
 and thorough work.
 
 Regards,
 Nico
 
 ---------------------------------
 Need a vacation? Get great deals to amazing places on Yahoo! Travel. 
 
 [Non-text portions of this message have been removed]
 
 
     
                       

              
---------------------------------
 Download prohibited? No problem! CHAT from any browser, without download.

[Non-text portions of this message have been removed]

Reply via email to