15,552 Topics

Member Avatar for
Member Avatar for pprabhakar

i want to compilation flags, how many are there give me some flag names?

Member Avatar for Salem
0
229
Member Avatar for prasath

hi, will someone point me the reasons why a call to [B]malloc [/B]fails even if we have enough memory ?

Member Avatar for dubeyprateek
0
3K
Member Avatar for jobs

I have a CProgramA that need to call CProgramB just before CProgramA terminates. How can this be achieved?

Member Avatar for Salem
0
235
Member Avatar for corneliu9d

Hello! I'm newly registered, but I have taken a look here before. More precisely, [URL="http://www.daniweb.com/forums/thread73544.html"]here[/URL], a thread which helped me a lot, as I were a total beginner in working with MIDI. My problem is that, though I don't get any errors, I don't hear any sound. The funny thing …

Member Avatar for corneliu9d
0
168
Member Avatar for AbberLine

For this question I would like to reffer to my previous thread: about my game project for school: [URL="http://www.daniweb.com/forums/thread102003.html"]http://www.daniweb.com/forums/thread102003.html[/URL]. I would like to execute a function every few miliseconds. Say every 5 miliseconds. [QUOTE=invisal;495957] This part should call every 5 miliseconds. [code=cplusplus] bool Render() { // Render all the 20 …

Member Avatar for AbberLine
0
1K
Member Avatar for AbberLine

Hi This question gives me a weird feeling, actually I'm not really sure if this is relevant. Anyway, here we go: I'm (still) busy coding my first game in C. The goal is simple: the player is a fisherman and needs to catch all the fish in the water. If …

Member Avatar for AbberLine
0
385
Member Avatar for arunpawar

is there any tutorial for creating simple windows programs which explains easy step by step . i'm looking for tutorial to create windows programs using this.

Member Avatar for Ancient Dragon
0
50
Member Avatar for carobee

hi, i wanted some help in File handling in C. consider i have one File like a.txt a.txt [Marks] Physics = 60 Chemistry = 80 ;Prac(25) Maths = 98 [Grade] Neatness = B Attention = A ;A+(9.5) Now suppose i have to insert new values in this file for the …

Member Avatar for ssharish2005
0
138
Member Avatar for kv79

Hi , I am trying to find some solution about this i try on different tutorial but with no succes. I have no idea what the author want to told me. Here the tutorial [url]http://lib.daemon.am/Books/C/[/url] pick day15 go to Linked list ,and if you know other tutorial who write about …

Member Avatar for Narue
0
79
Member Avatar for sa-al

hello i have a question .how can i write a program that gets a statement from user & prints the result sth like below: 2*3+sin(1-cos(0)) please help me

Member Avatar for ssharish2005
0
85
Member Avatar for n.aggel

hi guys, i have the following code: main.c [CODE=c] #include <unistd.h> #include <stdio.h> #include <errno.h> #include <limits.h> //defines PATH_MAX #define _GNU_SOURCE #ifndef PATH_MAX #define PATH_MAX 255 #endif int main(void) { char mycwd[PATH_MAX]; fprintf(stderr, "\nThe PATH_MAX is %d\n", PATH_MAX); if (getcwd(mycwd, PATH_MAX) == NULL) { perror("Failed to get current working directory"); …

Member Avatar for ssharish2005
0
647
Member Avatar for zawpai

Hi , Could you please give me some suggestions? I would like to create a small buffer in my code because the memory of the hardware is quite small. If so, it can't receive all of the data that I send. Sometimes, the data are over write. How should I …

Member Avatar for ssharish2005
0
113
Member Avatar for jobs

strcpy(buf, "my_id_%d_",i) strcpy(buf1, "my_com_id_%d", j) First I want to place value of i into "my_id_1" like so and copy to buf. And do the same thing in second line the code. Now I want to join both buf and buf1 so it will give me a new string "my_id_1_my_com_id_2". How …

Member Avatar for ssharish2005
0
114
Member Avatar for n.aggel

hi, i am reading the book "Operating Systems Design and Implementation 3rd edition" which analyzes the minix source code... in the part of filesystems we see this code [CODE=c]PUBLIC _PROTOTYPE (int (*call_vec[]), (void) ) = { no_sys, /* 0 = unused */ do_exit, /* 1 = exit */ do_fork, /* …

Member Avatar for n.aggel
0
103
Member Avatar for Jishnu

Hello, I know this much that I want to include two files in my program. But can I decide which files to include at run time? Is this possible? Thanks in advance, -Jishnu.

Member Avatar for Jishnu
0
353
Member Avatar for jobs

I am getting an error when I do this in C program: execl("/bin/cp","../data/data_.txt","../data/data.txt",0); error is as follows: ../data/data_.txt: missing destination file operand after `../data/data.txt' Try `../data/data_.txt --help' for more information. I tried this too, it didn't help. execl("/bin/cp ../data/data_.txt ../data/data.txt",0); All I am trying to do is this: cp ../data/data_.txt …

Member Avatar for kv79
0
653
Member Avatar for kv79

How to make win32 app with login? Is there some command or i need to make my function by myself?

Member Avatar for dubeyprateek
0
90
Member Avatar for jobs

int file file = open("./some.txt", O_RDONLY); Above line file=open giving me compile error: 'O_RDONLY' undeclared (first use in this function) What is the problem here? I am running linux and gcc 4.1.

Member Avatar for jobs
0
3K
Member Avatar for death_oclock

If I call the MessageBox function: [CODE]MessageBox(NULL, "Message", "Message", MB_OK);[/CODE] for example, the box will not appear. It will make the beeping sound, though.

Member Avatar for death_oclock
0
100
Member Avatar for kv79

Hi , [code=C] /* Inputs a list of strings from the keyboard, sorts them */ /* in ascending or descending order, and then displays them */ /* on the screen. */ #include <stdlib.h> #include <stdio.h> #include <string.h> #define MAXLINES 25 int get_lines(char *lines[]); void sort(char *p[], int n, int sort_type); …

Member Avatar for kv79
0
75
Member Avatar for kv79

Hi i always mix up a NULL and '\0' and 0. Can you write me when to use these things?

Member Avatar for kv79
0
170
Member Avatar for Archimag

Hello people......just wondering if i can get some help.... I need to solve the next problem: We insert a number of students "k" and a number of chairs "n".....we need to print on the screen all the possible seating arrengments.....as one space always got to exist between two students.......the formula …

Member Avatar for Archimag
0
156
Member Avatar for jobs

I have a config file which includes how many files I need to create. So my program reads the config file and will create those files. Where I am stuck is I do not know before hand how many File pointers I need. I get to know quantity of files …

Member Avatar for Jishnu
0
909
Member Avatar for jobs

When you read file in C and move to next line and so on. This seems you have to access file top to bottom sequentially without skipping lines. I need a way to read very 5th line or something similar to it. I am just concerned with data that is …

Member Avatar for yagiD
0
104
Member Avatar for zawpai

Hi all, I am zawpai. I would like to create the timer function in C to do some checking. Could you please show me how to write the code about it. Thanks, zawpai

Member Avatar for zawpai
0
155
Member Avatar for Valmian

Well hello.. I am making an CSV (comma seporated values) loader, in which the first row are strings and all the other are integers. From what I've got when I load each indivisual string into an individual char array first few char arrays when printed are twice as big as …

Member Avatar for Duoas
0
384
Member Avatar for temyreal

Hello all, i have a little problem printing the upper symmetry of the multiplication as shown in the attachment (in C). can anyone help?

Member Avatar for temyreal
0
84
Member Avatar for jobs

[QUOTE]aptr = malloc(nrows * ncols * sizeof(int)); rowptr = malloc(nrows * sizeof(int *));[/QUOTE] What is the different with have no * inside sizeof(), eg sizeof(int), vs sizeof(int *)?

Member Avatar for Narue
0
343
Member Avatar for jobs

char stmt_buf[1024], buf[(1024*2)+1]; stmt_buf ="SELECT id, title FROM post LIMIT 5;"; I get an error: connect2.c: In function ‘main’: connect2.c:217: error: incompatible types in assignment

Member Avatar for Narue
0
103
Member Avatar for jobs

I am running linux. This problem maybe implemented many times over. I am not hitting right google search term. I need a way to send email from my c program, if that program fails to excute some other part of the code. Any gurus like to shed some light on …

Member Avatar for Ancient Dragon
0
84

The End.