Monday, July 27, 2009

I Need a C++ progrm in which program accept values in 2 arrays and findout that it is on to function or 1-to-1

first u have to enter 5 values (not neccesray to enter only 5 can be more or less) in each array...and then u has to find it is on to function or one 2 one or both..or neither.


i m beginner plz provide full program...i would like u to complete progrm like this...





class test


{


private:


int i,j;


public:


void values(); //enter values in its defintion(Soft coding)


void onto(); // function to find the given values r onto function


void one2one(); //function for 1-to-1 functions.


};

I Need a C++ progrm in which program accept values in 2 arrays and findout that it is on to function or 1-to-1
In your question, you took the program apart into pieces. You also list function prototypes for these pieces. My advice: complete them one at a time.





You don't have to do the input first. Try putting in two arrays of numbers as constants to help you write the other functions.





int[] f = { 1, 2, 3 };


int[] g = { 4, 5, 6 };





Then write code to see if this is "onto". Once that works, write the code that checks if it is "one-to-one".





You might want to have the functions onto() and one2one() return bool values instead of void.





Good luck! You can post more questions if you run into trouble... just include what you have so far, and someone can help you get unstuck.
Reply:learn, google c programming tutorials


No comments:

Post a Comment