49,761 Topics

Member Avatar for
Member Avatar for niceyout

hello i am creating a tictictoe game , however i cannot get the program to check if the player has won or not . and produce a you have won message #include<iostream> #include"110ct.h" using namespace std; class TICTACTOE { CursorController*crs; ColourController*cl; int xplayer ; int oplayer; colour Cs; public: void …

Member Avatar for niceyout
0
167
Member Avatar for AndradaK

I need implementation of this problem using ADT List. It should have at least 3 modules( classes). Help me please! A math teacher needs a program in order to help students to test different properties of numbers. The program manages a list of numbers and also allows students to repeatedly …

Member Avatar for TrustyTony
0
492
Member Avatar for ai3dunks

I have a project where I have to schedule 3 doctors for 28 days. Doc A, B, and C. The rules are: 1. They can't work back to back, but only on weekends. Example Doc. A can't work Monday and Tuesday, If Doc. A works Saturday, he must work Sunday …

0
57
Member Avatar for haris riaz

void combination::OnButton2() { // TODO: Add your control notification handler code here m_progress.SetPos(0); m_progress.SetRange(0,100); combination a; a.make_combinations(0); } void combination:: make_combinations(int lo_val) { srand(time(0)); m_progress.StepIt(); ofstream fout("combination.txt",ios::app); ofstream fout2("time.txt",ios::app); for(int i=0; i<theApp.no_of_process; i++) { //m_progress.OffsetPos(100/4); //m_progress.SetStep(200); clock_t begin=clock(); arr[lo_val] = i; if(lo_val==(theApp.no_of_tasks)-1) { for( int j=0; j<theApp.no_of_tasks; j++) { int …

Member Avatar for ashishchoure
0
276
Member Avatar for blez

Hello everyone... I am new to the programmers world... Can anyone tell me if i can find a version of C or C++ for symbian? s60 v3? I want to write C/C++ programs but from my mobile phone... I have been searching the internet for the last 4 hours and …

Member Avatar for vijay.kanta
0
1K
Member Avatar for phorce

Hello, Quick question.. I'm trying to get the mean of a matrix (vector) now before I created a function that did it but I thought that it isn't really an effective way of coding. I've been looking at the accumulate function online and wanted to ask if this would work: …

Member Avatar for Banfa
0
139
Member Avatar for garvit184

I need help in running a program that makes a SLR Parser Table. Here is the code : Code to find first and follow: saved as SLR.h #include<stdio.h> #include<ctype.h> #include<conio.h> #include<stdlib.h> #include<string.h> #include<iostream.h> #define epsilon '^' // since I didn't know how to type epsilon symbol temporily I am using …

0
557
Member Avatar for jackbauer24

So my son has learnt Java and has come to a decision point. First, the flashback,:- May, 2011--Back when he was 10 years old and didn't know Java, he gave C++ a try. He understood loops and variables. But when he reached the page teaching functions, he didn't understand a …

Member Avatar for Rashakil Fol
0
498
Member Avatar for evilguyme

hey just wondering how i can make a countdown timer in a windows forms app or just how to display an updating value onto the form. wanted to make a countdown for number of seconds the user inputs. thnx.

Member Avatar for pointin
0
230
Member Avatar for yoni0505

I'm trying to make a program that read the timer value from Minesweeper. (OS is windows 7 64bit) Using cheat engine I found the base address of the variable, but it changes every time I run Minesweeper. What do I need to do to find out the base address automatically? …

Member Avatar for BobS0327
0
5K
Member Avatar for Pipinit

I have had some difficulty figuring out this one a bit. I think I have the last bit figured out (printing out to the screen). However, everything else has been causing problems for me. I am not sure, so any input from anyone would be greatly appreciated! This is what …

Member Avatar for Pipinit
0
231
Member Avatar for ZaaZ

First off i'd like to say that this account was created because my real account "SillyNoob" has completely locked up. Make new thread "Sorry, you can't do that", new PM "Sorry you can't do that", post on my own thread and there's no reply button. There's no PM in my …

Member Avatar for ZaaZ
0
563
Member Avatar for shamsu50

hello, i get a error in my design form: at EnvDTE.CodeFunction.GetStartPoint(vsCMPart Part) at Microsoft.VisualC.CppCodeParser.OnMethodPopulateStatements(Object sender, EventArgs e) at System.CodeDom.CodeMemberMethod.get_Statements() at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration) at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager) at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host) error list say this: Warning 1 Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) 0 if i ignore …

Member Avatar for johnwhi
0
366
Member Avatar for greatman05

Hello. I need to create a program to manipulate polynomials. It contains basic evaluation, addition, subtraction and multiplication of polynomials. Right now, I'm working on overloading the '+' operator to add two polynomials. While the function adds the two polynomials together correctly, when it goes to output through the overloaded …

Member Avatar for greatman05
0
2K
Member Avatar for Hydrokr0n1k

ok Ihave developed some code that i am having trouble with how I would I call teh text in the last functions to come into it the part labled 10 and then finally how would I incorperate the 3 parts to work on the first part of the function. the …

Member Avatar for thines01
0
154
Member Avatar for LateNightCoder

Basically i have made a binary class that inherits from a matrix class. and aparantly when i make the binary image the deconstructor doesn't work properly. the program runs, reads in the files and makes the binary matrix. However when the binary deconstructor and matrix deconstructors are called, the program …

Member Avatar for LateNightCoder
0
231
Member Avatar for CodeNinjaMike

So, basically im using the codea bove to generate coordinates for a grid, but I only want to generate coordinates for the "outer ring" of a square. SO imagine a grid of 7x7, I won't generate coordinates for the inner 5x5 square, only for the outer ring. Basically I drew …

0
601
Member Avatar for Hydrokr0n1k

OK I have made everything but the last loops needed to complete the project below how would I design the last triangle? // INCLUDE FILES #include <iostream> using namespace std; int main() { int no_lines, // height of triangle. width; // width of rectangle. short choice; // ADDITIONAL VARIABLES // …

Member Avatar for ObjectOriented
0
2K
Member Avatar for pattilupwned

Hello, I am writing code that mimics the game Mastermind. The computer randomly comes up with a code based on the "colors" RGBOY. The user has ten guesses to guess what the code is. Right now my code displays the secret code at the beginning just so I can test …

Member Avatar for histrungalot
0
189
Member Avatar for saneeha.nust

I am defining the below function in order to calculate combinations .... it works fine on borland... but when i run it on vc++ 6.0, it generates the error "error LNK2001: unresolved external symbol "public: void __thiscall bruteFrce::generate_combination(int)" (?generate_combination@bruteFrce@@QAEXH@Z) Debug/AlgoProject.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe." …

Member Avatar for histrungalot
0
246
Member Avatar for boiishuvo

That is a little homework for myself. I was trying to make a simple program that you entry your name (acts as a password) and if it's on the list then you may access, otherwise (aka else) you're not allowed to access. The problem is I can't put more than …

Member Avatar for zeroliken
0
185
Member Avatar for sendo63

Hi there guys, I have homework to do a program given as input a document read from a text file will similatae MS words word count tool to create the following statistic: number of word: 45 number of line: 30 number of white space character: 73 number of non white …

Member Avatar for Dani
0
129
Member Avatar for Labdabeta

I am trying to understand how sockets work with winsock, but I just don't get it. I basically want to be able to create these functions: SomeDataType ConnectToComputer(const char *ConnectionName);//connect to the connection named ConnectionName SomeDataType CreateConnection(const char *ConnectionName);//create a connection called ConnectionName bool ReadData(SomeDataType, unsigned char *outdata, int outsize);//read …

Member Avatar for Labdabeta
0
201
Member Avatar for SCass2010

Hi everyone, Was wondering if anyone could help... I know the std::map automatically sorts it values - I have a map a Date object pointer, and a bool for whether it is to be used or not. But I need the dates to be in order from earliest to latest …

Member Avatar for ravenous
0
1K
Member Avatar for pattilupwned

Hello! I am writing a program that mimics the game Mastermind. However, I am having trouble getting past the first step. We are using letters as the "colors", a string containing "RGBYO". Each time it goes through trying to get the initial "secret code", it needs to get rid of …

Member Avatar for pattilupwned
0
307
Member Avatar for while(!success)

Hey guys, I've been messing around trying to learn binary trees and have created a simple program to get the month and number of days in a month to be inserted into the tree then displayed. I am getting a successful build, however, when it launches the terminal window the …

Member Avatar for while(!success)
0
141
Member Avatar for ITOzann

Hey guys, I'm trying to conver a while loop from C++ to java. And I'm having a problem with my while loop. The original c++ code. // Out of cashiers? // Get next frontBusyCashierQ // Is cashier's finish time now? while(!service->emptyBusyCashierQ() && (service->frontBusyCashierQ(cashier), cashier->getEndBusyTime() <= currentTime)) { ...... .... ... …

Member Avatar for NormR1
0
281
Member Avatar for Kirbyzdashiznit

**Description: Friend’s finder. You load a data file first. Then you answer 10 questions. The answers will be saved in an array. The data in file are several arrays answered by other users. You need to compare the answers with other users and calculate the similarity. After that it will …

Member Avatar for Kirbyzdashiznit
0
274
Member Avatar for apicante

Hello all, I am trying to make an employee program that takes in up to 100 max employees information then displays it back out nicely formatted, which I am not getting right and have been googling wtf I am doing wrong. Also I was wondering after inputting all the employee …

Member Avatar for gusano79
0
82
Member Avatar for chamika.deshan

Hi I am trying to write "at" commands to serail port and send sms. `smsPort->Write("at"); // smsport type is System::IO::Ports::SerialPort ^smsPort;` gives me output OK At the end(after the writing message) I need to write ctrl+z smsPort->Write("Message"); smsPort->Write((char)26); this gives me error *'void System::IO::Ports::SerialPort::Write(System::String ^)' : cannot convert parameter 1 …

Member Avatar for gusano79
0
150

The End.