User Profile
Collapse
-
yes i do. i need to implement an algorithm, such stated above. please assist me. i went to t tutor but she did not know the solution either. please help me fix my code.... -
-
help please . stuck on this stupid array algorithm. any c++ speacialist?
so what i need to do is implement a code that will take the maximum number in a array and put it into another array. events[] is an array that contains numbers that was extracted from a file. Count is the number of numbers in the array events[ ] because i did not know how many numbers i was reading. numDays is also an array.eventNumD ays is the array for which...Leave a comment:
-
-
c++-arrays need help.
so what i need to do is implement a code that will take the maximum number in a array and put it into another array. events[] is an array that contains numbers that was extracted from a file. Count is the number of numbers in the array events[ ] because i did not know how many numbers i was reading. numDays is also an array.eventNumD ays is the array for which i need to put the maximun number that numDays [] contains. but this is just not the any... -
-
oh it justs creates a file called numbers.txt, inserts it with 150 random numbers. then i have to check each number's frequency by using array. for example, a number 3 in the number.txt corresponds to the element in array [2]. and thus array[2] gets x++. and so on...Leave a comment:
-
what is wrong with this code? cant figure it out.
//what i needed to do was to read the file number.txt, and check for frequencies by using arrays.
Code:#include<iostream> #include<fstream> #include<ctime> #include<cstdlib> using namespace std; int MAX=20;//Global variable void createDataFile();//Function prototype int main(){ //Call function; createDataFile(); //Declare
-
somebody help, time is limited till 10pm
ok i have the following c++ and need help to develope a function of the following description :
void addRational(int & ansNum, int& ansDenom)
This function will get 2 rational numbers from the user by calling getRational(), addsthose values and sets the result in ansNum (answer numerator) and ansDenom. It finally
calls displayRational to display the answer.
now i have created the...
No activity results to display
Show More
Leave a comment: