15,550 Topics

Member Avatar for
Member Avatar for ithelp

which can pick up executable if it is available in PATH like [code] int execv(const char *path, char *const argv[]); [/code] I do not want to specify full path , I want it to search in my PATH and execute .

Member Avatar for jephthah
0
86
Member Avatar for mashimaro

Hey, i'm writing a client-server, so far i've got this: my structure [CODE]typedef struct mesg{ long type; pid_t pid; char data[64]; } MSG;[/CODE] the client [CODE]int main(int argc, char *argv[]){ int MSGid, msglen, mpid; MSG m; MSGid = msgget(KEY, 0600); while(1){ memset(&m, 0, MSGLEN + sizeof(long)); m.type = 1; mpid …

Member Avatar for mashimaro
0
178
Member Avatar for JimD C++ Newb

Good afternoon, all! I'm in the process of writing a chat program. The server is completed, and if I simply telnet into the server with 2 different windows, 2 people can chat in fluid fashion. However, when I connect 2 clients, the chat appears in lock-step fashion. (ie. Client 1 …

Member Avatar for JimD C++ Newb
0
426
Member Avatar for robbyboy20

[code=c]# include <stdio.h> # include <conio.h> # include <stdlib.h> int main(int, char**); void welcome_message(void); void main_menu(void); void second_menu(void); void add_customer(void); void edit_customer(void); void print_report(void); void cust_menu(void); void exit_message(void); int main(int argc, char *argv[]) { char menuOpt; int isExit = 0; if (argc > 1) { printf("%s : Start Up Error …

Member Avatar for jephthah
0
183
Member Avatar for smitem03

I am a new user on this C and have a hard trouble with I/O's. If you could let me know what I am not clarifying. Thank You! [code] #include <stdio.h> #include <stdlib.h> // employee structure definition // struct year2009Data { float SSN; // employee social security number // char …

Member Avatar for Ancient Dragon
0
159
Member Avatar for Dewey1040

Write a program to compare two text files. The names of the files are to be supplied as command line arguments. The program should write a message to the screen indicating that the files are exactly the same or that there are differences. If the files differ, the program should …

Member Avatar for Ancient Dragon
0
80
Member Avatar for dustman

[I]<< split from [URL="http://www.daniweb.com/techtalkforums/thread28858.html"]this[/URL] >>[/I] [quote=Narue;145474]>u asking me if i cant code why should i be asking about sockets? No, I was asking you what you know so we don't waste time going over things that we don't need to. But if you want to be a dick about it, …

Member Avatar for jephthah
0
163
Member Avatar for LiBOC

Dear all, Background: Rabbit Microcontroller. Accessing the board via Telnet. TCP/IP Uses VT100 Emulation Telnet. I had been thinking how do I check whether a user had keyed in an UP ARROW. I tried to do a HEX key capture and they returned me 3 HEX numbers. I am using …

Member Avatar for jephthah
0
262
Member Avatar for Dewey1040

There is a famous mathematical conjecture called the Goldbach conjecture, that every even integer greater than 2 has the property that it is the sum of two prime integers. Write a C program that will prove that this conjecture is true for even numbers between a START value and a …

Member Avatar for Aia
0
119
Member Avatar for rania_s

please i need help because i am beginner in c progtamming! i want in selection 1 to intrance grades from keyboard in array[7],from 0 to 10. in selection 2,that grades are display and the average of them. in selection 3 i want to sort them with bubblesort function,inside the code. …

Member Avatar for Ancient Dragon
0
108
Member Avatar for rstewar

I am trying to read a data file with this format: 2 2.0 5.8 4 -3.8 1.4 2.0 5.8 3 1.0 2.0 3.0 5 2.2 3.4 4.5 -1.0 2.0 The first number is the number elements and the numbers under are the elements. I would like to read the first …

Member Avatar for Ancient Dragon
1
3K
Member Avatar for Philmagrill

I am creating a program in c that finds out the weather and changes the desktop background accordingly. So far i have managed to connect to the internet and DL the bbc rss feed to the file, which i can then open up. I have almost managed to get it …

Member Avatar for jephthah
0
107
Member Avatar for britto

hi ...... im trying to create a simple c compiler..... how to link the header files to c code????? can the linking process can be done in assembly language... or is there a linker for download.... please help.... thanks in advance...

Member Avatar for jephthah
0
98
Member Avatar for smitem03

// [code=cplusplus] #include <stdio.h> int main (void) {int currentornew; /*This is where if the user inputs a 0 they will automatically be brought to insert hours for employees.*/ int newemployee; /*This is where if the user inputs a 1 they will autmatically be taken to information of adding a new …

Member Avatar for jephthah
0
99
Member Avatar for tasosa

Hi all; I have problem in C. the problem is ,Here is my code [code=syntax] #include <string.h> #include <stdlib.h> #include <stdio.h> /* uni() function takes an array an thier size.and it produce an array which is include unique element */ int uni(char **arr,int size) { int unique = 0; /* …

Member Avatar for Ancient Dragon
0
153
Member Avatar for bemo55

I am trying to store all of the tokens in an array. But after it store racecar in the array i get an access violation,Unhandled exception at 0x6515f8e0 (msvcr90d.dll) in Assignment2.exe: 0xC0000005: Access violation reading location 0x00000000. Here is the file im reading from: Bob went to town in a …

Member Avatar for jephthah
0
227
Member Avatar for death_oclock

I'm getting an error (unhandled exception writing address so and so) trying to modify a string. It gets weirder though. Let me show what i've got: --Main.c-- [CODE=C]#include "stdafx.h" #include "commands.h" int main(int argc, char* argv[]) { char word[256]; int id; strcpy(word, "move"); strToUpper(word); printf("%s", word); id = getCommandId(word); if(id …

Member Avatar for death_oclock
0
190
Member Avatar for bemo55

Hello. I was wondering how to read strings from a file word by word and store the words into an array in c. I am having to write a program that tests words to see of they are palindromes from a little paragraph i wrote in a file. I've been …

Member Avatar for bemo55
0
127
Member Avatar for GarethSmith

Hi i'm new to coding and am having a problem with a program i'm making, i have got it down to 4 errors which are on a single line, but i have no idea was wrong and how to solve it. [code]#include "stdafx.h" #include <iostream> #include <stdlib.h> #include <string> #include …

Member Avatar for Aia
0
196
Member Avatar for meghs007

I have problem while i am making calendar program in program condition is that -> input month and year and display the calandar of given month pls post the source code

Member Avatar for Aia
0
67
Member Avatar for WarB1rd

Hey there. I am doing some c program that simulate a call center using threads. In the print function it gives me this error: aggregate value used where an ineteger was expecter. I already tried to make a cast to int but it still give me this error. The variable …

Member Avatar for WarB1rd
0
4K
Member Avatar for zoner7

Alright. This is a pretty simple program. The program simply reads a simulated DRM (basically an encrypted plain text file) file that was encrypted using RC4. It then reads a plain text file that contains the exact same plain text that the DRM file would decrypt too. (This is assuming, …

Member Avatar for jephthah
0
169
Member Avatar for usman2k4u

Write a Program to generate a random connected undirected graph on a n vertices by generating random pairs of integers between 1 and n. Compute how many edges are needed to produce a connected graph(as a function of n). Implement the union-find algorithm, with the Weighted Balancing and the splitting …

Member Avatar for usman2k4u
0
284
Member Avatar for kha_504

i have another problem i can't determine final database ER but for online bus reservation can u help me

Member Avatar for Ancient Dragon
0
51
Member Avatar for #include_rose

Hey guys, I have implemented the Knuth Morris Pratt algorithm and wanted to share the C code with all of you. If you feel it can be optimized please let me know. Feel free to play with it or use it for your school work :icon_biggrin: *************************KMP****************************** [code=c] #include<stdio.h> #include<string.h> …

Member Avatar for jephthah
0
210
Member Avatar for BruenorBH

I am trying to create radio buttons in Dev-C++ using C. I am new to Win32 API programming also. What I have done so far is create the main app window, added textboxes, check boxes and a few radio buttons. The only issue I have now is that You cannot …

Member Avatar for BruenorBH
0
285
Member Avatar for Francis87

Hey Guyz, i hav a pretty simple task, i had got some text files of data, which are like scores. and i need to be able to edit the txt file to say change a charector A -> X or B-> R etc.. etc.. it would be great if i …

Member Avatar for ArkM
0
251
Member Avatar for jaguar_s

I need to read data from a data register n times and calculate the average of that and write it into another data register.... I dont know how to do this at all... Can anyone help me...

Member Avatar for ArkM
0
107
Member Avatar for oracle123

Hi all, I am a newbie to C programming world. In my program I want to log information into a log file whose file name should be filename_date_time I am using following code to write information but need help in changing the file name from filename to filename_date_time. [CODE] #include …

Member Avatar for jephthah
0
4K
Member Avatar for want_to_code

[code=c] // a code which prints "hello world" #include<stdio.h> int main() { (&printf)("hello world"); return 0; } why does the above code work? #include<stdio.h> int main() { char str1[]="hello"; int j=762; char str2[]="hello"; if(str1==str2) printf("true %d\n",--j); else printf("\nfalse %d\n",j--); return 0; } [/code] //the above code prints "false 762", why? …

Member Avatar for Nick Evan
0
295

The End.