Ok I used void instead and it works, finally!
Thankyou so much for your help.
Sorry i seemed so clueless..
Type: Posts; User: rachael033
Ok I used void instead and it works, finally!
Thankyou so much for your help.
Sorry i seemed so clueless..
Ok thanks it seems to be kind of working but I am getting the right numbers printed out but then a big random number at the end.
I input 1 2 3 4 5 6 in both arrays so that should be the output but...
So would it be something like this?
int numbers (int draw[], int entry[])
{
for(int i=0; i<MAXSIZE; i++)
{
for(int j=0; j<MAXSIZE; j++)
{
Do i use the print inside or outside my function?
And I have done my own homework this is just a bit of it I couldn't figure out which is the whole point of discussion boards.....
Thanks but I'm not really sure how to use print.
Hi,
I need to write a program that has 2 arrays both with 6 numbers each and compares the two arrays to see if they have any matching numbers.
I have figured out how to output the amount of...
Just wondering what the * after char does? Why won't it compile without it?
Thanks
Thanks so much, it works. Yay!!
yeah i'm trying to convert a char to an int but the int is a result from a function and for some reason i can't convert it.
if the number is over 25 i have to number%26 to get a lower number so...
Hello all,
I have a program that imputs some numbers and had 8 different functions that calculate the numbers in some sort of way so in the end I have 8 different numbers. I have managed to get...
Well thankyou for the assessment on my punctuation!!!!!!!!!!!!!!!
But, suprise suprise, that's not really what I was looking for.
As I Said It's Not Homework It Is Study!!!! This Isn't A Program That I Have To Do And Hand In.
Once Again An Unhelpful And Pointless Response...
It wasn't an assignment I'm trying to study and going through things I'm not sur about. I was asking for help as that is what this whole web site is about. Don't assume anything about me or why I'm...
How do you find an average of each row in a 2-dimensional array and make the last column hold the average?
Thanks
Hey,
I was just wondering how you would write a program to input a number (e.g. 1234) and then output the number reversed (e.g. 4321)
Thanks
Thankyou soooooo much. Working now. Your help is much apprecaited!
int bankcheque [27][3] = {{" "," "," "," ",_," "," ",_," "," "," "," "," ",_," "," ",_," "," ",_," "," ",_," "," ",_," "," ",_," "},
{" "," ",|," ",_,|,"...
I just did that but the compiler is saying parse error. I also tried with " " but that doesn't work either.
Any idea why?
oh ok thanks, I wasn't putting the dashes in because I thought that was only for outputting.
Thanks heaps!!
I was wondering how you put blank spaces in 2-dimensional arrays.
Thanks
If I have an algebraic expression that makes a sequance of numbers how do I count the number of integers in the sequence and output this?
The integers are coming from a do-while loop and I don't...
using namespace std;
int length_of_syracuse(int n);
bool isPrime(int a);
int largest_prime_factor(int a);
int main()
{
Ok I don't understand it
Thanks anyway
So if "hello" was in a file called file1.txt which is the part where the information in the file is used?
Ok so say I had a file that had "hello" written in it and I needed to turn "hello" into ASCII values and then show these in the output (only the numbers not the original file material) how would I do...