First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
help needed with void pointers.
Hi, I'm trying to create a generic link list. Here's the data structure for node: Code: typedef struct node_s { void *data; struct node_s *next; }node; Now let's say I want the data pointer to point to a vector structre: Code: typedef struct { double coord[3]; }vector; I can assign dat... 2 Jul 2008 06:45
Crashes on a NULL pointer
I'm learning the C language by writing a simple extension for PHP that generates image thumbnails. I am also using GD for image manipulation and file management. I keep running into a NULL pointer on the line where I am writing the image to the disk. I inspected the values of im and fp and both are non-NULL.... 2 Jul 2008 03:42
New Projects for freelancers
New and exciting C/C++ projects are added each day to this website. Programmers of all levels will find interesting projects here. Check out the projects available right now before someone else bags a project you could have done. http://www.getafreelancer.com/affiliates/jaikjoel/ ... 27 Jun 2008 15:14
Array "division"
I have two numbers each has 100 digits, emplemented in 2 arrays of integers for example: 1. short a[100] = {9,8,7,6,5,4,3,2,1,.....} 2. short b[100] = {1,2,3,4,5,6,7,8,9,.....} How can I divide a and b to get real numbers c(a/b) and d(a%c) as arrays? Will appreciate if someone give me high level alghoritm or just... 27 Jun 2008 03:56
Simple Thread Class using posix threads
It's my first post on this list.. can anyone help me? i have a very simple class that creates threads on linux, but it doesnt work. i tried this code and using 'extern "C" void* functionToRun(void* argc);' but this one shows a linker error. code: ========= Runnable.h ============== #include <iostream> #ifndef... 26 Jun 2008 06:22
Simple problem, don't get it
Hi , I am self studyign "Essential c++" which gives the following problem and code. I don't get the code: the condition in the while statement uses cin, but shouldsn't you input a variable using cin and then use it with the while loop? Also how does cin>>while satisfy the problem? i tried running the code as giv... 26 Jun 2008 07:23
file write
Hello group members, i am a newbie and trying to write array values to a file. array values are dynamic so i need to create file first and later append the values here is the code i tried... the file is created but it is empty can any one help.... void filewrite (unsigned int *sad, unsigned char *p... 25 Jul 2008 08:22
Heap corruption detected!!
I am reading the "C++ Primer, 4th Edition". I compiled the following codes, // C-style character string implementation const char *pc = "a very long literal string"; const size_t len = strlen(pc +1); // space to allocate // performance test on string al... 24 Jun 2008 23:37
cheap discount prada chanel coach puma versace wallet sneakers
www.efootjoy.com wholesale Michael jordans shoes fusion force shoes wholesale jordan shoes air force ones dunks, sandals, glasses, puma air max 87 89 90 95 ltd timberland jeans ugg boots lacoste sandals hoodies, t-shirts, mauri shoes, dsquared , hogan shoes, dunks , red monkey, polo t-shirts, evisu jeans, bbc je... 24 Jun 2008 20:33
Division result is always 100 instead of 99.99
Hi All, My coding have following stmt in which I divide large number say X by number y which is sligthly greater then X. Say Y = X + 1 double successRate = 0; double passedCandidates = 10000000 ; double failedCandidates = 1; sucessRate = (passedCandidates * 100) / ( passedCandidates + failedCandidates... 25 Jun 2008 10:52
First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19