I tried to make my code to write the initial array, but I get an error that says "error: r undeclared, first time use in this function"
my code is
#include <stdio.h>
int main()
{
FILE...
Type: Posts; User: green_ghoul
I tried to make my code to write the initial array, but I get an error that says "error: r undeclared, first time use in this function"
my code is
#include <stdio.h>
int main()
{
FILE...
KC is right, I take an already solved, or attempt at a solution, and determine whether it's correct or not. What is dis[]? Is it just the name of the array I'm going to make?
Oh, the ackerman...
I can work out the second one with help, all it takes is asking him to explain the function to me.
The sudoku one I understand already for the most part, all I need to know is how to take...
So for my homework, one of my problems asks me to write a program that reads a text file and determines if it is a correct solution to a sudoku puzzle. I'm not totally sure what to do.
I think...
fixed it
#include <stdio.h>
void main()
{
int w;
printf("Enter a number");
scanf("%i",&w);
One of the problems on my homework assignment is asking me to print the fibonacci sequence using recursion.
I can make it return the given number, like if I put 4, it'll give me 3 since 3 is the...
I still don't really understand the whole concept of complex numbers, I think I get it with pointers and such, it's just a value that can be called upon, right?
I'm just going to try and write...
ok, so i create a pointer for each complex number in the function, then work through the pointers, and then backwards to get integers so I can display the answers?
all of that went over my head =\
create a complex number calculator, your calculator should be able to compute the following:
addition of 2 numbers
subtraction of 2 numbers
multiplication of 2 numbers
division of 2 numbers...
it works now, I don't know what named constants are though, I'm used to java where I can work my magic.
Thanks for the help, I'm opening another topic for my other problem which I can't even start...
problem 4: consider the following game: there are 100 doors (numbered 1 through 100) and 100 students (numbered 1 through 100) waiting in a line. Initially, all the doors are closed. A student...
I think I fixed it sort of, but all the primes.dat is showing is a bunch of 2s
oh, there are some editing things i need to do still, but that's the basic idea of what i'm trying to get at....but it just crashes whenever i execute.
thanks, what about reading/writing files?
I'm supposed to write a program that takes the prime numbers from numbers.dat and writes them to primes.dat
but I don't know what to do, I wrote a...
My assignment says
"write a program that calculates the speed of sound (a) in air of temperature T (in fahrenheit) The formula to compute speed is:
a = 1086(square root((5*T...