Just thought I would kep you updated, I have managed to get the code to work properly using a couple more loops and counts. Thanks for your help.
Type: Posts; User: SDH
Just thought I would kep you updated, I have managed to get the code to work properly using a couple more loops and counts. Thanks for your help.
thanks for all the help you are giving me. For some reason it still wont work, where am going wrong on using bubble sort to sort both arrays?
#include<stdio.h>int main(void)
{
int c;
...
here is what I have come up with so far. Am I getting any closer?7
#include<stdio.h>int main(void)
{
int c;
int n;
int count1[127] = {0};
int count2[127] = {0};
I have an idea how to intialize it but I am not sure on where to put it in the code and how to write it in, any clues?
I have just added bubble sort to the code and that works perfect. Where in the code do I add the new array?
here is the code too
#include<stdio.h>int main(void)
{
int c;
int n;
...
ok thank you very much, what other method to work out a straight would you use instead?
Do I need to use bubble sort on the array first?
I understand how that code work, but do not know why that won't work for me. Is it because I have two arrays?
Ok thank you very much, I had trouble with an earlier version of the code and found that putting 127 elements in the array seemed to solve the problem, but have changed it to five now and its seems...
sorry I think I haven't explained what I want to do properly, I would like the difference to be calculate from the user input ( this will change every time). But what I am having trouble is using the...
I was going to use values of
10=ten
11=jack
12=queen
etc
I have tried to write code for it, and so far I have wrote this
#include<stdio.h>int main(void)
{
Sorry guys, I appreciate you trying to help me. I am trying to make a poker scoring system. So at the moment I am working on how to get straights, then from there I can combine it all together.
...
I am trying to get a program to read a set of numbers from user input, and then from there manipulate the numbers and display messages depending on what numbers are present.
For consecutive...