15,552 Topics

Member Avatar for
Member Avatar for kvprajapati
Member Avatar for kvprajapati
0
168
Member Avatar for lagirabo

[code=c] #define AUID 34567 #include <stdio.h> #include <math.h> int main() { float id = AUID; int floatSize = sizeof(float); unsigned char *bits; int i, part2; int mant = 128; bits = (unsigned char*) &id; for (part2 = 0; part2 < sizeof(bits); part2++) { printf("+"); for(i = 0; i < 8; …

Member Avatar for lagirabo
0
98
Member Avatar for javaAddict

Hi everybody, I have found these books [URL="http://www.amazon.com/Learning-OpenCV-Computer-Vision-Library/dp/0596516134/ref=sr_1_1?ie=UTF8&s=books&qid=1242936833&sr=1-1"]Learning OpenCV: Computer Vision with the OpenCV Library[/URL] from [B]AMAZON[/B] and this: [URL="http://www.papasotiriou.gr/product.ebook.asp?pfid=1761941&prid=1016178"]Learning OpenCV[/URL] from my [B]LOCAL[/B] store Which one do you suggest to buy? Should I wait and order the first one? OR is the second at my local store as good …

Member Avatar for jephthah
0
99
Member Avatar for elitedragoon

Say I got a number, I enter it in. (like 5). Now I want to convert that to a text string that represents that number (five). I also want it so that if I were to print a big number like 543 or something it will print that out in …

Member Avatar for ArkM
0
144
Member Avatar for Mr.UNOwen

Hello, Does anyone have a clue why using setitimer() and SIGALRM won't work if you modify the terminal using termios.h? Every time I run it I get segfault or the original signal handler (not the one I set). Just having [CODE] struct termios oldTerm, newTerm;[/CODE] seems to cause trouble. If …

0
69
Member Avatar for Hodson

I've got to write an application in C which can take an input file containing RISC instructions and then output (both to screen and an output file) the encoded version of these instructions. I will be working with the following op-classes: 0 1A 2A 2B 2C 3A 3B 3C 3D …

0
71
Member Avatar for madtorahtut

Hello! I'm having some trouble understanding how arrays are passed. From my understanding, my code here passes a pointer to the first element of the blah array, which is "var1=5". My question then is how can I move to the next element of my blah array, "var2=234234" in my filevars() …

Member Avatar for madtorahtut
0
305
Member Avatar for cool_aj

Hi there, I tried to use the above compiler for C.For every program I get the following message. I followed the tutorials,but can't figure out what am I missing in order to compile and run programs efficiently.It is not the code,as I have tried a number of programs which run …

Member Avatar for cool_aj
0
126
Member Avatar for cool_zephyr

hey there..can you please help me write a C program to put the Caps Lock on??

Member Avatar for Salem
0
330
Member Avatar for sanushks

Is there a function in C which can read dual delimiters, there is strtok which works using a single delimiter.. Is i need to decode a file as such 123#!45!2#!678#!666#!45!6#! in the above case #! is the delimter, if i use strtok and use(#! as delimiter) 45!2 in the above …

Member Avatar for cool_zephyr
0
209
Member Avatar for Pramoda.M.A

code is : code is : path = (char*)malloc(100); pname = (char*)malloc(100); path = "ragHu"; strcpy(pname, path); free(path); whats wrong with this?

Member Avatar for Salem
0
123
Member Avatar for sanushks

Hi All, I'm using gdb to debug a C code which does file processing. The file i'm processing has about 100,000 records. The code runs fine until the 30,000 records and after that it produces garbage value. Could i use gdb to run the code until it reaches 30,000 records …

Member Avatar for sanushks
0
106
Member Avatar for sanushks

Hi All, I'm running a C code on cygwin compiled with gcc, the code basically does file processing, it runs fine on my PC, but when run on a Solaris machine, it gives Bus error and core dumps. Is it a known issue? If not, is there any way i …

Member Avatar for sanushks
0
286
Member Avatar for tksrules

I have answered few multiple choice questions.I am sure i have answered almost 95% correctly. Maybe you guys can identify if i have committed any mistakes.Just identify not solve.I will solve them myself.Just a hint what is wrong would help as i want to be sure all answers are perfect. …

Member Avatar for jephthah
0
203
Member Avatar for miniroselit
Member Avatar for Luckychap
0
145
Member Avatar for jephthah

so im working in an environment (National Instruments) that auto-generates header files for the GUI. in my GUI, i have 150-some odd LEDs arranged in a matrix to represent a large relay bank. my LEDs are named and sequenced numerically like [code]PANEL_LED_1 PANEL_LED_2 ... PANEL_LED_150 etc...[/code] which would allow me …

Member Avatar for jephthah
0
94
Member Avatar for lipee36

Hi, i'm having the same problem here... I have to send a xml file from a server and receive 16 bin files for answer.. I know how to send string and etc.. and tried to use sendfile() to send at least the xml file.. but it didn't work out... here's …

Member Avatar for jephthah
0
103
Member Avatar for javaAddict

Hi, I am trying to use this method: [URL="http://www.cs.indiana.edu/cgi-pub/oleykin/website/OpenCVHelp/ref/OpenCVRef_CxCore.htm#decl_cvCheckArr"]cvCheckArr[/URL] As a parameter I pass an IplImage and it compiles, but when I tried to run got this error: "Unsupported format in function: cvCheckArr .cxmathfuncs.cpp " I checked the above file and found from the code that it tries to convert …

0
72
Member Avatar for Pramoda.M.A

Hi All, I am facing problems with free() API of ANSI. I am using Visual Studio 2005. I am using 2 char pointers. If i copy from one to another and after if i try to free source pointer, it is giving exception. How to debug this problem? Please help …

Member Avatar for jephthah
0
82
Member Avatar for cool_zephyr
Member Avatar for Salem
0
102
Member Avatar for madtorahtut

Hello! I am rather new to c, and I am having a parsing problem. What I am trying to accomplish: I have a file filled with assignment statements such as: [CODE]var1=5 var2=80[/CODE]...etc. I want to parse through the file and then do a check to see if the variables exist …

Member Avatar for Narue
0
96
Member Avatar for Dewey1040

Ok i know this has all sorts of issues, im getting tons of errors, any suggestion on where to start? [code=C] #include <stdio.h> #include <stdlib.h> typdef char byte; void memcopy( byte *to, byte *from, int count ) { while ( count-- > 0 ) *to++ = *from++ ; } int …

Member Avatar for ArkM
0
176
Member Avatar for Quessir

Hey guys. Trying to implement associative array with the help of libJudy. Here's small test, that doesn't work. Please, help me to find, where i did wrong? [CODE] #include <assert.h> #include <Judy.h> typedef struct { char *hash; int id; int views; } Watch_t; Pvoid_t dict = (Pvoid_t) NULL; PWord_t rcw; …

Member Avatar for Ancient Dragon
0
340
Member Avatar for scru

Do I do it like: [code=C] wchar_t *str = L"12345"; [/code] because that doesn't seem to be working.

Member Avatar for scru
-1
155
Member Avatar for jupkw

hello the problem that i am facing is that whenever i click on the tc icon to start the compiler, the screen turns black first (which is normal). and then after about two seconds the compiler is exited from even without starting it. Even when i try running the exe …

Member Avatar for vj4u99
0
252
Member Avatar for gdreisen

I'm very new to C and am working on a card game. I've got my cards and shuffle down, but I want each card to have a name. I made my cards inside an array of structs: [code] struct card { int value; int suits; int points; char name[20]; }; …

Member Avatar for dmachop
0
123
Member Avatar for Aamit

hi, In my array arr={10,20,30,40} i want to display output like 10 20 30 40 10+20 10+30 10+40 20+30 20+40 30+40 10+20+30 10+20+40 20+30+40 10+20+30+40 How to display output like this?? how to do this please help me??

Member Avatar for siddhant3s
0
497
Member Avatar for kvprajapati

I have two integer numbers. I want to find which number is greater than other one without using relational operators.

Member Avatar for Dave Sinkula
0
171
Member Avatar for richardcyper

Arrange the following list of functions in ascending order of growth rate. If the growth rate of function f is less than the growth rate of function g, you write f < g. For functions having the same growth rate, use = to denote this case. Your answer therefore will …

Member Avatar for jephthah
-1
87
Member Avatar for lolguy

Hello guys i began reading K&R but there problem in a code i dont really understand it here code of a sequeeze function [code] /* squeeze: delete all c from s */ void squeeze(char *buffer, int c) { int i, j; for (i = j = 0; buffer[i] != '\0'; …

Member Avatar for lolguy
0
162

The End.