I am writing a program that reads integers from a file and puts them into shared memory. The purpose of the program is to add the integers up using two different divide and conquer techniques using...
Type: Posts; User: RazielX
I am writing a program that reads integers from a file and puts them into shared memory. The purpose of the program is to add the integers up using two different divide and conquer techniques using...
Oops...sorry. I guess I was in too much of a hurry to see my mistakes. Thanks for your help and patience.
Hey guys, I have a stupid question. I am trying to make a program that writes a set of a random number of random integers to a file for a program that I am writing for a class assignment. The...
I looked at the man pages on the SunOS 5 system at school. Even printed them out...and they were kinda confusing...It didn't look as simple as the one you just showed me. It probably was and I was...
Oh, I looked at the man pages and I was confused as to how to implement it. I was trying to use confstr the same way as you were, but I didn't know you could simply put NULL and (size_t)0 as the...
Hey, I'm writing a program that checks various attributes of the system it's ran on for my operating systems class. I did every one except two...one using the function confstr(), the other using...
How do I find the md5 checksum? Also, while downloading various other linux's (or linuces?), I found Debian...I've had this curse with linux...I tried Red Hat, SuSe, and two live CD versions...
Hey, I'm new to linux, so I downloaded the SuSE 9.1 Personal Edition ISO from www.suse.com, and burnt it to a CD. When I rebooted and tried to install it, YasT came up and everything went...
I am working on a numerology program for a friend of mine. I am trying to implement a simple menu to this program, but it seems to skip the read() function whenever I try the menu. If I don't use a...
I am working on a numerology program for a friend of mine. I am trying to implement a simple menu to this program, but it seems to skip the read() function whenever I try the menu. If I don't use a...
Sweet, thanks!
What is the syntax of gethrtime(), and how do you use it in a program? I am having a lot of trouble trying to find out how to use the function.
Thank you thank you. My teacher told my class to use the code from Sedgewick's book to sort the array...but I've been having some problems with his quicksort and mergesort algorithms, as well as his...
I am actually having trouble with his quicksort and mergesort algorithm right now. The quicksort won't sort right (and won't even work when I try to sort characters), and the mergesort compiles, but...
I am writing a program that sorts an array of randomized integers. Right now I am testing the program to see if it sorts or not. I am working up to seeing how long it takes my system to run the...
I didn't even notice! Thank you.
I am trying to make a program that takes an array and sorts it. When I try to compile this program, I get a message saying "undefined reference to "_Key"." What am I doing wrong?
sort.h
...
Yeah, the link x = malloc(sizeof *x) threw me off, too. I heard that the book had some errors in their code, so I look at the programs to see if they are right or not instead of taking them for...
I'm an idiot. Thank you so much.
I am making a program that makes a binary search tree with the values from an array of ten integers. When I compile, though, the compiler tells me the line with the call to malloc() "makes...
I have to write my own in this instance.
I've been working on a program that takes a file of words (anagrams) and reads the words into a structure array. The structure contains two char arrays. A word that is read will be copied into both...
The for loop was simply to populate the array with the words in list.dat. The list.dat I have has about 106 words that I have to store in every location of the array. I had the printf statement in...
I am trying to write a program that reads a file into an array of structs. I decided to see if this aspect worked before expanding on the program. Here's the code:
#include<stdio.h>
...
Hey, what is the code to create a file in a different directory than the one the C program is in? Say the program is in c:\x\yy, and I want the program to create a text file in c:\x\zz\top.