15,552 Topics
| |
can you help me to answer this problem... A high building has 26 floors with the level 0 and the level 25 as the lowest and the highest level, respectively. It has a lift for transport the occupant to the level destination. The lift moves up and down in respect … | |
Can anyone share concept/program in C to add two 64-bit numbers on a 32-bit machine | |
I'm making a program that accept 1 character long strings (and ignores spaces " ") until a user presses return/enter. So far I have, [CODE] int main(){ char expression[1]; while ((scanf("%s",expression)) != EOF){ //code } return 0; } [/CODE] it is assumed that the user is entering single digit strings … | |
I have build a dynamic library in both debug and release mode. In the Source code of this libray relloc() function is used. I am linking this libray to my executable application. When i execute the application in debug mode, the application is crashing with the following message "Unhandled exception … | |
[COLOR=#000080]I wonder if is it possible to link the GPRS modem and a I/O board together? I already have a VB6 coding and I know there is little that VB6 can do. Hope that you can help me out. 10z [IMG]http://www.xtremevbtalk.com/x_images/images/smilies/confused.gif[/IMG] [IMG]http://www.xtremevbtalk.com/x_images/images/smilies/tongue.gif[/IMG] [/COLOR] | |
192.168.1.1 = 11000000.10101000.00000001.00000001 for example: 192 = 11000000: [IMG]http://lashatt.comoj.com/convertiptobinarynumbers.JPG[/IMG] 128 + 64 = 192 and I have a question about it, for what is used all this? I mean for what will be exposed all this? for what we ar converting all this? | |
I've heard the curses library can be useful when trying to implement the handy DOS-only tools of gotoxy() and clrscr() using move() and initscr(). Though, there is a way to write your own gotoxy() in the Linux environment. This topic isn't touched often, so I would like to change that. … | |
We have two arrays .merging them is simple.i want to know how can i sort then after that without declaring a single memory after that.... | |
hi,i am new to C i am constantly getting the error "Segmentation fault" and i dont know how to deal with it. I can't find an error in my code. [code=c] #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <netinet/in.h> #include <arpa/inet.h> #include <pcap.h> int main() { FILE *ifile,*ifile1; … | |
Hi all, when I declare an array: [CODE]datatype array[Index];[/CODE] what's max value of Index ? | |
I wrote the following code for testing the functionality of malloc() . The Code is compiled using GCC and executed with no errors. #include<stdio.h> #include<stdlib.h> int main(void) { char *str; str=(char*)malloc(4*sizeof(char)); printf("Enter string"); gets(str); if(sizeof(str)>4*sizeof(char)) {printf("Out of Memory"); free(str); str=NULL; } else{ printf("\nsring entered=\n"); while(*str) { printf("%c",*str); str++; } free(str); … | |
my code should expand the binomial from second to the tenth power using looping, conditional, array statements cprogram. I must input the value of a and the value of b in the binomial: ( ax +b ) example : input: (1x+2) output: (x^2 + 4x +4) help me please. | |
[CODE] for(i=0;i<n-1;i++) { for(j=i+1;j<n;j++) { if(a[i]>a[j]) { temp=a[i]; a[i]=a[j]; a[j]=temp; count++; } } } [/CODE] [CODE] void select(int a[],int n) { for(i=0;i<=n;i++) { k=i; min=a[i]; for(j=i+1;j<=n-1;j++) { if(a[j]<min) { min=a[j]; k=j; count++; } else count++; } a[k]=a[i]; a[i]=min; } } [/CODE] which one is selection sort???first or sec?? | |
hey dudes pls help me on this. My program is crashing on the following piece of code When i make 1 recurssive function to work, the program works without crashing. So I would really need help in spotting the mistake I have done. Incase if you want to know what … | |
I have declared a global variable. But when i assign the "i" in the loop as the function parameter, the global variable does not chang. It seems that it creats another variable "i" and assigns it to that "i". Is it possible once i have declared the global "i"?? I'm … | |
Hi, Friends! I am doing my last year term project that needs me to use C and write a sudoku game. However, I don't know how to write the check part, can some of you help me a bit? Here is my code: [CODE]#include<stdio.h> #include<stdlib.h> #include<time.h> int x,y; int matrix[9][9], … | |
Hello everybody, i make a simple calculator with C. When I compile it, the compiler didn't show error but when I run my program the result is wrong... This is my code: [CODE=c] //////////////////////////////////////////////// // Calculator // // Crated by : Invecta // // Thanks to all members of komunitas-bsi.com … | |
Hi, I am getting seg fault when trying to run the code. I don't understand where I made a silly mistake. Can someone help me out please [code] #include<stdio.h> #include<string.h> void xstrcpy(char *, char *); int main() { char *a = "Hello World"; char *p; xstrcpy(a, p); return 0; } … | |
this program is challenging any ideas program should read the commands in sequential order, process them, perform the necessary calculations, and then print out the results in a neat, readable manner, both to a file and to the screen. Details The first line of the file contains two characters giving … | |
this program is very chalenging and i was wondering if you could provide some ideas as how to solve it. You are required to simulate the trajectory of a 60-ft long test rocket. Engineers predict that under the current wind conditions, the height of the rocket at time t is … | |
Hello all, I have a question: What are the advantages & disadvantages of the circular linked list compared with: a. Usual linked list b. Doubled linked list Although the implementation of the usual list functions & the circular list functions are similar…when do we have to use it?? or in … | |
Hello to all and thank you for your attention. I need to do a few programs using Turbo C 3.0, but I have a problem when I use it on my notebook (running on WinXP SP2). It starts OK: it goes into MS-DOS mode (fullscreen) and all seems good, but … | |
I am a brand new programmer (took a semester of it during the winter at college) and it really kicked my butt. I want to major in computer science, so i know that i'll be taking a lot of programming classes and will need to better all of my skills. … | |
can any one give a slight hint about the alogirthm to evaluate a prefix expression using queue.i tried a lot bt now atthe dead end, | |
Please heLP me in my finAl pRojEct pLLZz,,guyZz!!!All about C program in quincy that reads the year and day of the week of the first day of the year.Then the progrAm prints the calendAr for that year.Allow the user to pause for each month of the year.Note also for the … | |
Where is a good source for learning Design Patterns? Has anyone heard of what is called "Gang of 4" and "Model via Control"? | |
I am fairly new at programming in C and I'm having problems with writing a program which combines n objects from n different groups and prints them; for example objects a1 a2 a3from group A with b1 b2 b3 from group B and c1 c2 from group C; both group … | |
In my computing class we have got to make a program which outputs the following "XXXXXXXXXX YXXXXXXXXX YYXXXXXXXX YYYXXXXXXX YYYYXXXXXX YYYYYXXXXX YYYYYYXXXX YYYYYYYXXX YYYYYYYYXX YYYYYYYYYX YYYYYYYYYY" We have to create a function and we can only use if and loops. but I'm having difficultly doing it outside of a function … | |
Hi everyone, I'm on FreeBSD. and I don't know if the C language is the good one, but anyway, I'm here to ask question. So, I would like to make a kernel module for my FreeBSD that detect my webcam , initialize it and store, in real time, the RGB … | |
I have the following code for DDA Line Algorithm in C :- [CODE] //DDA Line Algorithm #include<stdio.h> #include<graphics.h> #include<conio.h> #include<math.h> #include<stdlib.h> #define Round(a) ((int)(a+0.5)) void linDDA(int xa,int ya,int xb,int yb); int main() { int gdriver=DETECT,gmode; initgraph(&gdriver,&gmode,"E:\\TC\\bgi"); linDDA(10,20,200,100); clrscr(); getch(); return 0; } void linDDA(int xa,int ya,int xb,int yb) { int … |
The End.