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...
Type: Posts; User: Dr Spud
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...
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...
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...
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...
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...
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...
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...
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...
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...
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.
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,...
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...
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...
so start on the console?
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...
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...
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:
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...
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.
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...
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.
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...
:)
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...
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...
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...