Search:

Type: Posts; User: RazielX

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    10,322

    Writing input from a file into shared memory

    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...
  2. Replies
    19
    Views
    2,890

    Oops...sorry. I guess I was in too much of a...

    Oops...sorry. I guess I was in too much of a hurry to see my mistakes. Thanks for your help and patience.
  3. Replies
    19
    Views
    2,890

    Writing a set of random integers to a file

    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...
  4. Replies
    4
    Views
    2,236

    I looked at the man pages on the SunOS 5 system...

    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...
  5. Replies
    4
    Views
    2,236

    Oh, I looked at the man pages and I was confused...

    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...
  6. Replies
    4
    Views
    2,236

    Help with confstr() and pathconf()

    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...
  7. Replies
    6
    Views
    2,381

    How do I find the md5 checksum? Also, while...

    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...
  8. Replies
    6
    Views
    2,381

    SuSE Linux 9.1 Personal ISO

    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...
  9. Replies
    0
    Views
    869

    Help implementing a menu

    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...
  10. Replies
    1
    Views
    874

    Help implementing a menu

    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...
  11. Thread: gethrtime()

    by RazielX
    Replies
    2
    Views
    2,507

    Sweet, thanks!

    Sweet, thanks!
  12. Thread: gethrtime()

    by RazielX
    Replies
    2
    Views
    2,507

    gethrtime()

    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.
  13. Thread: Mergesort

    by RazielX
    Replies
    2
    Views
    1,506

    Thank you thank you. My teacher told my class to...

    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...
  14. Replies
    4
    Views
    1,981

    I am actually having trouble with his quicksort...

    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...
  15. Thread: Mergesort

    by RazielX
    Replies
    2
    Views
    1,506

    Mergesort

    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...
  16. Replies
    4
    Views
    1,981

    I didn't even notice! Thank you.

    I didn't even notice! Thank you.
  17. Replies
    4
    Views
    1,981

    sorting algorithm

    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

    ...
  18. Thread: malloc syntax

    by RazielX
    Replies
    8
    Views
    1,991

    Yeah, the link x = malloc(sizeof *x) threw me...

    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...
  19. Thread: malloc syntax

    by RazielX
    Replies
    8
    Views
    1,991

    I'm an idiot. Thank you so much.

    I'm an idiot. Thank you so much.
  20. Thread: malloc syntax

    by RazielX
    Replies
    8
    Views
    1,991

    malloc syntax

    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...
  21. I have to write my own in this instance.

    I have to write my own in this instance.
  22. Using quicksort and radix sort for an anagram program

    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...
  23. Replies
    3
    Views
    2,607

    The for loop was simply to populate the array...

    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...
  24. Replies
    3
    Views
    2,607

    Reading a file into a structure array

    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>
    ...
  25. Replies
    7
    Views
    4,725

    Creating a file with a program

    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.
Results 1 to 25 of 28
Page 1 of 2 1 2