49,767 Topics

Member Avatar for
Member Avatar for NyQii

Im trying to run a sipmple program in c++ using openGL but get these errors... can somebody please help me? Error 1 error LNK2028: unresolved token (0A00002D) "extern "C" int __stdcall __glutCreateWindowWithExit(char const *,void (__cdecl*)(int))" (?__glutCreateWindowWithExit@@$$J18YGHPBDP6AXH@Z@Z) referenced in function "extern "C" int __stdcall `anonymous namespace'::glutCreateWindow_ATEXIT_HACK(char const *)" (?glutCreateWindow_ATEXIT_HACK@?A0x6d0c8cb1@@$$J14YGHPBD@Z) c:\Users\SuranĂ©\documents\visual studio …

Member Avatar for NyQii
0
224
Member Avatar for eshray

hello, acually your site is helping me alots , thanx alots I have an assignemt n i stuck on readind data from user and hendle them as single string plzzzzz anyone can help me:( i tried alots and alots Write a C++ program that will make use of the following …

Member Avatar for nullptr
0
113
Member Avatar for kutuup

I'm trying to implement a template class called "Tree", here is the code for the main function: [code=c++] #include "Stack.h" #include <iostream> #include <time.h> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int gameObjects = 0; Tree<Player>* PlayerTree = new Tree<Player>; Player** players; players = new Player* [5]; Player* …

Member Avatar for pubudu1199
0
149
Member Avatar for SAM2012

Dear All, I have function that works like this. Here # represnts one word while * is for one alphabet. Can anyone help me changing this code where # is for 0-N words, means it works if at # there is no word between dots, while for * there must …

Member Avatar for SAM2012
0
426
Member Avatar for Youg

Hi, working on a piece of code which loads in two images, one is a scrambled version of the other, compares them and then attempts to make a new image from the scrambled version. So far I've got it making a new image, comparing and unscrambling most of it, just …

0
207
Member Avatar for stinkypete

I have a C++ application that I want to make more flexible and user-friendly. It currently contains seven nested for-loops, and part of the new flexibility is that this number will become variable (between two and twenty, say). What is the easiest way to achieve this?

Member Avatar for vmanes
0
151
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
169
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
508
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
58
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
278
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
142
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
567
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
500
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
249
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
233
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
595
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
371
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
161
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
232
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
610
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
191
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
249
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
188
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
133
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

The End.