15,551 Topics
| |
Hey! I have a problem. I've been coding Python for two years now, and it's great, but now I'd like to use a module called "ctypes" to import C function into Python. I know how to do it and all, but the problem is: I know how to program in … | |
Hello! I am writing a program to execute another process. But the argment string has " ) ( ; / \ symbols. So it does not allow me to start the program with the true string (argument)... Here is the program: the program is on the user agent string: [CODE]#include … | |
Hello everybody.. I've been wondering whether the C language can copy files from the internet into the user's device, and whether it can process web pages and databases or not.. I think that ASP can do this. However, what should I do if my server's operating system is Linux?? Is … | |
[CODE] deleteCont(){/*function in deleting contacts*/ printf("enter contact you want to delete: "); getchar(); fgets(find,100,stdin); j = 0; while(strcmp(contacts[j],find) != 0){/*start of while loop*/ if (strcmp(contacts[i],find) == 0){/*start of first while loop*/ printf("you want to delete %s",contacts[i]); size = strlen(contacts[j]); for(i = 0 ; i < size ; i++){/*start of 2nd … | |
I am finding the recursion very difficult on this one. Could someone explain this to me. If this is a famous algorithm, a link containing the explanation would also do. I thought probably a couple of magic lines from you would change the way i am looking at this. I … | |
hello, i need help with this sub program, everything ele works fine except the subprogram that should compute the smallest and largest number in the array [CODE] #include<conio.h> #include<stdio.h> #define MAX 10 int input(void); int range(int i,int *s1,int *s2,int *s3,int *l1,int *l2,int *l3,int f[MAX],int hf[MAX],int lf[MAX]); void output(int v,int s1,int … | |
i wrote a program to take text from a file of my choice named "data" and print it out on the screen, how can i tweak this so taht when the text comes out , it would be all in upper case using toupper?? this is the code [CODE]#include <stdio.h> … | |
please help me fix these problem,,,, when i'm running the program it exits emediately [CODE]main()/*Start of the function main???*/ { do{/*do while loop initialization*/ print(); scanf("%c",&choice1); switch(choice1){ case 'A': case 'a': addContact(); break; case 'F': case 'f': search(contacts); break; case 'v': case 'V': list(); break; case 'e': case 'E': edit(contacts); … | |
Hi, At the moment I am trying to open a log file with notepad.exe while the original process continues. As I am developing for Windows, fork() is not available for me. I googled alot and found a good reference to opening processes ([url]http://www.yolinux.com/TUTORIALS/ForkExecProcesses.html[/url]), however they all put the original process … | |
Hi, I am starting to learn C programming. I recently stumbled across a structure below #include <stdio.h> #include <stdlib.h> [CODE] #include <stdio.h> #include <stdlib.h> typedef struct { int value; } fteid_t; typedef struct { fteid_t *fteid; // Optional Ins 0 } context_t; typedef struct { context_t default_bearer; } send_request; [/code] … | |
Getting Error after installing Turbo C.... how to rectify this problem.... Reply to this E-mail id: [email removed] ERROR: Sorry, unrecoverable internal error. Press ESC. EXCEPTION 13:general protection fault at 036F:3253 error code 0000 ax=0000,bx=0000,cx=0005,dx=0000,di=0000,si=0001 ds=069F limit=FFFF segment# 004D C:\TC\BIN\TC.EXE es=0000 limit=INVL segment# cs=036F limit=3881 segment# 001A C:\TC\BIN\TC.EXE ss=069F limit=FFFF … | |
Hey, this code accepts data (type int) into a 4 by 4 array. im using 1234 as an example when entered, the data would be stored as: 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 the code the rotates it once to … | |
I'm making a program that calculate wages, but I'm having problems in seeking the rates in the file, an example of one table.[URL="http://3.bp.blogspot.com/_xrZFmlhX0Ts/SYofqkmc1bI/AAAAAAAAO-Y/XfgESqYqZms/s400/tabela+2.JPG"]http://3.bp.blogspot.com/_xrZFmlhX0Ts/SYofqkmc1bI/AAAAAAAAO-Y/XfgESqYqZms/s400/tabela+2.JPG[/URL] the function receiving the salary and number of dependent, will seek in the file for the correct rate that this person as to pay. I thought of … | |
Hi, Recently I started working on a project (it's called 'fd') that needs to retrieve the current processes running. It is written in C using the WinAPI. I am running Windows XP SP3 and am using MinGW compiler with Code::Blocks. After much searching I found the PSAPI to provide the … | |
how do i solve this error in borland c++? i really need help asap. thx in advance. =) | |
Hey , i am new to data structure and specially Graph . And i was going through a problem for finding the best path [url]http://www.codechef.com/JULY11/problems/LOKBIL/[/url] And couldn't think something usable. SO , if u guys help that will be a good start of me on this site too. PS i … | |
whenever I start programing,i.e. #include<stdio.h> and compile it. An error is shown and message is displayed as "unable to open the file stdio.h". Please help me to remove the error. | |
I have set up the following structs: [CODE]typedef struct lineList { int lineNum; struct lineList* Next; }*Line; typedef struct DictionaryList { char* word; Line lines; struct dictionaryList* Next; }*Dictionary; and then I have defined: Dictionary head = NULL; /*is a pointer to head of dictionary list */ Dictionary node = … | |
[CODE] typedef struct bunny_info{ /* MORE MEMBERS HERE */ struct bunny_info *nextBunny; }bunny; bunny *make_bunny(){ bunny *bunnyPtr; /* SOME CODE HERE */ return bunnyPtr; } bunny *makebunny(bunny *bunnyList, short int makeCount){ bunny *newBunny = NULL, *endPtr = bunnyList; while(makeCount > 0){ if(bunnyList != NULL){ bunny *temp = bunnyList; while(temp->nextBunny != … | |
Hi friends I am a beginer in C. I want to make a simple program in which there are two balls on the screen. These two balls will Strike when the user presses any key ? Please help me with full code snippets. | |
Hey everyone. I'm really need help for important assignment. I need submit before 10 Jully 2001. but i'm stuck with my task. Can someone help to correct my assignment. Thank so much. Love u all.. This might a simple program but i really stuck.. help !!! QUESTION 1 As a … | |
[CODE]//====================================================== //this is the grading sorting program for part one //====================================================== #include <stdio.h> #include <stdlib.h> #include <string.h> #define SIZE 10 int main() { FILE *ifp; // file pointer, points to the file char filename[32]; // store file name int ID [SIZE],grade[SIZE]; int i; int sum_grades = 0; //opening file by … | |
[CODE]int main() { // stating my primivative data types and variables float num1,result; char symbol, choice; printf("Calculator Is ON\n"); do{ result=0.0; //assign 0.0 to result printf("Result=%.1f\n", result); scanf(" %c",&symbol); while((symbol!='r') && (symbol!='R')) { scanf(" %f",&num1); switch(symbol) { case'+': result=result+num1; printf("Result = %.1f\n",result); break; case'-': result=result-num1; printf("Result = %.1f\n",result); break; case'*': … | |
| I have heard that games can be built using c language. I request someone to post the code for a simple game.(if possible,simple code too).. |
[CODE]#include<stdio.h> #include<conio.h> void pass(int); void main() { int a=23; int c; clrscr(); pass(a); printf(" %d ",c); getch(); } void pass( i) { //int i; if(i>40) return 1; else return 0; } [/CODE] | |
[code]#include <stdio.h> #include <stdlib.h> int main() { int numbers[10] = {12,33,51,1,-1,97,7,23,0,-99}; sort(numbers,10); display(numbers,10); return 0; } void sort(int *numbers, int size) { /* Hop you could help me provide codes to sort the numbers. after calling this function, the numbers array in main should be sorted. hint: use the size … | |
hi friends... i am doing my project and the title is "IMPROVEMENT OF ABC ALGORITHM FOR CLUSTERING".... I am not getting how to start the coding... can any one please help me out how to start the coding... thanks in advance | |
I am making a program the enqueues a number at index 0. I also made a function for it, as written below: [CODE] //main #include <stdio.h> #include <stdlib.h> #include "functions.h" main(){ int *queue = NULL; int size, choice, aNumber, numberOfQueues; do{ printf("Enter Array size: "); size = input(); allocateMemory(&queue, size); … | |
hey, this is supposed to collect data into a 2 by 3 array. believe it or not, my teacher wrote this problem and he spent 20 minutes trying to figure out why it wasn't running properly. anyone care to help me figure out what was wrong with it?? [CODE]#include <stdio.h> … |
The End.