48,986 Topics

Member Avatar for
Member Avatar for techie929

Hi, I have to create a maze in C++. // Below is the problem Statement Let's use a simple case of a w=4 (columns) by h=3 (rows) maze to illustrate the maze-generation algorithm. We will start with 4 × 3 = 12 closed rooms, arranged in a 4 by 3 …

Member Avatar for Lerner
0
101
Member Avatar for manatta

Hi. I have a printscreen and I want to find a way to make a program that can analyse that printscreen in order to identify two poker cards in a specific location. So I probably need an image analysing library. By the way I'm new in this forum, is there …

Member Avatar for WaltP
0
70
Member Avatar for roc a

I have started this program and have finished the first part and it builds just fine but when i debug it I am gettin an error message Run-time check failure#3 - the variable total_sales is being used without being defined. Can some help me out? #include <iostream> using namespace std; …

Member Avatar for crunchie
0
144
Member Avatar for khevz09

What Should i use to make a game like this?.... How do i accept the right words coming from the users?? can u give me some advice because i really need it ...... Thxxx

Member Avatar for WaltP
0
110
Member Avatar for enderland

Hello all, I have a few questions about C++ (I have programmed quite a bit in VBA and some in the past using C++, and have been working through relearning C++). Currently I am working through a bit on the "Char" variable type. regarding the following (from the FAQ): * …

Member Avatar for jonsca
0
173
Member Avatar for merse

I have a pair member data in a class: pair<double,double> memory; How can I change the firs or second element? If I simply write memory.first = 42 the compiler says read-only structure If I use memory = pair<double,double>(42,42) than: error passing 'this' argument I dont understand, please help me

Member Avatar for Galf
0
74
Member Avatar for jdpjtp910

Back again, with another homework problem that is stumping me. Ok so assignment is to design 3 classes: Ship, Cruise Ship, and Cargo Ship. Ship should: member variable for name of ship (string) member variable for year ship was built (string) constructor and accessors and mutators virtual print that displays …

Member Avatar for lotrsimp12345
0
2K
Member Avatar for Kushal Thakkar
Member Avatar for Dave Sinkula
0
2K
Member Avatar for conkjj8

I am trying to change the array in this program from a static array into a dynamic array. I'm totally lost on this one and could use a little help. There are a few other problems in the program, but the only thing I'm worried about right now is getting …

Member Avatar for jonsca
3
291
Member Avatar for wwsoft

hello , I need to know how to get the direction from point A to point B eg. point_direction(0 , 0 , 100,100); would equal 315 x1 y1 x2 y2 how do I compute this ? Thanks !

Member Avatar for daviddoria
0
165
Member Avatar for Fbody

I'm in the process of reworking a bit field that I built to condense a collection of rule activation flags for a game I'm working on. I need to change the "multiplierRule" so that it can represent 2 different variations of the same rule as well as an "inactive" state. …

Member Avatar for Dave Sinkula
0
367
Member Avatar for omgaga

Hello, Currently, i was assigned to create an array, which i have no idea what array is. The problem is this.... 2.Write a function to read in numbers and put them into the array. The function should continue to read in numbers until either: the user types a negative number, …

Member Avatar for Fbody
0
86
Member Avatar for reza.adinata

Hi all, I am trying to learn the basic concept about array, however when I tried to change the type into string, it shows error .. I am using IDE visual studio 2005 [CODE]#include <iostream> #include <string> using namespace std; int main() { string stName[20]; cout << "what is your …

Member Avatar for reza.adinata
0
155
Member Avatar for vijay K

how to create windows.h header file It is doesn't on my PC .Please give me windows.h header file

Member Avatar for Ancient Dragon
0
88
Member Avatar for Alicito

Guys I'm having a problem which is really annoying me .. I'm trying to change a normal class into a template class, but every time I try to do that I get a bunch of problems with the object of that class and the template : let's say I have …

Member Avatar for Alicito
0
95
Member Avatar for nuubee

Hi all, Ok, so I am new to C++ and whilst I understand most of the theory, I am still struggling with the practical applications! I'm trying to write a program that will allow a user to enter 10 whole numbers, then return the sum of all 10 numbers, the …

Member Avatar for piyota
0
4K
Member Avatar for team_tip

a requirement was sent to me below: API should be in the form of static library. company xxx will link the library into a third party application to prevent any possible exposure of the code(dll) could they mean an import library? An import library is a library that automates the …

Member Avatar for Ancient Dragon
0
116
Member Avatar for i_luv_c++

hey guys im working on a project which requires two tasks 1) count the total number of clumps in a program which i already accomplished. 2)find the longest clump in the string and output it(for example if string is aaaabbbcccccccc so the longest clump is cccccccc >>clump is string of …

-2
69
Member Avatar for LemonLemon

I want to convert the text string from a file into binary and then create a new file holding these binary. I am using the VC++ 2008. I have done some search on the internet, but hardly understand. Can anyone give me idea or sample code with explanation? Thanks in …

Member Avatar for Ancient Dragon
0
94
Member Avatar for TaSkOnE

Hi @ all, b4 things get serious. :icon_smile: Im using MFC with VCPP 6. I have a simple dialoge based app. Im using a triggered event with which I want to update the content of a CEdit box. The ASSERT of IsWindow fails because m_hWind = 0, I figure this …

Member Avatar for TaSkOnE
0
2K
Member Avatar for ckjie

Hi all. I am doing a project with visual basic 2008, i'm using c++ windows form. i have a question about the code for this particular button, where i wan tis button click to be link to another folder. For example, when clicking this button [btnDownload], it will open the …

Member Avatar for ckjie
0
148
Member Avatar for macla
0
72
Member Avatar for BrandonB

Hi all, Im currently doing an assignment where we have been told to write a program to input 2 values (namely the area of wallspace to be painted & the price of the paint) & then output several other values based on the values input. At this point I'm writing …

Member Avatar for BrandonB
0
135
Member Avatar for pvsumanbabu

Hi All, Can any one tell me,what is the difference, if a static data member is defined in public scope of a class declaration or if it is declared in private scope of a class declartion?

Member Avatar for Fbody
0
37
Member Avatar for miraclebos

Hey Narue! I need ur help on a upper-lower case switch problem.. Read the contents of a text file (using ifstream class).. and create a new file or edit the same one (using ofstream class) to switch the case of each char (upper to lower & vice versa).. Thanks a …

Member Avatar for miraclebos
0
161
Member Avatar for n.utiu

WE have the && operator, the || operator, but xor is only implemented as '^' . And this causes a lot of confusion. Let's take this case: 2 == 2 ^ 2 generates a logical operation instead of bitwise operation , therefore returning a true value. What do yo think: …

Member Avatar for n.utiu
0
213
Member Avatar for rollon

OMG im a IT student but i am not good in programming!! can i ask some question how to be a good programmer????? plss answer my question

Member Avatar for wasimmalik
0
126
Member Avatar for pearle

Hi, everybody. I've started learning about recursion, but I'm having a hard time completely understanding it. I've tried to write a simple recursive function that returns the sum of the series m(i) = (1/3) + (2/5) + (3/7) + (4/9) + ... (i / (2i + 1)), but I keep …

Member Avatar for pearle
0
106
Member Avatar for dude1

ive got a xml file like this: [CODE] <?xml version="1.0"?> <orders> <customer> <order_num>6656</order_num> <name>jon doe</name> <street>123 fake st</street> <city>Beverly Hills</city> <state>CA</state> <zip>90210</zip> </customer> <customer> <order_num>1337</order_num> <name>bob johnson</name> <street>1232 something ave</street> <city>Petaluma</city> <state>CA</state> <zip>94952</zip> </customer> <customer> <order_num>5643</order_num> <name>bill story</name> <street>1st ave</street> <city>Beverly Hills</city> <state>CA</state> <zip>90212</zip> </customer> <customer> <order_num>4533</order_num> <name>tom hutchinson</name> <street>214 …

Member Avatar for dude1
0
153
Member Avatar for jemscomput

16 bit ms dos subsystem Turbo c IDE The NTVDM CPU has encountered an illegal instruction cs:0000 ip:0075 op:f0 00 f0 3705.Choose close to terminate the application.

Member Avatar for jwenting
0
104

The End.