- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 8
- Posts with Downvotes
- 7
- Downvoting Members
- 3
19 Posted Topics
With reference to ur query, If You are getting Error in Windows XP that Undefined symbol initgraph in module then follow the Steps : Go to Console Go to Options Go to Linker Go to Libraries Make "X" Mark on Graphics Library
#include<stdio.h> #include<conio.h> #include<graphics.h> #include<dos.h> void base() { int k,l; for(k=0;k<20;l=l+16,k++) { rectangle(100+l,400,116+l,418); //square box line(107+l,418,107+l,413); //middle down to up line line(107+l,413,100+l,409); //middle to left side line(107+l,413,112+l,400); //middle to up side rectangle(100+l,418,116+l,436); line(107+l,436,107+l,431); line(107+l,431,100+l,427); line(107+l,431,112+l,418); } } int main() { int gd=DETECT,gm; int i,j,k,l,ch1,ch2,x=90,y=389; initgraph(&gd,&gm,"c:\\tc\\bgi"); //base(); ch1=getch(); while(ch1==32) { base(); if(ch1!=32) …
With reference to ur query, #include<stdio.h> #include<conio.h> int main() { char eng[26]; clrscr(); //scanf("%s",&eng); gets(eng); puts(eng); getch(); return 0; }
With reference to ur query, int main() { char ch='a'; clrscr(); printf("%c",ch); getch(); return 0; } as u said use character for output. here ch is a variable. a is stored in ch variable. ch is holding the result of a. that variable is used as input for printing data …
With reference to ur query, i think u need to manually to change the source code to c by changing header files, printing and reading statements,etc.
With reference to ur query, FILE*fp; int fopen(fp,char*filename,"w"); fp is FILE*, char*filename is filepath, w is file mode i.e., read, write, read and write.
With reference to ur query, heap is also called as dynamic memory. When we are creating the memory using malloc(),calloc(),realloc() functions it will create the memory in heap area. It acts as a permanent memory if we are not deallocated the memory using free() funcion. stack the no. of arguments …
With reference to ur query, int main() { char str[6]; clrscr(); strcpy(str,"Hello\0"); printf("%s",str); getch(); return 0; } whenever we are passing the string (normal string without \0) to another string with the help of strcpy() function it will print as it is. if ur using \0 at end of the …
With reference to ur query, int main() { char ch='a'; char*ptr=&ch; clrscr(); printf("Converting character to hexadecimal format"); printf("%p",ptr); getch(); return 0; }
With reference to ur query, malloc() is a pre-defined function which is available in <alloc.h>. We can also create memory without this function. But, whatever the program without this header file will occupies static memory allocation.For example, if you want to create the memory in dynamic memory allocation then go …
With reference to ur query, #include<stdio.h> #include<conio.h> int main() { char ch='a'; char*ptr=&ch; clrscr(); printf("%d %c",*ptr,ch); getch(); return 0; }
With reference to ur query, int main() { char str1[50]; char str2[50]; int n; clrscr(); printf("Enter str1"); scanf("%s",&str1); puts(str1); printf("Enter str2"); scanf("%s",&str2); puts(str2); printf("Enter location in digits"); scanf("%d",&n); strcpy(str1+n,str2); puts(str1); getch(); return 0; }
Hi everyone, I have 16GB pendrive (Transcend) v3.0. When i inserted into my pc its detecting and showing drive also but when iam trying to copy the files its not copying...... How to solve this problem..
With reference to ur query, char c='b'; char d; d=toupper(c);//Here it will convert the b letter into B with the help of ASCII values printf("%c",d);
With reference to ur query, malloc() is a pre-defined function which is available in <alloc.h>. We can also create memory without this function. But, whatever the program without this header file will occupies static memory allocation.For example, if you want to create the memory in dynamic memory allocation then go …
With reference to ur query, U may proceed like this also if u like it.. int num,n; printf("Enter the numbers"); for(i=0;i<=n;i++)//U can enter n numbers. scanf("%d",&num);
With reference to ur program, Nice to meet you... Actually the printf() statement will work according to the stack mechanism i.e., the evaluation (execution) will starts from right side to left side... printf("%d %d %d %d %d",i++,i--,--i,++i,i) ; value of i is 2 follow the procedure right to left first …
this program is working fine.. As i was moving the object with the help of ASCII values. But i want to move the object towards right as per my input (through keyboard,right arrow). But it is moving with the same x and y axis..
Help me with ur inputs, how to insert and move the image using C language.. we can use by using "Type Argument Approach" to move the image??
The End.
naveen1993