We are close to introduce are first invention...
Rebels Projects For Bsc.IT-CS, Engg.IT, BCA
Final Projects for Bsc(IT/CS) in ASP.NET (with c#),Java,c++,PHP.
100% running code,Explanation.
It's not enough to do nothing... It's Time for us to do something...
Stay tuned...
camputer graphics program for ticking clock
void rotate( int figure[], int edges, double angle, int cx, int cy )
{
double x, y;
angle = -1 * (angle*3.14/180);
double cos_a = cos(angle);
double sin_a = sin(angle);
for(int i=0; i < edges; i++)
{
x = figure[2*i] - cx;
y = figure[2*i+1] - cy;
figure[2*i] = floor( (x * cos_a) - (y * sin_a) + cx + 0.5 );
figure[2*i+1] = floor( (x * sin_a)+(y * cos_a) + cy + 0.5 );
}
}
void drawClock(int,int,int);
void main()
{
int second_hand[4],minute_hand[4], hour_hand[4], edges = 2 ;
double angle;
int cx=300, cy=200;
int gd = DETECT, gm;
initgraph( &gd, &gm, "" );
int max_y = getmaxy();
clrscr();
cleardevice();
angle = -6;
second_hand[0] = cx ;
second_hand[1] = max_y - cy;
second_hand[2] = cx;
second_hand[3] = max_y - 320;
hour_hand[0] = cx;
hour_hand[1] = max_y - cy;
hour_hand[2] = cx + 90;
hour_hand[3] = max_y - 200;
minute_hand[0] = cx;
minute_hand[1] = max_y - cy;
minute_hand[2] = cx;
minute_hand[3] = max_y - 310;
cleardevice();
setbkcolor(WHITE);
drawClock(cx,max_y - cy,150);
setlinestyle(SOLID_FILL,0,1);
drawpoly(2,minute_hand);
drawpoly(2,hour_hand);
int i=0;
while(!kbhit()) {
setcolor(RED);
drawpoly(2,second_hand);
setcolor(GREEN);
drawpoly(2,minute_hand);
setcolor(BLUE);
drawpoly(2,hour_hand);
delay(1000); // set delay(10) to tick the clock fast
setcolor(15);
drawpoly(2,second_hand);
rotate(second_hand,edges,angle,cx,max_y - cy);
i++;
if(i%60 == 0) {
second_hand[0] = cx ;
second_hand[1] = max_y - cy;
second_hand[2] = cx;
second_hand[3] = max_y - 320;
drawpoly(2,minute_hand);
rotate(minute_hand,edges,angle,cx,max_y - cy);
}
if(i%720 == 0) {
i = 0;
drawpoly(2,hour_hand);
rotate(hour_hand,edges,angle,cx,max_y - cy);
}
}
getch();
}
void drawClock(int cx, int cy, int r)
{
setcolor(GREEN);
setlinestyle(SOLID_FILL,0,3);
circle(cx,cy,r);
int max_y = getmaxy();
int center[2] = {cx, max_y - 340};
for(int i=0; i
Very soon we are comes with RFID Projects. It's available with source code and design.
c++ history
The C++ programming language has a history going back to 1979, when Bjarne Stroustrup was doing work for his Ph.D. thesis. One of the languages Stroustrup had the opportunity to work with was a language called Simula, which as the name implies is a language primarily designed for simulations. The Simula 67 language - which was the variant that Stroustrup worked with - is regarded as the first language to support the object-oriented programming paradigm. Stroustrup found that this paradigm was very useful for software development, however the Simula language was far too slow for practical use.
Shortly thereafter, he began work on "C with Classes", which as the name implies was meant to be a superset of the C language. His goal was to add object-oriented programming into the C language, which was and still is a language well-respected for its portability without sacrificing speed or low-level functionality. His language included classes, basic inheritance, inlining, default function arguments, and strong type checking in addition to all the features of the C language.
The first C with Classes compiler was called Cfront, which was derived from a C compiler called CPre. It was a program designed to translate C with Classes code to ordinary C. A rather interesting point worth noting is that Cfront was written mostly in C with Classes, making it a self-hosting compiler (a compiler that can compile itself). Cfront would later be abandoned in 1993 after it became difficult to integrate new features into it, namely C++ exceptions. Nonetheless, Cfront made a huge impact on the implementations of future compilers and on the Unix operating system.
c++ code for temprature conversion
float f (float x) {
return ((9.0 / 5.0) * x + 32.0);
}
void main () {
float x, res;
cout > x;
res = f(x);
cout
c++ code for finding exponation value
include
int exp (int b, int e) {
int result;
result = 1;
while (e != 0) {
result = result * b;
e = e - 1;
}
return(result);
}
int main () {
int b, e;
cout > b >> e;
cout
c++ code for calender
typedef int Bool;
char whatDay (int);
Bool isLeapYear (int);
int numOfDaysInMonth (int,Bool);
void printHeader (int);
void printMonth (int, int&);
void skip (int);
void skipToDay (int);
void disaster ();
void main () {
int year, firstDayInCurrentMonth;
Bool leap;
int currentMonth = 1;
int numDays;
cout > year;
cout
WAP to print'xay'in place of every'a'in a string.
void main()
{
int i=0;
char str[100],x ='x',y='y' ;
printf("En ter the string\n:");
gets(str);
while(str[ i]!='\0')
{
if(str[i]= ='a')
{
printf("%c ",x);
printf("%c ",str[i++] );
printf("%c ",y);
}
else
{
printf("%c ",str[i++] );
}
}
getch();
}
16/01/2014
James Arthur Gosling, OC is a Canadian computer scientist, best known as the father of the Java programming language. Wikipedia
Born: May 19, 1955 (age 58), Calgary, Canada
Education: Carnegie Mellon University (1983), University of Calgary (1977)
On 23 May 1995, John Gage, the director of the Science Office of the Sun Microsystems along with Marc Andreesen, co-founder and executive vice president at Netscape announced to an audience of SunWorldTM that Java technology wasn't a myth and that it was a reality and that it was going to be incorporated into Netscape Navigator
At the time the total number of people working on Java was less than 30.This team would shape the future in the next decade and no one had any idea as to what was in store. From being the mind of an unmanned vehicle on Mars to the operating environment on most of the consumer electronics, e.g. cable set-top boxes, VCRs, toasters and also for personal digital assistants (PDAs). Java has come a long way from its inception. Let's see how it all began.
WAP to find out if a given number is a power series of 2 or not,without any loop and without using % modulo operator.
int pow2(float );//defining method with return type integer
void main()
{
int i,flag;
clrscr();
printf("En ter the number\n") ;
scanf("%d" ,&i);
flag=pow2( i);
if(flag)
printf("\n %d is power series of 2",i);
else
printf("\n %d is not a power series of 2",i);
getch();
}
int pow2(float j)//declaration of same above method
{
static float x;
x=j/2;
if(x==2)
return 1;
if(x
return 0;
x=pow2(x);
}
Click here to claim your Sponsored Listing.
Location
Telephone
Website
Address
Mumbai