its a 2 d array
Type: Posts; User: ktype
its a 2 d array
im not trying to print the coordinates.
printf("What are the first coordinates for destroyer:\n");
scanf("(%d, %d) (%d, %d)", &destroyer_1, &destroyer_2, &destroyer_3, &destroyer_4);
...
Night now I'm working on part of a function that scans in two sets of coordinates. Is there a way I can scan both sets of coordinates in with the same scanf?
ex. scanf("%d%d%d%d," &destroyer_1,...
Here is my battleship program I'm working on (player v computer); I'm having a lot of trouble with writing a function to randomly place the computers ships... and I'm not sure if my...
So I'm working on several 2v2 programs like tic-tac-toe, connect four and battleship. Generally what would be the best way to alternate players?
so I'm creating a program that generates random sentences with structs but i need some help... I'm trying to use structs and and create 4 different groupings article, noun, verb, and preposition....
i'm trying to determine if a number from a file is a prime number using pointers first I wrote a function that determines if the number is a multiple of 7, 11, or 13. Then i wrote a function to see...
how would I write a while() loop that calculates the sum of all prime numbers from 1 - 50.
How would I write a function that determines if a number is a multiple of another number.
ex. (is 147 a multiple of 7?)