Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 21
Member Avatar for yznk

I am writing code for reading a matrix from a file and deciding which type of relations it has. ie. Reflexive relation. However i am getting this error: error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'Binary' (or there is no acceptable conversion) …

Member Avatar for gusano79
0
721
Member Avatar for yznk

[CODE] #include <iostream> #include <string> #include <vector> using namespace std; class Digraph { public: vector<bool> visited; vector<string> tasks; vector<vector<int> > precede, postcede; vector<int> order; int numtasks, num1, num2; void resetVisited(){ for(int i=0; i<visited.size(); i++){ visited[i]=false; } } bool check(vector<vector<int> > checking, int pos1) //Returns true if there is a viable …

0
66
Member Avatar for yznk

[CODE] #import <iostream> #import <string> #include <fstream> using namespace std; //The phonebook itself. class Book { public: int people; //The information for a person. class Person { public: string firstname, lastname, phonenumber; }; //Returns 1 if Person1 comes before Person2, 2 if Person2 comes before Person1, and -1 if they …

Member Avatar for geojia
0
329
Member Avatar for yznk

im trying to create a short email based program that displays only the subject of each email and how many emails with that specific subject there are. However im having a few scoping errors i cant figure out in my SearchCommunication. Can anyone take a look at it and let …

Member Avatar for kes166
0
166
Member Avatar for yznk

I am writing a sort program and i am getting the error " error: no matching function for call to 'Object::setdepend(Object*&)' " in this line " graph[i]->setdepend(graph[atoi(buffer.c_str())]); " which is in my read function. I am not sure how to fix this, can anyone help? [CODE] #include <iostream> #include <fstream> …

Member Avatar for Fbody
0
1K
Member Avatar for yznk

In my code my "ndeps" is not being declared in my "setdepends" function and i dont know why. Can anyone help me figure out why? [CODE] #include <iostream> #include <fstream> #include <cstdlib> #include <cstring> using namespace std; class Object{ private: Object **depends; int ndepends; public: Object(); char *id; enum Color …

Member Avatar for Stefano Mtangoo
0
190
Member Avatar for yznk

I am writing a program that implements a topological sort. The actual question is as follows : Given a collection of n items and dependency lists for each item, determine whether the dependencies support a topological sort. If not, report this fact. Otherwise, find a topological sort of the vertices …

Member Avatar for yznk
0
113
Member Avatar for yznk

My program deals out 7 cards. And then determines what is in the hand. A pair, two pair, three pair, four of a kind. However its not finding any of those right and im not sure why. [CODE]#include <iostream> #include <iomanip> #include <cstdlib> #include <ctime> using namespace std; #include "DeckOfCards.h" …

Member Avatar for Salem
0
73
Member Avatar for yznk

Im working on a knights tour problem. And ive run into some issues. Im able to get the program to run randomly till it finds a full tour but how would i go about running it only a 100 times and then printing the average number of moves the knight …

Member Avatar for HealBrains
0
174
Member Avatar for yznk

Your assignment is to modify the program so that the aimless walker stumbles around in a 2-dimensional grid, such as the streets of Manhattan. Your program should prompt the user to enter the number of rows and columns in the 2-d grid. Again, have the walker start in the middle …

Member Avatar for jonsca
0
105