No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
8 Posted Topics
Re: You aren't using the std dev formula correctly. See [url]http://davidmlane.com/hyperstat/A16252.html[/url] Also, here is an update to your code. Notice all the variables are declared at the top of main. Notice how the code is indented. The program is easier to read now. Take care, Bruce [Code] #include <iostream> #include <string> … | |
Re: M Tritt, Are you currently studying operator overloading in class? I would guess yes. You overload operator!= and operator==. You will use those two operators to compare two instances of the class to see if they are the same or different. Re: X and O Can you use the same … | |
Re: Where is your loop? What is that variable that you are streaming out? You also have an error in one of your calculations. I have modified your program and it seems to work now once you figure out the above comments that I made. Take care, Bruce | |
Re: You already know how to check parts 1 and 2. You are searching the row and column. Part 3 is just a hybred of the two. The check for the second row of the 3X3 region is just a smaller subset of when you were doing the row checking. You … | |
| |
Re: Just a note... Is this line correct? for (int j=0; j<maxrows; j++) Should it be maxcols instead? Take care, Bruce | |
Re: yaan, Inside your function definitions, you need to replace "main()" with "return". You are calling the main function instead of actually returning to it. You should also add some white space to your code so it is more readable. See below. Take care, Bruce [code]# include<iostream.h> # include<stdlib.h> # include<conio.h> … | |
Re: Shahid, Search for the word "Change" in the following code to see my changes. Also, I added a mock definition for the input function. Take care, Bruce [code]//Header Files #include<iostream.h> #include<conio.h> // Changed from conio.c //class definition class Employee{ //hidden part of the class Employee private: int id; char name; … |
The End.