15,552 Topics

Member Avatar for
Member Avatar for thyagarajan

i am developing an online auction system in c......can someone pls help me to help me setup a timer that runs in the background (or) i dont know how to store the time/date so that it can be compared with current date/time..... Thanks

Member Avatar for Ancient Dragon
0
346
Member Avatar for sakthi_2001

Hi all, I am new to C programming, can anyone help me out with a solution to find sum of digits of a 5-digit number without using control statements, like if, for... thank you

Member Avatar for twomers
0
704
Member Avatar for aldrinsms
Member Avatar for Salem
0
85
Member Avatar for megan-smith

hey there; i wanted to write a program to convert binary to decimal. i did that using the " character approach". it works just fine. then i decided to enhance the program by adding an error message whenever the input are invalid (i.e anything other than 0, 1 ), but …

Member Avatar for Salem
0
123
Member Avatar for csteverun

This program create structures of the type "pf_space" and allocates memory as they're created. The problem is, it doesn't work like the book. malloc never returns false and therefore you can continue making structures until the program crashes. On my PC, I tracked down the offending line. After creating 1034 …

Member Avatar for csteverun
0
105
Member Avatar for Deb_2007

I am trying to inflate using zlib. The data is from a network packet contaning only unsigned charecters in QP encoded form eg, 1F=8B=08=00=00=00=00=00=02=FF=A5X=FBw=DA8=16=FE=BD=7F=85=AAlyL=00C=DE=03=98=9C=B6i=13f=BBm=A6=ED=9Cvg=1F=1C=D9=16=B6&=B2=E4=C82=84M=F9=DF=F7J=B2=81=90G=BB=B3=C9=01=AC=C7=95=AE=EE=FD=EE=A7{=3DLt=CAG=C3=84=92h4L=A9&(=D1:k=D3=EB=82=CD|=1CJ=A1=A9=D0m=BD=C8(Fe=CB=C7=9A=DEh=CF=08=0EP=98=10=95S=ED=FF=F6=F9m=FB=04=8F=86=9AiNG=E7R=C6=9C=0E=3D=D7=1A=E6za~=9E=B7=DB=CF=02=19-Z:j=91V=D6=EA$=B7SX=B2=3D%)=E3=8B>Q=8C=F0VND=DE=CE=A9b=D3=E5=B3jB=CE=FEC=FB{=DD=EC=C6v=85=92K=D5=DF=D9 ...............etc. After reading the file I have stored the data in an array of unsigned charecters. eg, usgned charecter arr[....]; then my array contains arr[0]=31,arr[1]=139,arr[3]=0 and …

0
55
Member Avatar for fatihpiristine

Hello guys, I want to improve up my skills programming in C and Phyton on Linux. I have no idea which version of Linux is good to do this. So far I have tried Fedora 7, Slackware and StartCom Enterprise. I couldnt find what I really want. Few years ago …

Member Avatar for Salem
0
99
Member Avatar for hanifa

I have already posted this on Mathworks website, but currently till now nobody has been able to solve it. Basically, I want to port over matlab code in .m format so I can call the matlab functions from a C code. I just followed a walk-thorough from matlab website and …

0
75
Member Avatar for BigFormat

Hi guys, I've to read a txt file and produce a statistic of each alphabetic char occurrence. I'm approaching this task reading char by char until EOF and using an int array to hold the number of occurrences of each character read so far! So that's my solution: [code] int …

Member Avatar for Salem
0
431
Member Avatar for srikanth329

Hi I have an binary of 10 bits . How do i change it to decimal suppose binary is 1000000001 . I need to get the decimal of it . Can some body gimme the psedocode??

Member Avatar for alsoumhi
0
260
Member Avatar for alsoumhi

Hi,guys how are you I just want to ask in c programming that how to return a string to a main function thanks.

Member Avatar for Rashakil Fol
0
105
Member Avatar for Drew06

I can't seem to figure out the syntax error on this one, it says the error is at the end of the input.... #include <stdio.h> #include <math.h> int determine(int); void main(void) { int num1, even, odd; printf("Enter a number: "); scanf("%d", &num1); printf("The number is: %d", determine(num1)); scanf("%d", &num1); getchar(); …

Member Avatar for Drew06
0
74
Member Avatar for Metsfan147

I'm curious as to why the following trivial example does not work: file: new.c [code] #include "new.h" void test( char * x ) { free( x ); } [/code] file: new.h [code] void test( char * ); [/code] file: weird.c [code] #include "new.h" int main( void ) { char * …

Member Avatar for Salem
0
103
Member Avatar for khalid0404

the new algorithm will consist of combining Huffman and Shannon-Fano coding system, which will be later translated in C language. Any proposals???

Member Avatar for khalid0404
0
111
Member Avatar for ScaryMan

Hello, I don't know if such a program exists but, I have an idea and I wonder whether this is available in C or not. Think a program and a forum. There are members on forums. You enter nickname of one of, or more, members to the program. It starts …

Member Avatar for GreenDay2001
0
100
Member Avatar for theraven1982

Hello, Since you all helped me so well the previous time, I have a second question for you. I think it's fairly simple, but for some reason I can't find the answer. I want to write to a file, in a certain format; however, it doesn't write it exactly as …

Member Avatar for theraven1982
1
756
Member Avatar for rogelioz

Hi, I'm having a problem using GCC 3.4.2, I'm getting 2 warnings at these lines: [code] int check_format(char array[]){ int i= 0; -------->while(array[i]!='\0'&&array[i]!='\n'){ --------->if( (!isdigit(array[i])) && (array[i]!=' ') && (array[i]!='-') && (count==9 && array[i]!='X') ) program.c:50: warning: subscript has type `char' program.c:53: warning: subscript has type `char' [/code] On GCC …

Member Avatar for Narue
0
261
Member Avatar for navychat

Hello, can anyone help me with my homework? I seem to be stucked with this problem. "Write a program that reads three strings and prints only those strings beginning with two vowels." example input string 1: eavesdropping input string 2: elevators input string 3: either Output: eavesdropping either Thank you …

Member Avatar for Narue
0
94
Member Avatar for tractionmate

Hi guys, i was wondering if any one has any material on fixed point implementation? Thanks

Member Avatar for Salem
0
293
Member Avatar for gaowei

[code=c] /***头文件(.h)****/ #include "stdio.h" /*I/O函数*/ #include "stdlib.h" /*其它说明*/ #include "string.h" /*字符串函数*/ #include "conio.h" /*屏幕操作函数*/ #include "mem.h" /*内存操作函数*/ #include "ctype.h" /*字符操作函数*/ #include "alloc.h" /*动态地址分配函数*/ #define N 10 typedef struct nw /*定义数据结构*/ { char word; /*生词*/ char acceptation; /*词义*/ char aspirate; /*音标*/ int no[N]; /*序号*/ char note; /*注释(包括词性,例句等)*/ struct nw *next; }NEWWORD; …

Member Avatar for Aia
2
172
Member Avatar for Solidsteel86

Greetings, first time I've posted here. Forgive me if I touch on any taboos unique to this forum. My teacher isn't very good and my textbook is virtually useless or I wouldn't be seeking help on the internet. I did read the homework sticky, though. It's basically an exercise in …

Member Avatar for Solidsteel86
1
140
Member Avatar for MattEvans

I'm working on a C++ module to read wavefront OBJ files; these are text files with many lines with either 2, 3, or more integer or floating point numbers; separated by spaces or tabs. It's not always possible to know how many numbers there will be in a single line …

Member Avatar for Narue
0
134
Member Avatar for Lost in Code...

Greetings, I'm working on this number guessing game which works, sort off... after it get the guess, it's suppossed to check that number in the void test(int guess, int target) function. It seems that it's totally skipping this. I've been looking at this for a while and don't understand why. …

Member Avatar for Narue
1
107
Member Avatar for khalid0404
Member Avatar for Narue
0
60
Member Avatar for argonaut

:icon_smile: hi all!! i am a newbie in this forum. can u solve me the problem of interchanging/swapping the value of two varibles without using the third variable... thanks..

Member Avatar for Salem
0
73
Member Avatar for joebenjamin

Im tring an experiment that will generate 7000 integer random numbers and save them in an array. Then I need to copy these 7000 values into a second array, so that I have two identical integer arrays. In a function, I want to sort the first array with an un-optimized …

Member Avatar for Tight_Coder_Ex
0
92
Member Avatar for jainam2209

Please can anyone help me out of this problem? I want to know that how can we reboot computer (any OS) using C language?

Member Avatar for Ramy Mahrous
0
120
Member Avatar for gplkrsna

Hi, I have a doubt, in the following program, it prints the string returned by throwstring()function. Is the string which the function is returning is local to the function or outside of the function? Can somebody throw light on underlying mechanism.. [code=c] main() { char* throwstring(); printf("%s\n", throwstring()); } char …

Member Avatar for Narue
0
147
Member Avatar for BigFormat

Hi guys, I've got troubles with a conversion. My function: void stringFormat (char *input, int nums) receives a string like this: "name;3,45,5,6,77;" and a number indicating how many numbers in the String (in this case 5) I've got to tokenize the string in order to obtain: 1) a string named …

Member Avatar for BigFormat
0
154
Member Avatar for siddharthrainit

hi anyone can help me. My problem is when i compile my graphic program using turbo or borland c it does not show any error nor any output the screen show blank. my computer configuration is dual core processor AMD MSI K9n moter board sata hardisk N-VIDIA geforce chip set …

Member Avatar for Colin Mac
0
160

The End.