15,550 Topics

Member Avatar for
Member Avatar for BLUEC0RE

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 …

Member Avatar for gerard4143
0
2K
Member Avatar for KJLakshmi

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 …

Member Avatar for Ancient Dragon
0
170
Member Avatar for yanz

[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]

Member Avatar for benhowdle89
0
162
Member Avatar for lashatt2

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?

Member Avatar for Unimportant
0
66
Member Avatar for Stack Overflow

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. …

Member Avatar for sudheer51
0
2K
Member Avatar for manalibhadula

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....

Member Avatar for Unimportant
0
151
Member Avatar for Pral

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; …

Member Avatar for Pral
0
251
Member Avatar for widapol

Hi all, when I declare an array: [CODE]datatype array[Index];[/CODE] what's max value of Index ?

Member Avatar for gerard4143
0
190
Member Avatar for vivek nandan

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); …

Member Avatar for Banfa
0
112
Member Avatar for ramosemman

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.

Member Avatar for ramosemman
0
98
Member Avatar for srinivasan106

[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??

Member Avatar for localinternet
0
277
Member Avatar for Kapilxcb

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 …

Member Avatar for Kapilxcb
0
119
Member Avatar for baby_c

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 …

Member Avatar for baby_c
0
74
Member Avatar for simmyhp

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], …

Member Avatar for Adak
0
578
Member Avatar for Invecta

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 …

Member Avatar for Invecta
0
198
Member Avatar for whimsical1987

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; } …

Member Avatar for whimsical1987
0
2K
Member Avatar for buzzlightyear79

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 …

0
65
Member Avatar for buzzlightyear79

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 …

0
52
Member Avatar for girlzone

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 …

Member Avatar for Martin B
0
443
Member Avatar for jimlaver

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 …

Member Avatar for varshini gowda
0
141
Member Avatar for michrob15

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. …

Member Avatar for Schol-R-LEA
0
140
Member Avatar for poojabi

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,

Member Avatar for Schol-R-LEA
0
1K
Member Avatar for airy joy

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 …

Member Avatar for Software guy
0
115
Member Avatar for complete

Where is a good source for learning Design Patterns? Has anyone heard of what is called "Gang of 4" and "Model via Control"?

Member Avatar for Schol-R-LEA
0
145
Member Avatar for SanJuanWolf

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 …

Member Avatar for Airshow
0
219
Member Avatar for berwick53

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 …

Member Avatar for Schol-R-LEA
0
124
Member Avatar for ti-loup

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 …

0
50
Member Avatar for gaurav_13191

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 …

Member Avatar for gaurav_13191
0
106
Member Avatar for abhijustorcks

HI all ! I am looking for C source code for a simple control flow graph generator.This generator should take input as C,java files and make nodes for If-else,switch statements,for & while loops.I just need a output in text form no visualization required.Can anybody help Thanks

0
83
Member Avatar for kn_jee

[CODE]#include<stdio.h> #include<string.h> int count(char string[]); void main(){ int i; char string[1001]; printf("String: \n"); gets(string); i = words(string); printf("No. of Words %d", i); } int count(char string[]) { int i, j, k; for(i = 0; i < strlen(string); i++){ if(string[i] == ' ') k += 1; else j += 1; } …

Member Avatar for md_azaz1
0
400

The End.