thanks betazep, i figured that one out. my only issue now is, I only want it to print one message or the other, not both. everything else checks out - got rid of double hits (two hits on same set of...
Type: Posts; User: CindyLou
thanks betazep, i figured that one out. my only issue now is, I only want it to print one message or the other, not both. everything else checks out - got rid of double hits (two hits on same set of...
I'm getting closer...you've been a great help. I appreciate it.
#include<iostream.h>
int find (int array [], int size)
{
int t;
int i;
for (t = 0; t < 10; ++t)
{
Ok, this is what I have. Problem now, it keeps looping. I am getting some positive finds when I input 2 #'s that equal 100, and alot of "sorry..." How can I get it to check all, but print out only...
I realized my error in the first part of your reply :
"for (i = 0; i < 10; i++)
cin >> array[i];
"
Thanks.
I figured I could set up two arrays. The first would be the input acquired in the...
I need a function to determine if there are two numbers in an array of 10, whose sum is 100. The function will be called find. Here is the rest of my program:
int initialize(int array[], int size)...
I Got it, I Got it!!! Yeah. Thanks so much. Now I can go to bed myself. Here's what I did with getinput:
void getinput (int &num1, int &num2)
{
cout << "Enter two integers: ";
cin >>...
I have trouble with void functions. I did try this, but didn't work. Could you give me an example :) I know you're tired, I appreciate this!!!!!
Thanks, tried this (many times). My output is -858993460
I can't seem to figure this out. I used visual c++ and borland and get junk on both. Problem seems to be in getinput. Any other ideas????
Need program to output largest number of two. The main function must remain as is. I believe the getinput function is where the problem is. I can get program to run when I get the input from within...