15,551 Topics

Member Avatar for
Member Avatar for BHKK

Hi, I got a problem in reading and write on file. I have to create an virtual agenda, therefore I enter a name and a number for N persons. After entering the infos if the file doesn't exist, the program create it and save the infos, if the file exist …

Member Avatar for Ancient Dragon
0
172
Member Avatar for mrgadgets

What c framework are you people using to develop a game written totally in c? Mind to share?

Member Avatar for DeanMSands3
0
163
Member Avatar for sebass123

Im not really sure where my program has gone wrong and would be thankful for any help provided. It compiles and runs up until the first function is called then crashes however I have tried multiple ways to fix it such as different names, changing the return values, changing the …

Member Avatar for Perry31
0
122
Member Avatar for mrgadgets

Let say you have came out with a software written in c is there anyway to insert a clickable icon on your desktop so you can run the program on windows desktop? c is very good but we need to get a clickable icon so we can run our software.

Member Avatar for Ancient Dragon
0
110
Member Avatar for sebass123

I am having trouble compiling this program, I have just about everything written up but the compiler errors are keeping me stuck at a standstill. In the WRITEARRAY and READARRAY function are where the main compile errors are giving me subscript is not of integral type and this is making …

Member Avatar for sebass123
0
115
Member Avatar for Samyx

I need help writing a c program to run in Unix that uses pthread library to create a thread that computes the fibonacci numbers. I should provide a parameter to the thread indicating which fibonacci number to return and use pthread_join to wait and collect the returned value and lastly …

Member Avatar for DeanMSands3
0
3K
Member Avatar for ashish karna

HI, how can i integrate these both code mentioned below so that the output displayed on the black edit box must be as:(2+2)/2+2*3=8 here is the code of BODMAS calculation: #include <stdio.h> int calc(char *exp_str){ FILE *fp; int ret; fp=fopen("calc_aux.c","w"); fprintf(fp, "int main(){ return %s; }", exp_str); fclose(fp); system("gcc calc_aux.c …

Member Avatar for TrustyTony
0
173
Member Avatar for eskavvas

Hi all, I have a very large file so I want to dynamically allocate the memory of a 2d array and then fill it up with the file inputs. Before i used malloc to make the 2d array, everything worked fine (I was using a practice small .txt). However, i …

Member Avatar for eskavvas
0
806
Member Avatar for on93

need help for this question Calculate the biggest of four integers. The user inputs four integers. Your program will determine the biggest of these four numbers and print out an appropriate message, specifying this biggest value. You are required to implement and use the following functions for this task: int …

Member Avatar for on93
0
123
Member Avatar for Skrell

First, i'm new to C and trying to teach it to myself so be gentle. All i'm trying to do is malloc a block of memory so that i can store a few strings. These strings are to be pointed at by an array of pointers so that as i …

Member Avatar for Skrell
0
98
Member Avatar for neronero

Hi I would like to make cgi-bin program which will make dynamic pictures. I know how to make cgi program which would output simple html file #include <iostream> using namespace std; int main(int argc, char* argv[]) { cout <<"Content-type: text/html\r\n\r\n" << endl; try { cout<<"<html><body><h1>Test</h1></body></html>"<<endl; } catch (exception e) { …

Member Avatar for neronero
0
337
Member Avatar for BHKK

Hi, i need an help for an error. When I run this code it crush, with this error: Unhandled exception at 0x77da331f in ES_7.exe: 0xC0000005: Access violation reading location 0x00000004. Process returned -1073741819 (0xC0000005) I translated some parts of the code to better understanding NB: When I run this code …

Member Avatar for BHKK
0
602
Member Avatar for neronero

Hi, i'm programing in CodeBlocks (http://www.codeblocks.org/). I would like to add Dlib (http://dlib.net/) library to my project. How can I do this? I went to my project "Build options..."->"Search directories"->Compiler and added path to "dlib" folder. I did the same for "Linker" and "Resource compiler" (more info abaut adding libaries …

Member Avatar for Ancient Dragon
0
482
Member Avatar for somjit{}

# problem with code for converting decimal to other bases # when i give any input, a window appears saying "**a problem has occured, windows needs to close**" ![Cprob1](/attachments/large/3/Cprob1.JPG "Cprob1") i cant understand what im doing wrong here. any help will highly appreciated :) this is my code: #include<stdio.h> #include<conio.h> …

Member Avatar for somjit{}
0
172
Member Avatar for eskavvas

Hey broskis! I've only taken one class in introductory programming and my internship wants me to organize some excel data (it's in txt now). We never went over files in my c programming class so I'm struggling with this code a bit. For practicing purposes my text looks like this. …

Member Avatar for eskavvas
0
180
Member Avatar for aasi007onfire

in our college we have a repeated C aptitude question... which goes like this.... [code] int i=5 printf("%d %d %d", i--,i,i++) [/code] and the answer given to us was 5,6,5.... when asked it was said that the compiler evaluates printf from right to left...... can somebody throw some light on …

Member Avatar for deceptikon
0
277
Member Avatar for on93
Member Avatar for L7Sqr
0
148
Member Avatar for alaa sam

hey everyone Well currently I'm on a very long holiday and I'm trying not to waste my time doing nothing . So can any one tell me where I can get some tasks or anything to tell me what to implement ?? so that I can learn new things in …

Member Avatar for madelinekim
0
323
Member Avatar for newbie1234

How to implement sizeof api. Means sizeof is already there but i do not want to use that. Major question is .... If i want to use size of int. than i can get by pointer but do not know in the case of array of int. I think that …

Member Avatar for sepp2k
0
125
Member Avatar for shibu2all

void quick_sort (int *a, int n) { if (n < 2) return; int p = a[n / 2]; int *l = a; int *r = a + n - 1; while (l <= r) { while (*l < p) l++; while (*r > p) r--; if (l <= r) { …

Member Avatar for sethlahaul
0
185
Member Avatar for sparsh610

hey starting data structers through pointers , i don't know how to reverse a singly linklist? pls help

Member Avatar for sethlahaul
0
168
Member Avatar for lastbencher

I made the following functions for deleting a node of a singly linked list. 1. Can these functions be improved furthur? 2. Is it necessary to free the memory of the node that is deleted? nodep deleteByValue(nodep p, int value) { nodep temp = p; if(temp->data == value) return temp->next; …

Member Avatar for sethlahaul
0
212
Member Avatar for on93
Member Avatar for Lucaci Andrew
0
290
Member Avatar for Nirvin M

Why does the following snippet produces different result than expected? #include <stdio.h> int main() { int i = 5; printf("%d %d %d", i++, i++, ++i); getchar(); } I compiled and run this code with Visual C++ 2010 and it produces the output 7 6 8 instead of 7 6 6 …

Member Avatar for TrustyTony
0
181
Member Avatar for lulug76

I am wrote a program that generates 20 random numbers from 1-99 and put them into an array. I am trying to sort them with a bucket sort, but I can't figure out how to do it. I have searched google and yahoo for information but everything I find just …

Member Avatar for deceptikon
0
193
Member Avatar for kase20

Hi everyone. I wrote the following code: if the number entered is even ie if n=6 , the column of # should be at the 3rd column (ie 6/2) if the number is odd ie if the number is 9, then the column of # should be at the 5th …

Member Avatar for kase20
0
153
Member Avatar for ashine80
Member Avatar for hwoarang69

hi i am programming for about 4 years and i want to learn how to make a operating system. for ex window, mac or unix. And i am think of storing it on a disk. I have no idea how to get started. can any one tell me the steps? …

Member Avatar for Schol-R-LEA
0
243
Member Avatar for jeevsmyd

For my OS lab we have linux at college and the question is to find the factors of a number and pass it use pipe function from child to main process. I googled up the syntax of pipe and I find it difficult to understand the idea. You need a …

Member Avatar for Lucaci Andrew
0
204
Member Avatar for dorien

I am trying to run an easy Android ndk app in cpp, but I get UnsatisfiedLink Error for the Generate() function. Any help would be appreciated. I am quite fluent in c++, but my java is a little bit rusty. I have been trying a lot of tips from the …

Member Avatar for dorien
0
278

The End.