Search:

Type: Posts; User: Dr Spud

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    3,067

    is a masters degree worth it?

    Hey all I just started my first semester in grad school for Computer Science in aug. Seems to me that my excitement for graduate school that I had when I finished my undergrad has or is beginning to...
  2. Thread: semaphores

    by Dr Spud
    Replies
    7
    Views
    5,388

    Awesome Salem thx for your post and help. Your...

    Awesome Salem thx for your post and help. Your suggestion worked like a charm :) now I just gotta figure out why my copied file is printed in binary instead of ASCII. Any good tutorials on this...
  3. Thread: semaphores

    by Dr Spud
    Replies
    7
    Views
    5,388

    sure.... first off I am getting compiler warnings...

    sure.... first off I am getting compiler warnings here they are if they will help you


    sem.c: In function ‘main’:
    sem.c:108: warning: passing argument 2 of ‘write’ makes pointer from integer...
  4. Thread: semaphores

    by Dr Spud
    Replies
    7
    Views
    5,388

    So ive made some progress on my program and some...

    So ive made some progress on my program and some significant changes that I think are for the best but I still have a problem. In this example I dont want to just set the buffer to a size that can...
  5. Thread: semaphores

    by Dr Spud
    Replies
    7
    Views
    5,388

    okay so I think I got the name thing figured out...

    okay so I think I got the name thing figured out thx for the reply but im thinking because I used <sys/sem.h> instead I have to go a different route. Now my program hangs up and neither process will...
  6. Thread: semaphores

    by Dr Spud
    Replies
    7
    Views
    5,388

    semaphores

    good afternoon all, so I'm trying my first attempt at semaphores and trying to recreate the producer consumer problem. My question seems kinda silly because its already done all over the internet...
  7. Replies
    2
    Views
    1,565

    setting file permissions

    Hello all,
    So I recently joined the Linux community but am still learning the differences between it and Windows. At this point in my project I am just getting a users input of a file that he/she...
  8. Thread: just starting

    by Dr Spud
    Replies
    3
    Views
    1,598

    just starting

    ok so I wrote my first game, its a minature golf game. Not very good but my first attempt at gaming and just started programming. anyway I wrote it in Dev and now do not know how to turn my code into...
  9. Replies
    3
    Views
    4,698

    Senior project ideas

    Im nearing the end of my degree and need to start thinking about my senior project. The idea that I had was to make a keno game that used a simple random number generator. Then a separate program I...
  10. Thread: print an array

    by Dr Spud
    Replies
    6
    Views
    1,468

    I think I am decaling the max and min wrong. All...

    I think I am decaling the max and min wrong. All I want to do is randomly get 2 of the values within my array and have them switch places.
  11. Thread: print an array

    by Dr Spud
    Replies
    6
    Views
    1,468

    Im not sure that is whats wrong I changed a few...

    Im not sure that is whats wrong I changed a few things that the faq suggests and still get the same output.


    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>

    int array[10] = {1, 2,...
  12. Thread: print an array

    by Dr Spud
    Replies
    6
    Views
    1,468

    thank you that takes care of my error. now I just...

    thank you that takes care of my error. now I just need to figure out where I messed up on my shuffling technique because my output is 120000 and should be nowhere near that. This is the first time I...
  13. Thread: print an array

    by Dr Spud
    Replies
    6
    Views
    1,468

    encountered a problem and needs to close

    Im working on a probability math problem where I need to print out how many triplets within the array are divisible by 5. my program compiles but I get get an error when I try to run the program. Not...
  14. Thread: where to start

    by Dr Spud
    Replies
    15
    Views
    2,496

    so start on the console?

    so start on the console?
  15. Replies
    2
    Views
    977

    Dev-C++ compiler

    I recently had an assignment to write a program generating a deck of cards and shuffling them. In c language. I wrote the code on Dev-C++ initially but I could not get the random generator to work...
  16. Thread: sudoku puzzle

    by Dr Spud
    Replies
    4
    Views
    2,093

    my professor has already specified to use the...

    my professor has already specified to use the bute force method.
    compare the next possible number entry with their row and column respectively then test the sub grid pertaining to that cell. Im...
  17. Thread: where to start

    by Dr Spud
    Replies
    15
    Views
    2,496

    where to start

    for someone who is thinking about starting to program games. Is there a starting program (like hello world would be to someone learning a laguage) that everyone starts with? :confused:
  18. Thread: sudoku puzzle

    by Dr Spud
    Replies
    4
    Views
    2,093

    sudoku puzzle

    I am writing a program that will solve the sudoku puzzle I am using a 2d array instead of a 3d array to set up the grid and am wondering, because I did this, would the best way to test for duplicates...
  19. Replies
    7
    Views
    890

    borland is a good compiler and if you already...

    borland is a good compiler and if you already have builder then I would use that. The only other compiler I have used is Dev-C++ which also is ok but pretty sketchy with random numbers.
  20. Replies
    5
    Views
    1,007

    thx I think that will work to get my loop going....

    thx I think that will work to get my loop going. but I still cant figure out how to copy one array to another. I've been trying to do it one character at a time.
    I'm thinking strcpy would work but...
  21. Replies
    5
    Views
    1,007

    the idea I had in mind was a loop that ran from...

    the idea I had in mind was a loop that ran from character to character until it read the entire input. Didn't know any other way to do it.
  22. Replies
    5
    Views
    1,007

    Why doesn't this work

    I'm new to c programming and working with little knowledge of it.
    I'm writing a program to read a name into the console and split it up into first middle last name.

    I've tried many things...
  23. Replies
    18
    Views
    2,965

    :) thx so much it's hard to find someone that...

    :)

    thx so much it's hard to find someone that will actually help instead of make fun of you when you ask a question.

    I got rid of the warning my program will still get a windows error but at...
  24. Replies
    18
    Views
    2,965

    thats exacly what I have-- the compiler didnt...

    thats exacly what I have-- the compiler didnt even give you a warning.
    mine says
    [Warning]comparison between pointer and integer

    it will let me run the program but right after it prints out the...
  25. Replies
    18
    Views
    2,965

    wow cant believe I missed that thx thats when you...

    wow cant believe I missed that thx thats when you know you have been staring at the same piece of code for too long
    now by changing that I am attempting to compare an integer with a pointer and the...
Results 1 to 25 of 31
Page 1 of 2 1 2