Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
0 Endorsements
Ranked #4K
~2K People Reached
Favorite Forums
Member Avatar for TinhornAdeniyi

What is wrong with my fread() [CODE]#include<stdlib.h> #include<stdio.h> #include<math.h> double stdDev(double avg, double x[]) { double stdDeviation; double diff; double Sqdiff; double sum=0; int i; for(i = 0; i<50; i++) { diff=x[i]-avg; Sqdiff=pow(diff,2); sum+=Sqdiff; } stdDeviation=sum/avg; return sqrt(stdDeviation); } double maximum(double x[]) { int i; double max; max=0; for( i …

Member Avatar for WaltP
0
95
Member Avatar for TinhornAdeniyi

[CODE]void maximum(double *max, double x[]) { int i; for( i = 0; i<100; i++) { if(max < x[i]) max=x[i]; } }[/CODE] Why isnt this working Im probrably missing one syntaz that i cant think of at the moment Thank u

Member Avatar for TinhornAdeniyi
0
102
Member Avatar for TinhornAdeniyi

i am trying to move the node in the first item from the list and add it to the back of the list 1->2->3 becames 2->3->1 instead i get 3 1 2 [CODE] #include <iostream> using namespace std; struct nodeType { int info; nodeType *link; }; void createList(nodeType*& first, nodeType*& …

Member Avatar for TinhornAdeniyi
0
197
Member Avatar for TinhornAdeniyi

This is supposed to be a code for a video game store [CODE]#include<iostream> #include<fstream> using namespace std; ifstream infile; struct VideoGame { string Name; string Genre; string Publisher; string Developer; string Platform; string Price; int count; VideoGame *link; }; void CreateList(VideoGame*& first, VideoGame*& last); void CheckOut(VideoGame*& first, string title); bool …

Member Avatar for TinhornAdeniyi
0
223
Member Avatar for TinhornAdeniyi
Member Avatar for Nathaniel10

Is it possible to have an array as a class member? It is part of my Wumpus Hunt exercise. I want to do the following: [code] class Room { blah blah; }; int main() { for (i = 0; i < 3; i++) { Room adjacent[i]; blah blah; } [/code] …

Member Avatar for Nathaniel10
0
108
Member Avatar for Newtype

Write a short program that takes an integer value (call it n) from the user and prints out a triangle composed of O and X characters. For example, if the user enters 3 as the input, your program should print out: O OX O X O If the user enters …

Member Avatar for Newtype
0
162
Member Avatar for TinhornAdeniyi

[CODE][/CODE]ok this code has a few quirks that is annoying me the only part that does not straight up work is the Add a show i have a problem in increasing the size of the array. there is also the issue of couting two zeros for the minutes of the …

0
79
Member Avatar for TinhornAdeniyi

Can someone tell me what wrong with this code i am supposed to create an array of struct of cars and then add 1 to the car sold then find the inventory value comprising of all car values this is my infile lexus IS 35000 10 bmw 740 90000 5 …

Member Avatar for TinhornAdeniyi
0
156
Member Avatar for TinhornAdeniyi

This is my instructions [ATTACH]17319[/ATTACH] [ATTACH]17320[/ATTACH] and i am using Dev-C++ 4.9.9.2 and i am using the Mingw compiler i am a beginner. and this is my code. [CODE]#include <iostream> #include <iomanip> using namespace std; void everything(); int main() { everything(); system("pause"); return 0; } void everything() { int a,b,k,sum; …

Member Avatar for mitrmkar
0
218
Member Avatar for miznogud
Member Avatar for TinhornAdeniyi
0
68
Member Avatar for TinhornAdeniyi

I cant figure out what is wrong with this code These are the instructions [ATTACH]17304[/ATTACH] [ATTACH]17305[/ATTACH] [ATTACH]17306[/ATTACH] and this is my code [CODE]#include<iostream> #include<fstream> #include<iomanip> using namespace std; void Get_Info(string[],int[][3]); void Get_Average(int[][3]); void Prt_GradeBook(string[],int[][3],int[]); int MakeUps(int[][3]); int Grades[5][3],average[5]; string Students[5]; int main() { Get_Info(Students,Grades); Get_Average(Grades); Prt_GradeBook(Students,Grades,average); cout<<"There are"<<MakeUps(Grades)<<"Makeup(s) to arrange. …

Member Avatar for VernonDozier
0
187