Posts

C++ Project Source Code

Image
   C++ is a very fast and strong language. Now-a-days many programming languages are in the market which offer much better graphics usability. In schools and colleges programming is started from C and C++. Because after learning it, you can easily pick many other languages. So here is a Snake Game Source Code which may help you in your project :-  #include<iostream.h> #include<conio.h> #include<iomanip.h> #include<stdlib.h> #include<time.h> #include<dos.h> int food_x=30,food_y=10,x=1,y=0,gameover=1,score=0,option; struct snake   { int snake_x;     int snake_y;      snake  *next;      }*end_part,*p,*r,*n,*mouth; char ch; void food(); void update(); void input(); void setup(); int main() {      r= new snake;        r->next=NULL;        r->snake_x=35;  ...