15,551 Topics
| |
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 … | |
What c framework are you people using to develop a game written totally in c? Mind to share? | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) { … | |
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 … | |
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 … | |
# 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> … | |
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. … | |
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 … | |
| |
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 … | |
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 … | |
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) { … | |
hey starting data structers through pointers , i don't know how to reverse a singly linklist? pls help | |
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; … | |
need help !!!! anyone know how to draw a christmas tree in c program with 3 for loop ???????????? | |
| 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 … |
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 … | |
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 … | |
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? … | |
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 … | |
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 … |
The End.