What does hook mean in programming language?
A hook is a method of interposing a piece of code in front of another piece of code, so that the first piece of code executes before the second piece of code, giving the first piece of code an opportunity to monitor and/or filter the behavior of the second piece of code. An example might be a mouse hook, allowing the hook code to monitor the mouse while at the same time preserving the functionality of the original mouse event processing routine.
The default case.
an object-oriented database
Which function is used to read data from the console?
The scanf() function in the <stdio.h> C standard library header.
What are the main uses of the Healthcare EDI program?
Healthcare EDI Solutions program has two main uses; firstly, it provides Chain Management (CM) and secondly, it also provides health care EDI technology claims management and Patient Information Exchange (PIE).
How can you use for loop when the number of iterations are not known?
It doesn't matter if you know the number of iterations or not, the for-loop is the same. Here is an example:
for (leave= 0; ! leave; ) {
/* read from file, on EOF set leave= 1; */
}
Yes. The for loop is not constrained to be used for simple counting tasks. You can, for example, have the control variable be a pointer an walk it through a tree. All you need to know is that the loop expression is executed at the end, followed by the test expression. Nothing in the spec says these have to be integer counting variables.
How are the data elements of a structure accessed and processed explain?
The data elements of a structure are laid out according to the order they are declared. Padding bytes may also be inserted between members to ensure all members are correctly aligned. Memory alignment can be user-defined, however it's generally better to align objects according to the underlying architecture. For instance, on a 32-bit system the underlying architecture has a 4-byte word length, thus an object that is equal or greater in length is best aligned upon a 4-byte boundary to keep memory access cycles to a minimum. Types that are smaller than the word length are usually aligned so that they do not cross a word boundary, such that a single 4-byte word can store 4 char types, 2 shorts, or 2 chars and 1 short. If the total size of the structure crosses a word boundary, padding bytes are inserted after the final member so the total size is an exact multiple of the word length. However, if the total size is less than a single word length to the extent that two or more structures may fit within a word, no padding bytes are required.
Given that each structure member is positioned at a constant zero-based offset from the start address of the structure, the compiler can use trivial pointer arithmetic to access the individual members of an instance of the structure, just as easily as it can calculate the address of an array element from its zero-based suffix (index).
#include<iostream>
#include<sstream>
int main()
{
unsigned num;
while (true)
{
std::cout << "Enter a number: ";
std::string input;
std::cin >> input;
std::stringstream ss;
ss << input;
if (ss>>num) break;
std::cerr << "Invalid input.\n";
}
for (int i=0; i<num; ++i)
std::cout << "Well done!\n";
}
Sorry, use what?
"Addends" are what you add together to get a sum.
Call by value in c programming?
Its way of passing arguments to a function.In this method the value of actual arguments(the arguments in the function call)remains unchanged. changes that we make are effected only to the formal arguments.
eg.
#include
main()
{
int a,b;
printf("enter two numbers");
scanf("%d %d",&a,&b);
modify(a,b);// function call the parameters a and b are actual arguments.
printf(" a and b in the main %d and %d",a,b);
}
void modify(int a,int b)// function header the parameters no1 and no2 are called as formal arguments.
{
a=a*3;
b=b*3;
printf(" a and b in function %d and %d",a,b
}
output:enter two numbers3
2
a and b in function 9 and 6
a and b in the main 3 and 2.
this is a program to multiply 3 to the numbers given by the user . here we use function and the arguments are passed by call by value method.here the value of the formal arguments are altered withinthe function but no change happens to the actual arguments . the values in the main does change even after the function call.
Why does a 93 Caprice engine seem like the fuel shuts off at times and run great other times?
My 93 Caprice started with a significant hesitation, that eventually morphed into a no run condition. I replaced the distributor cap and rotor, ignition module, ignition coil, fuel pump and fuel filter all to no avail. I had to have the car towed into a repair facility where they diagnosed the problem as a faulty pickup coil (located on the distributor shaft below the plate where the ignition module mounts. The car hasn't quit running since. Good Luck! Start with the fuel filter, either on the firewall or in the fuel line under the car. Do you have water in the gas? Are your injectors clean? Are your air filter, PVC valve clean? A lot more info required here. try the map sensor , it can be a vaccuum leak and not the fuel at all . If this doesn't solve the problem you should try the control module . Most modules when bad seem like the fuel is cutting off when actually it is the spark . The in-line fuel filter under the driver's side of the car may be dirty or clogged. Be careful replacing it b/c it spurts gasoline for a couple seconds. Keep track of the fuel guage also, if it is less than half (usually a quarter tank) and this symtom occurs, the fuel pickup in the fuel tank can be off by this much and the fuel will slosh in the tank and not stay under the pickup hence the cutoff of fuel symptom. Occurs on hard left corners when all the fuel flows to right,due to pickup orientation. The in tank baffle can break (there glued on the plastic ones)and cause this also. The harder the left, the more the cut off of fuel to the point of stalling the motor. Replacing the fuel pump and sender and/or fuel tank would be the cure if this proved to be the reason. I also keep my 91 at least half full of gas because of the known issue of poor baffleing on the stock plastic tanks, guess they never figured anyone was gonna put a performance suspension and 450 HP in one eh... lol One other thing needs to be considered with this type of problem is that after about 75,000 miles the throttle body develops a fairly significant carbon build up. You can clean it yourself or a Chevy dealer will clean it for under $200. If you choose to clean it yourself I recommend you spend some time at a junkyard and practice on one of their cars so you have an idea of what you are getting into. VBD Could be an electrical connection. I though my problem was fuel oriented too, but worked great when I fixed a similar sounding problem by replacing the distributor cap/rotar. Ran great and smooth afterwards. Startup better too.
In my system C language does not support for fullscreen mode why?
Your question has nothing to do with C language, it's about your Windows' DOS-compatibility (or incompatibility).
Implementation of LZW compression algorithm in C?
{
unsigned char **dict;
int *dlength;
unsigned char p[80], temp[80];
char c;
int plength,i,j,k,diff,cd;
plength=1;
cd=256;
p[0]=EOF;
dict= (unsigned char *)malloc(99999); //Allocating memory for Dictionary
if(dict == NULL)
printf("Unable to allocate memory \n");
dlength=(int *)malloc(99999);
for (i = 0; i < 99999; i++) {
dict[i]=(unsigned char *)malloc(60);
if(dict[i]==NULL)
printf("Unable to allocate memory \n");
}
for (i=0;i<256;i++) //loading dictionary with ASCII set
{
dict[i][0]=i;
dlength[i]=1;
}
while ((c = fgetc(Fpt)) != EOF)
{
if(cd==256)
p[0]=(unsigned char *)c;
diff=0;
for (i=0; i<cd; i++)
{
for (k=0; k<plength; k++) //checking to see if p+c in dict
{
if(dict[i][k]!=p[k])
diff=1;
}
}
if (diff==0)
{
p[plength]=(unsigned char)c;
plength++;
}
if (diff==1)
{
for (i=0; i<cd; i++)
{
for (k=0; k<plength; k++)
{
if(dict[i][k]!=p[k])
diff=1;
}
if (diff==0)
j=i;
}
fputc(j, outfile);
for (i=0; i<plength; i++)
{
dict[cd][i]= p[i];
}
dict[cd][plength]=(unsigned char)c;
cd++;
p[0]=c;
}
}
for (i=0; i<cd; i++)
{
for (k=0; k<plength; k++)
{
if(dict[i][k]!=p[k])
diff=1;
}
if (diff==0)
j=i;
}
fputc(j, outfile);
fclose(outfile);
fclose(Fpt);
}
By Amit Setia
Write a program in java on Crytography?
/*Input: Enter the String: AHFJFJ
* Enter the gap : 2
*Output: CJHLHL
*/
import java.io.*;
class Crypt
{
protected static void main()throws IOException
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the String: ");
String s=in.readLine(),s1="";
System.out.print("Enter the Gap: ");
short g=Short.parseShort(in.readLine());
for(short i=0;i<s.length();i++)
{
char ch=s.charAt(i);
if(Character.isUpperCase(ch))
{
ch+=g;
if(ch>'Z')
ch-=26;
else if(ch<'A')
ch+=26;
s1+=ch;
}
else if(Character.isLowerCase(ch))
{
ch+=g;
if(ch<'a')
ch+=26;
else if(ch>'z')
ch-=26;
s1+=ch;
}
else if(Character.isDigit(ch))
{
ch+=g;
if(j>'9')
j-=10;
else if(j<'0')
j+=10;
s1+=ch;
}
else
s1+=ch;
}
System.out.print("String: "+s1);
}}
Why dafault constructor is necessary in c programming?
It is not necessary (nor possible) in C programming.
What do you mean by a static function?
In Java, a static function is not attached to a particular object, but rather to the whole class.
For example, say we have the following class:
class Song {
String song;
void printSong() {
System.out.println(song);
}
static void printStaticSong() {
System.out.println("This is a static song. It has no tune.");
}
}
The static function Song.printStaticSong() can be accessed without creating an instance of the Song class (using the "new" keyword)
However it cannot access the members of Song (such as song), since it is not an instance of that object.
Write a program to represent a deck of playing cards using arrays?
1
2
3
4
5
6
7
8
9
10
//DeckOfCards.h class Deckofcards { public: Deckofcards(); void shuffle(); void deal(); private: int deck[4][13]; };
1
2
3
4
5
6
7
8
9
10
11
//client.cpp #include "DeckOfCards.h" int main() { Deckofcards deckofcards; deckofcards.shuffle(); deckofcards.deal(); return 0; }//end main
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//Deckofcards.cpp #include <iostream> using std::cout; using std::left; using std::right; #include <iomanip> using std::setw; #include <cstdlib> using std::rand; using std::srand; #include <ctime> using std::time; #include "DeckOfCards.h" Deckofcards::Deckofcards() { for (int row = 0; row <= 3; row++ ) { for (int column = 0; row <= 12; column++) { deck[row][column] = 0; //slot of deck is 0 }//end column for }//end row for srand(time(0));//seed random number }//end Deckofcards constructor void Deckofcards::shuffle() { cout << "hit"; int row; //suit of card int column; //face of card for (int card = 1; card <=52; card++) { do { row = rand()%4; column = rand()%13; } while( deck[row][column] !=0);//end do...while deck [row][column] = card; }//end for }//end shuffle void Deckofcards::deal() { cout << "hit"; static const char *suit[4] = {"Hearts", "Diamonds", "Clovers", "Spades"}; static const char *face[13] = {"Ace", "Deuce", "Three", "Four", "Five", "Six", "Seven" , "Eight", "Nine", "Ten", "Jack", "Queen", "King" }; for (int card = 1; card <=52; card++) { for (int row = 0; row <= 3; row++) { for (int column = 0; column <= 12; column++) { if (deck[row][column] == card) { cout << setw(5) << right << face[column] << " of " << setw(8) << left << suit[row] << (card %2 == 0 ? '\n' : '\t'); }//end if }//end for }//end for }//end for }//end deal
Write a program to create tajmahal?
#include<graphics.h>
#include<conio.h>
#include<dos.h>
#include<stdlib.h>
#include<process.h> main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\tc\bgi");
int h=40;
line(0,440,639,440); //line(20,30+h,619,30+h); //line(25,400,38,120);
//line(85,400,78,120);
//line(85,400,78,120);
//=================================Ist tower========================//
//=================================IIst
tower============================//
//#################TOWER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%//
int l=-20;
line(28+l,400+h,33+l,333+h);
line(86+l,400+h,80+l,333+h);
//Ist
stage//
line(23+l,328+h,32+l,334+h); // slant
line(88+l,328+h,80+l,334+h); // slant
line(83+l,323+h,75+l,334+h); // slant
line(75+l,323+h,70+l,332+h);
line(66+l,323+h,65+l,332+h); // slant
line(57+l,323+h,57+l,332+h); // slant
line(30+l,323+h,39+l,334+h); // slant
line(38+l,323+h,45+l,332+h);
line(48+l,323+h,51+l,332+h); // slant ellipse(57+l,320+h,350,190,34,5);
ellipse(57+l,327+h,350,190,34,5);
ellipse(57+l,337+h,0,180,25,5);
line(22+l,320+h,22+l,328+h);
line(91+l,320+h,91+l,327+h);
setfillstyle(6,15);
floodfill(60+l,320+h,15); setfillstyle(10,15); floodfill(60+l,320+h+15,15);
//
//
//+++++++++++++++++++++++++++++++++++2nd+++++++++++++++++++++++++++ line(35+l,315+h,38+l,242+h);
line(80+l,315+h,75+l,242+h); //2st
stage//
int t=-93;
line(23+4+l,328+t+3+h,32+5+l,334+t+h); // slant
line(88+l,328+t+2+h,76+l,334+t+h); // slant
//line(+l83,323+t+4,75,334+t); // slant
line(78+l,323+t+3+h,71+l,332+t+h);
line(66+l,323+t+2+h,65+l,332+t+h); // slant
line(57+l,323+t+2+h,57+l,332+t-2+h); // slant
//line(30,323+t+2,39,334+t); // slant
line(35+l,323+t+3+h,45-3+l,332+t+h);
line(48+l,323+t+2+h,51+l,332+t-2+h); // slant ellipse(57+l,320+t+3+h,360,190,30,5);
ellipse(57+l,327+t+3+h,360,190,30,5);
ellipse(57+l,337+t-1+h,0,180,18,5); line(26+l,320+t+3+h,26+l,328+t+2+h);
line(88+l,320+t+3+h,88+l,327+t+3+h);
//
|//
setfillstyle(6,15);
floodfill(60+l,320+h+t,15); ////////////////
setfillstyle(10,15);
floodfill(60+l,320+h-35,15); //3rd
stage// line(38+l,225+h,41+l,152+h);
line(75+l,225+h,72+l,152+h); t=-182;
line(32+l,328+t+4+h,32+7+l,334+t+h); // slant
line(80+l,328+t+4+h,73+l,334+t+h); // slant
//line(+l83,323+t+4,75,334+t); // slant
line(76+l,323+t+5+h,71+l,332+t+h);
line(66+l,323+t+4+h,65+l,332+t+h); // slant
line(57+l,323+t+4+h,57+l,332+t-2+h); // slant
//line(30,323+t+2,39,334+t); // slant
line(39+l,323+t+6+h,45+l,332+t+1+h);
line(48+l,323+t+4+h,51+l,332+t+h); // slant ellipse(57+l,320+t+6+h,360,190,24,5);
ellipse(57+l,327+t+4+h,360,190,24,5);
ellipse(57+l,337+t-1+h,0,170,16,5); line(32+l,320+t+6+h,32+l,328+t+3+h);
line(81+l,320+t+6+h,81+l,327+t+3+h); setfillstyle(6,15);
floodfill(60+l,322+h+t,15);
//
//
setfillstyle(10,15);
floodfill(60+l,322+h+t+30,15);
//GGF################TOWER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%// ellipse(51+l,132+h,340,216,4,15);
ellipse(62+l,131+h,327,216,4,15);
ellipse(72+l,132+h,327,216,2,15);
ellipse(42+l,132+h,327,216,2,15);
ellipse(57+l,107+h,0,170,16,5);
line(40+l,107+h,40+l,140+h);
line(75+l,107+h,75+l,140+h); line(34+l,107+h,40+l,107+h);
line(75+l,107+h,81+l,107+h); line(34+l,107+h,28+l,102+h); //slant
line(81+l,107+h,87+l,102+h); line(28+l,102+h,34+l,98+h);
line(87+l,102+h,81+l,98+h); line(34+l,98+h,58+l,95+h);
line(58+l,95+h,81+l,98+h);
ellipse(65+l,92+h,104,190,30,30); ellipse(50+l,92+h,350,76,30,30); line(58+l,61+h,58+l,63+h);
circle(58+l,58+h,3);
line(58+l,55+h,58+l,53+h);
circle(58+l,50+h,2);
line(58+l,48+h,58+l,47+h);
circle(58+l,45+h,1);
line(58+l,44+h,58+l,41+h);
setfillstyle(6,15);
floodfill(60+l-2,322+h+t-60,15); setfillstyle(10,15);
floodfill(60+l-2,322+h+t-30,15);
//=================================IIst
tower============================//
//#################TOWER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%//
l=547;
line(28+l,400+h,33+l,333+h);
line(86+l,400+h,80+l,333+h);
//Ist
stage//
line(23+l,328+h,32+l,334+h); // slant
line(88+l,328+h,80+l,334+h); // slant
line(83+l,323+h,75+l,334+h); // slant
line(75+l,323+h,70+l,332+h);
line(66+l,323+h,65+l,332+h); // slant
line(57+l,323+h,57+l,332+h); // slant
line(30+l,323+h,39+l,334+h); // slant
line(38+l,323+h,45+l,332+h);
line(48+l,323+h,51+l,332+h); // slant ellipse(57+l,320+h,350,190,34,5);
ellipse(57+l,327+h,350,190,34,5);
ellipse(57+l,337+h,0,180,25,5);
line(22+l,320+h,22+l,328+h);
line(91+l,320+h,91+l,327+h);
setfillstyle(6,15);
floodfill(60+l,320+h,15); setfillstyle(10,15); floodfill(60+l,320+h+15,15);
//
//
//+++++++++++++++++++++++++++++++++++2nd+++++++++++++++++++++++++++ line(35+l,315+h,38+l,242+h);
line(80+l,315+h,75+l,242+h); //2st
stage//
t=-93;
line(23+4+l,328+t+3+h,32+5+l,334+t+h); // slant
line(88+l,328+t+2+h,76+l,334+t+h); // slant
//line(+l83,323+t+4,75,334+t); // slant
line(78+l,323+t+3+h,71+l,332+t+h);
line(66+l,323+t+2+h,65+l,332+t+h); // slant
line(57+l,323+t+2+h,57+l,332+t-2+h); // slant
//line(30,323+t+2,39,334+t); // slant
line(35+l,323+t+3+h,45-3+l,332+t+h);
line(48+l,323+t+2+h,51+l,332+t-2+h); // slant ellipse(57+l,320+t+3+h,360,190,30,5);
ellipse(57+l,327+t+3+h,360,190,30,5);
ellipse(57+l,337+t-1+h,0,180,18,5); line(26+l,320+t+3+h,26+l,328+t+2+h);
line(88+l,320+t+3+h,88+l,327+t+3+h);
//
//
setfillstyle(6,15);
floodfill(60+l,320+h+t,15); ////////////////
setfillstyle(10,15);
floodfill(60+l,320+h-35,15); //3rd
stage// line(38+l,225+h,41+l,152+h);
line(75+l,225+h,72+l,152+h); t=-182;
line(32+l,328+t+4+h,32+7+l,334+t+h); // slant
line(80+l,328+t+4+h,73+l,334+t+h); // slant
//line(+l83,323+t+4,75,334+t); // slant
line(76+l,323+t+5+h,71+l,332+t+h);
line(66+l,323+t+4+h,65+l,332+t+h); // slant
line(57+l,323+t+4+h,57+l,332+t-2+h); // slant
//line(30,323+t+2,39,334+t); // slant
line(39+l,323+t+6+h,45+l,332+t+1+h);
line(48+l,323+t+4+h,51+l,332+t+h); // slant ellipse(57+l,320+t+6+h,360,190,24,5);
ellipse(57+l,327+t+4+h,360,190,24,5);
ellipse(57+l,337+t-1+h,0,170,16,5); line(32+l,320+t+6+h,32+l,328+t+3+h);
line(81+l,320+t+6+h,81+l,327+t+3+h); setfillstyle(6,15);
floodfill(60+l,322+h+t,15);
//
//
setfillstyle(10,15);
floodfill(60+l,322+h+t+30,15);
//GGF################TOWER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%// ellipse(51+l,132+h,340,216,4,15);
ellipse(62+l,131+h,327,216,4,15);
ellipse(72+l,132+h,327,216,2,15);
ellipse(42+l,132+h,327,216,2,15);
ellipse(57+l,107+h,0,170,16,5);
line(40+l,107+h,40+l,140+h);
line(75+l,107+h,75+l,140+h); line(34+l,107+h,40+l,107+h);
line(75+l,107+h,81+l,107+h); line(34+l,107+h,28+l,102+h); //slant
line(81+l,107+h,87+l,102+h); line(28+l,102+h,34+l,98+h);
line(87+l,102+h,81+l,98+h); line(34+l,98+h,58+l,95+h);
line(58+l,95+h,81+l,98+h);
ellipse(65+l,92+h,104,190,30,30); ellipse(50+l,92+h,350,76,30,30); line(58+l,61+h,58+l,63+h);
circle(58+l,58+h,3);
line(58+l,55+h,58+l,53+h);
circle(58+l,50+h,2);
line(58+l,48+h,58+l,47+h);
circle(58+l,45+h,1);
line(58+l,44+h,58+l,41+h);
setfillstyle(6,15);
floodfill(60+l-2,322+h+t-60,15); setfillstyle(10,15);
floodfill(60+l-2,322+h+t-30,15);
//
// //GGF################TOWER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%// ellipse(51+l,132+h,340,216,4,15);
ellipse(62+l,131+h,327,216,4,15);
ellipse(72+l,132+h,327,216,2,15);
ellipse(42+l,132+h,327,216,2,15);
ellipse(57+l,107+h,0,170,16,5);
line(40+l,107+h,40+l,140+h);
line(75+l,107+h,75+l,140+h); line(34+l,107+h,40+l,107+h);
line(75+l,107+h,81+l,107+h); line(34+l,107+h,28+l,102+h); //slant
line(81+l,107+h,87+l,102+h); line(28+l,102+h,34+l,98+h);
line(87+l,102+h,81+l,98+h); line(34+l,98+h,58+l,95+h);
line(58+l,95+h,81+l,98+h);
ellipse(65+l,92+h,104,190,30,30); ellipse(50+l,92+h,350,76,30,30); line(58+l,61+h,58+l,63+h);
circle(58+l,58+h,3);
line(58+l,55+h,58+l,53+h);
circle(58+l,50+h,2);
line(58+l,48+h,58+l,47+h);
circle(58+l,45+h,1);
line(58+l,44+h,58+l,41+h);
//=================================Ist tower========================// //+++++++++++++++++++++++++++++++++TAJ mahal++++++++++++++++++++++++// ////setcolor(15); rectangle(275,290,365,440); // inner
rectangle(268,283,372,440); // //inner
setfillstyle(1,15);
floodfill(274,294,15);
line(280,440,280,350);
//line(283,440,283,350);
ellipse(315,349,130,180,35,40);
ellipse(275,280,290,326,53,40); line(360,440,360,350);
ellipse(325,349,360,50,35,40);
ellipse(361,280,216,255,53,40);
setfillstyle(9,7);
floodfill(277,386,15);
putpixel(277,386,14); line(280,360,359,360);
line(280,364,359,364);
setfillstyle(1,15);
floodfill(281,362,15); rectangle(295+4,370,345-4,440);
rectangle(292+4,367,348-4,440);
setfillstyle(1,15);
floodfill(294+4,369,15);
rectangle(296,378,344,380);
floodfill(301,379,15);
line(302,405,302,440);
line(338,405,338,440);
ellipse(327,405,108,180,25,20); ellipse(313,405,360,74,25,20); setfillstyle(7,15);
//putpixel(312,416,11);
//floodfill(312,406,15);
line(329,390,329,440);
line(310,391,310,440);
line(311,402,329,402);
line(311,422,329,422);
line(302,412,310,412);
line(329,412,338,412); line(302,428,310,428);
line(329,428,338,428);
//setfillstyle(7,15);
int p=-60;
line(302,405+p,302,440+p-20);
line(338,405+p,338,440+p-20);
ellipse(327,405+p,108,180,25,20); ellipse(313,405+p,360,74,25,20);
setfillstyle(7,15);
floodfill(311,406,15);
line(329,390+p,329,440+p-20);
line(310,391+p,310,440+p-20);
line(311,402+p,329,402+p);
line(311,422+p-7,329,422+p-7);
line(302,412+p,310,412+p);
line(329,412+p,338,412+p); //??//////////////////////////////////2nd portion/////////////////////
rectangle(245,260,400,440); // inner
rectangle(230,245,415,440); // //inner rectangle(230,425,275,440);
setfillstyle(1,15);
floodfill(231,426,15);
floodfill(249,426,15);
////setcolor(8);
rectangle(230+135,425,275+140,440);
//setfillstyle(1,15); floodfill(231+160,426,15);
floodfill(249+159,426,15); ////setcolor(15);
line(415,290,415,440);
line(420,245,420,440); line(415,240,415,205);
line(420,240,420,205);
line(225,245,225,440); //vertical
line(230,250,230,440); line(225,240,225,205); //vertical
line(230,240,230,205); line(222,240,425,240);
line(222,245,425,245); //horz ellipse(222,242.5,90,270,2.5,2.5);
ellipse(425,242.5,270,90,2.5,2.5); rectangle(231,230,414,239); ellipse(227,206,0,180,9,1);
ellipse(227,204,0,180,9,1);
putpixel(220,204,15);
putpixel(220,205,15);
putpixel(220,206,15);
putpixel(235,204,15);
putpixel(235,205,15);
putpixel(235,206,15);
ellipse(227,203,0,180,6,7);
line(227,195,227,192);
int r=190; ellipse(227+r,206,0,180,9,1);
ellipse(227+r,204,0,180,9,1);
putpixel(220+r,204,15);
putpixel(220+r,205,15);
putpixel(220+r,206,15);
putpixel(235+r,204,15);
putpixel(235+r,205,15);
putpixel(235+r,206,15); ellipse(227+r,203,0,180,6,7);
line(227+r,195,227+r,192); /* //floodfill(305,424,15);
//floodfill(305,429,15);
//floodfill(325,424,15);
//floodfill(325,421,15);
//floodfill(332,420,15);
//floodfill(332,429,15);
*/ ellipse(315,170,140,210,105,100);
ellipse(330,170,330,40,105,100); ellipse(292,167,105,140,75,95);
ellipse(353,167,40,75,75,95); ellipse(323,78,350,190,60,8);
ellipse(323,77,350,190,60,8);
//ellipse(259,24,295,358,58,51);
ellipse(240,24,321,358,78,71);
ellipse(192,40,342,7,128,100); ellipse(448,30,180,203,128,100);
ellipse(443,5,194,220,128,100);
ellipse(438,-9,203,234,128,100);
ellipse(198,-6,310,340,128,100); ellipse(319,30,0,360,7,2); floodfill(320,29,15);
circle(319,24,3);
line(319,20,319,18);
circle(319,14,4);
line(319,9,319,0);
//ellipse(319,4,0,360,2,3);
circle(319,2,1);
line(316,6,322,6);
line(316,6,314,4);
line(322,6,324,4);
//??????????????????????????????????? //////////////////////////////////////////////////////////
//ellipse();
ellipse(321,258,48,130,140,50);
ellipse(321,255,48,130,140,50); ellipse(321,241,48,130,140,50);
ellipse(321,238,48,130,140,50);
//setfillstyle(6,11);
// line(265,79,277,70);
//////setcolor(4);
//line(385,81,380,76); //while(!kbhit())
//{
delay(300);
setfillstyle(10,15); floodfill(322,160,15);
setfillstyle(6,15); floodfill(322,193,15); //}
//line(319,26,319,480+h);//center ///////////////////////////////////////////new////////////////////////////
rectangle(150,283,225,294); //line(146,294,225,294);
line(150,298,225,298); line(150,240,150,440); //pole
line(146,240,146,440); line(150,299,150,440); //pole
line(146,299,146,440);
r=-80;
int n=34; ellipse(227+r,206+n,0,180,9,1);
ellipse(227+r,204+n,0,180,9,1);
putpixel(220+r,204+n,15);
putpixel(220+r,205+n,15);
putpixel(220+r,206+n,15);
putpixel(235+r,204+n,15);
putpixel(235+r,205+n,15);
putpixel(235+r,206+n,15); ellipse(227+r,203+n,0,180,6,7);
line(227+r,195+n,227+r,192+n); l=128;
h=150; ellipse(51+l,132+h-7,340,216,4,15);
ellipse(62+l,131+h-7,327,216,4,15);
ellipse(72+l,132+h-7,327,216,2,15);
ellipse(42+l,132+h-7,327,216,2,15);
ellipse(57+l,107+h,0,170,16,5);
line(40+l,107+h,40+l,140+h-7);
line(75+l,107+h,75+l,140+h-7); line(34+l,107+h,40+l,107+h);
line(75+l,107+h,81+l,107+h); line(34+l,107+h,28+l,102+h); //slant
line(81+l,107+h,87+l,102+h); line(28+l,102+h,34+l,98+h);
line(87+l,102+h,81+l,98+h); line(34+l,98+h,58+l,95+h);
line(58+l,95+h,81+l,98+h);
ellipse(65+l,92+h,104,190,30,30); ellipse(50+l,92+h,350,76,30,30); line(58+l,61+h,58+l,63+h);
circle(58+l,58+h,3);
line(58+l,55+h,58+l,53+h);
circle(58+l,50+h,2);
line(58+l,48+h,58+l,47+h);
circle(58+l,45+h,1);
line(58+l,44+h,58+l,41+h);
line(100-5,240+15,100-5,440); //pole
line(96-5,240+15,96-5,440); r=-134;
n=49;
ellipse(227+r,206+n,0,180,9,1);
ellipse(227+r,204+n,0,180,9,1);
putpixel(220+r,204+n,15);
putpixel(220+r,205+n,15);
putpixel(220+r,206+n,15);
putpixel(235+r,204+n,15);
putpixel(235+r,205+n,15);
putpixel(235+r,206+n,15); ellipse(227+r,203+n,0,180,6,7);
line(227+r,195+n,227+r,192+n);
line(146,294,97,302);
line(146,298,97,306); line(146,283,97,291);
///////////////////////////////////////inner///////////////// //rectangle(275+k,290,365+k,440); // inner
//rectangle(268+k,283,372+k,440); // //inner //line(225,367,151,367);
rectangle(155,302,220,364);
rectangle(155,302+70,220,364+75); int q=-133;
int d=-2;
line(302+q-5,405+d,302+q-5,440+d);
line(338+q+5,405+d,338+q+5,440+d);
ellipse(327+q+5,405+d,108,180,35,30); ellipse(313+q-5,406+d,360,74,35,30);
d=-77;
line(302+q-5,405+d,302+q-5,440+d);
line(338+q+5,405+d,338+q+5,440+d);
ellipse(327+q,405+d,105,180,30,25); ellipse(313+q,405+d,360,80,30,25);
putpixel(163,300,11);
setfillstyle(6,15);
floodfill(163,330,15);
floodfill(160,380,15); line(141,305,141,360);
line(101,310,101,365);
line(141,305,101,310);
line(141,360,101,365);
int x=70;
line(141,305+x,141,440);
line(101,310+x,101,440);
line(141,305+x,101,310+x); q=-200;
line(302+q+4,405+d,302+q+4,440+d);
line(338+q-1,405+d,338+q-1,440+d-2);
ellipse(327+q,405+d,105,180,20,15);
ellipse(313+q+4,405+d,360,80,20,15); d=1;
line(302+q+4,405+d,302+q+4,440+d-2);
line(338+q-1,405+d,338+q-1,440+d-2);
ellipse(327+q,405+d,105,180,20,15);
ellipse(313+q+4,405+d,360,80,20,15); rectangle(178,415,197,439);
setfillstyle(7,15);
floodfill(179,416,15);
rectangle(178,415-75,197,440-76);
setfillstyle(7,15);
floodfill(179,415-75+1,15); line(130-3,417,130-3,440);
line(113+3,420,113+3,440); line(113+3,420,130-3,417);
putpixel(114,423,4);
line(113,440,130,440);
floodfill(114+3,423,15); int a=-76;
line(130-3,417+a,130-3,440+a-3);
line(113+3,420+a,113+3,440+a); line(113+3,420+a,130-3,417+a);
putpixel(114,423,4);
floodfill(114+3,423+a,15); line(10,400+h,615,400+h); //////////////////////////////////////////////right\\\\\\\\\\\
int e=270;
rectangle(150+e,283,226+e,294);
line(146+e+4,294,225+e,294);
line(146+e+4,298,225+e,298);
line(150+e+80,240,150+e+80,440); //pole
line(146+e+80,240,146+e+80,440); line(150+e+80,299,150+e+80,440); //pole
line(146+e+80,299,146+e+80,440); l=400;
h=+149;
ellipse(51+l,132+h-7,340,216,4,15);
ellipse(62+l,131+h-7,327,216,4,15);
ellipse(72+l,132+h-7,327,216,2,15);
ellipse(42+l,132+h-7,327,216,2,15);
ellipse(57+l,107+h,0,170,16,5);
line(40+l,107+h,40+l,140+h-7);
line(75+l,107+h,75+l,140+h-7); line(34+l,107+h,40+l,107+h);
line(75+l,107+h,81+l,107+h); line(34+l,107+h,28+l,102+h); //slant
line(81+l,107+h,87+l,102+h); line(28+l,102+h,34+l,98+h);
line(87+l,102+h,81+l,98+h); line(34+l,98+h,58+l,95+h);
line(58+l,95+h,81+l,98+h);
ellipse(65+l,92+h,104,190,30,30); ellipse(50+l,92+h,350,76,30,30); line(58+l,61+h,58+l,63+h);
circle(58+l,58+h,3);
line(58+l,55+h,58+l,53+h);
circle(58+l,50+h,2);
line(58+l,48+h,58+l,47+h);
circle(58+l,45+h,1);
line(58+l,44+h,58+l,41+h); r=270;
n=n-15; ellipse(227+r,206+n,0,180,9,1);
ellipse(227+r,204+n,0,180,9,1);
putpixel(220+r,204+n,15);
putpixel(220+r,205+n,15);
putpixel(220+r,206+n,15);
putpixel(235+r,204+n,15);
putpixel(235+r,205+n,15);
putpixel(235+r,206+n,15); ellipse(227+r,203+n,0,180,6,7);
line(227+r,195+n,227+r,192+n); line(146+e+135,302,97+e+135,294);
line(146+e+135,306,97+e+135,298); line(146+e+135,291,97+e+135,283); line(100-5+e+190,240+15,100-5+e+190,440); //pole
line(96-5+e+190,240+15,96-5+e+190,440); r=325;
n+=15;
ellipse(227+r,206+n,0,180,9,1);
ellipse(227+r,204+n,0,180,9,1);
putpixel(220+r,204+n,15);
putpixel(220+r,205+n,15);
putpixel(220+r,206+n,15);
putpixel(235+r,204+n,15);
putpixel(235+r,205+n,15);
putpixel(235+r,206+n,15); ellipse(227+r,203+n,0,180,6,7);
line(227+r,195+n,227+r,192+n);
rectangle(155+e,302,220+e,364);
rectangle(155+e,302+70,220+e,364+75);
q=140;
d-=1;
line(302+q-5,405+d,302+q-5,440+d);
line(338+q+5,405+d,338+q+5,440+d);
ellipse(327+q+5,405+d,108,180,35,30); ellipse(313+q-5,406+d,360,74,35,30); d=-77;
line(302+q-5,405+d,302+q-5,440+d);
line(338+q+5,405+d,338+q+5,440+d);
ellipse(327+q,405+d,105,180,30,25); ellipse(313+q,405+d,360,80,30,25);
putpixel(163,300,11);
setfillstyle(6,15);
floodfill(163,330,15);
floodfill(160,380,15);
/////////////////////////////
e=e-15;
line(141+e+150,305+5,141+e+150,360+5);
line(101+e+150,310-5,101+e+150,365-5);
line(101+e+150,305,141+e+150,310);
line(101+e+150,360,141+e+150,365); int v=75;
line(141+e+150,305+5+v-5,141+e+150,440);
line(101+e+150,310-5+v-5,101+e+150,440);
line(101+e+150,305+v-5,141+e+150,310+v-5);
//line(101+e+150,360+v,141+e+150,365+v); e=e+18;
rectangle(178+e,415,197+e,439);
setfillstyle(7,15);
floodfill(179+e,416,15);
int f=-75;
rectangle(178+e,415+f,197+e,439+f);
setfillstyle(7,15);
floodfill(179+e,416+f,15);
e+=130;
line(130-3+e,440+a-2,130-3+e,417+a+2);
line(113+3+e,440+a-2,113+3+e,420+a-2); line(113+3+e,417+a,130-3+e,420+a);
putpixel(114+e,423,4);
floodfill(114+3+e,423+a,15); a=1;
line(130-3+e,440+a-2,130-3+e,417+a+2);
line(113+3+e,440+a-2,113+3+e,420+a-2); line(113+3+e,417+a,130-3+e,420+a);
putpixel(114+e,423,4);
line(113+3+e,440,130-3+e,440);
floodfill(114+3+e,423+a,15);
q=204;
line(302+q+4,405+d,302+q+4,440+d-2);
line(338+q-1,405+d,338+q-1,440+d+2);
ellipse(327+q,405+d,105,180,20,15);
ellipse(313+q+4,405+d,360,80,20,15);
q=204; d=0;
line(302+q+4,405+d,302+q+4,440+d-1);
line(338+q-1,405+d,338+q-1,440+d);
ellipse(327+q,405+d,105,180,20,15);
ellipse(313+q+4,405+d,360,80,20,15);
line(302+q+4,440,302+q+4,440);
setfillstyle(10,15);
floodfill(322,160,15);
setfillstyle(6,15); floodfill(322,193,15);
///////////////////////////////////////////////walls//////////////
setfillstyle(9,15);
floodfill(110,294,15);
floodfill(210,290,15);
floodfill(430,290,15);
floodfill(520,290,15);
/////////////////////////////////////////////poles
setfillstyle(6,15);
floodfill(93,394,15);
floodfill(148,394,15);
floodfill(227,394,15);
floodfill(417,394,15);
floodfill(498,394,15);
floodfill(553,394,15);
setfillstyle(9,15);
floodfill(185,224,15);
floodfill(465,224,15); while(!kbhit())
{
delay(40);
putpixel(random(640),random(248),random(15));
} getch();
cleardevice(); setcolor(13);
rectangle(1,1,639,479);
rectangle(15,15,624,464);
//setcolor(LIGHTBLUE);
setfillstyle(6,11); floodfill(2,2,13);
settextstyle(7,0,3);
setcolor(12);
//delay(1000);
getch();
return 0;
}
CREATED BY C.MUNI PRAKASH TRY THIS U WILL GET IT B.TECH ,CSE ,TRML ENGG COLLEGE
an arrow loop is a slit or hole used to shoot arrows through.
The factorial of 569 is 569 * 568 * 567 * ... * 3 * 2 * 1. (That is a very, very large number.) If you mean, however, "what are the factors of 569?", the answer is 1 and 569, because 569 is prime.
What are the different types of programming languages?
A type of programming language could be a domain, paradigm, or family; the related links give taxonomies according to all of these factors. The below answer addresses the question as regards families.
It would be impossible to list them all, but a few of the most common are as follows (listed in alphabetical order):
BASIC - This was the language Bill Gates released for the C64 and other computers. It quickly became a very popular language and matured into Visual Basic, which further matured into Visual Studio. The current implementation is very expensive, however Microsoft have released Express versions of the Visual Studio series which are free, at the expense (removal) of some functionality. There is also a very young cross-platform (Windows, Linux) Free and Open Source (FOSS) implementation of BASIC called FreeBASIC, which I personally program in and find very easy to use. It aims for compatibility with QuickBASIC while giving easy access to the host platform's system functions (the Windows API on Windows and system calls on Linux).
C, C#, C++ - These I don't have much knowledge about, I can only make reference to the existence of "gcc", a cross-platform (the amount of platforms it can compile to is mind-boggling) FOSS compiler. Visual Studio also has compilers for C++ and C#.
Perl, PHP, Python - These are mainly the "web languages" of today. PHP is the most widely used, mainly because of the fact that support for it is compiled into Apache, "the" web server for Linux (which also has ports for Windows and if I'm not mistaken, Mac OS). Perl and Python are also used very widely too, as it's as simple as installing mod_perl into Apache for Perl to work with the same, and I'd imagine Python integration is as easy too.
Computer programming is the craft of writing useful, maintainable, and extensible instructions which can be interpreted by a computing system to perform a meaningful task. Programming a computer can be performed in one of numerous languages, ranging from a higher-level language to writing directly in low-level machine code (that is, code that more directly controls the specifics of the computer's hardware) all the way to writing microcode (which does directly control the electronics in the computer). Using programming languages and markup languages (such as XHTML and XForms) require some of the same skills, but using markup languages is generally not considered "programming." Nevertheless, many markup languages allow inclusion of scripts, e.g. many HTML documents contain JavaScript. There are exceptions where markup languages do represent programming such as SuperX++ (http://xplusplus.sourceforge.net/) and o:XML (http://www.o-xml.org/) Computer programming is one part of a much larger discipline known as software engineering, which includes several different aspects of making software including design, construction and quality control. The subject of this book is software construction, that is, programming. Computer programming is also a useful skill (though not always necessary) for people who are interested in computer science. Whereas software engineering is interested specifically in making software, computer science tends to be oriented towards more theoretical or mathematical problems.