49,761 Topics
| |
Create a program which will create a Hero's Inventory. The program should take the user input (a number) and put that item into the inventory (for example, if the user enters 1. Sword, the program should insert the string "Sword" into the inventory). You will need to add a loop … | |
Hi! I'm very new to C++ and have two questions whose answers are probably comically obvious. Any suggestions you have will be accepted gratefully. I'm writing a program that calculates the average of integers (grades) input by the user. Once the average is computed, the program should ask if the … | |
Hi everyone. Little new here but hope for everyone's help =). I am doing a maze for my Computer Science class. My program needs to read the maze from a .txt file and print the solution after. Im only in beginning stages but that's alright. The problem I'm having is … | |
I want to convert two C++ programs into MIPS assembly. Both programs compute if a given integer is prime or not. They both contain the same main() pretty much, but one uses an iterative function while one uses a recursive function. I am not too good with MIPS so I … | |
I am using the fileSystemWatcher and the _Changed event to indicate what file that was LastWritten to in a folder and then I want to read this file. It seems that the code that I have below is executing twice and the second time the code runs I get this … | |
Hi, I appologize for a lack of specificity, but i'll try my best to explain what i want to do. I want to write a program that will run other programs within a single window, so that they're neatly organized. For instance; I usually run about 3 Xterminals that i … | |
this is the main program # include "list_3358.h" # include "stack_3358.h" # include <iostream> # include <string> # include <fstream> #include <vector> using namespace std; using namespace stack; using namespace linked_list; int main(int argc,char* argv[]) { string str; str=argv[1]; STACK_3358<string> stack1; //ifstream infile( str ); ifstream file_op( str.c_str() ); do … | |
Hi I need to detect memory leaks in c++ assembly.Is there any tools to detect memory leaks?please tell me. | |
For an assignment I must implement an operator -= to remove points from a canvas (that have been plotted broken line graph style). Here's the part where the problem is occuring. It certainly removes points, just not the right ones seemingly and not all of them. It doesn't make much … | |
I have to confirm how the buffersize is working for the fileSystemWatcher. I have found this explanation on google: [I]The FileSystemWatcher class works by capturing all of the relevant file and older changes and placing them into a buffer. This is then processed one change at a time until all … | |
Hi I would like to know if it is possible to remap a joystick to keyboard inputs and if so how would i go about it i need this because im trying to make a wrapper for a game which only supports keyboard input im kinda new to c++ too … | |
Hi i have developed an MFC sdi application ( C++ ), when i deploy this application in another machine the Grid component is not showing up in the UI. The Grid which is used is MSFLEXGRID version 6.0. But i found that when i install VS2005 on the machine which … | |
I would like to insert a function AFXMessageBox in generic class, but the compiler said this "error C2665: 'AfxMessageBox' : none of the 2 overloads can convert parameter 1 from type 'char [30]'" . I have de same code in oder project type CDialog and i haven't any error | |
I have to develop an application which is similar to outlook in which i have to create a button by which we can transfer mail message to user specific folder.I am using MFC for that application. I found that there is api called MAPI(messaging application programming interface) which provide two … | |
[code]#include <iostream> using namespace std; //Function declare void displayMenu(void); void getSelection (int &userChoice); void processChoice (int userChoice); float monitorCoke( float, float ); float monitorpep ( float ,float ); float monitorcana ( float ,float); float monitorhire ( float,float ) ; // variable declare and const float option, cocaout, pepsiout ,canaout,pepleft,canaleft,cokeleft,hireout; const … | |
HI this is my first post here i am using dev c++ and i had been going through windows game programming for dummies. i am now facing a problem of how to display the text ie if the user enters a name how to display it and please tell me … | |
When I try to compile and run this file I get a segmentation fault when the size function is called so I must not have it set up right. The size function returns the number of stored chars in the queue. So I am thinking that the size function in … | |
I'm trying to create a central event system for my game where I add some events to a priority_queue and pull off the first one as soon as it expires. But I'm having a problem of understanding if I'm adding them to the queue correctly, if they're in order, or … | |
I have a feeling ya'll get plenty of cin questions here and are quit tired of them, but I have a few that are a little more in depth. I started trying to write my own input stream flush template and had some very minor successes when I found the … | |
I am new to the world of compiled programming languages. I do most of my work with Perl and bash scripting. I was recently asked to pursue a listener to the Asterisk Manager Interface that will be able to pull out caller ID information based on the extension that the … | |
Its not so much help that I need I just dont understand what my teachers asking. Anyone know? [QUOTE]Write overloaded min functions. One function will return the min of two integers, the second function will return the min of 3 integer values. Hint: see if you can use the two … | |
Hey guys, my prof is looking for a good polymorphism project. The one's in the book weren't good at all. Could someone give a suggestion? | |
I have to fill in a 2^n by 2^n board that has a hole in it with tiles that look like the example below. The tile we have to use is the combination of the 1's in the image below and the 0 is the hole (cause I really don't … | |
i want to make a game :) by using c++ but i can't finish it :( because of there are some problem about the code....the aim of the game is to stop the ball from hitting the right wall by moving the box. 10 pts r given 4 stopping it … | |
Hello! It is my first post and I've got probably easy question. I can use containers like list, vector. But I think there is no tree container in standard containers of C++. I found [this site](http://www.gamedev.net/reference/articles/article2192.asp) and I'd like to use it. The problem is that I do not know … | |
How would you write that in code.. if you could show it to me | |
Hi, is there a factorial function implemented on math lib? Alternatively, is there any way I could check if it's implemented on my compiler? thanks | |
Hi, I'm trying to read a series of ascii characters from a text file as their corresponding decimal integers. However when I try to read in the # 26 it is read in as a # 10 and no further characters after this are read. I've found out that # … | |
Hi all, im doing a uni project and ive run into a little trouble im writing a program in cpp (has to be cpp because of other constraints) this program will get values from a file and depending on the values, send a high or low signal to the corresponding … | |
I was assigned a homework project that's starting to get annoying. I can't figure out what's going wrong with it. Here's the question: The number Pi may be calculated using the following infinite series: Pi = 4(1 - 1/3 + 1/5 - 1/7 + 1/9 - 1/11 + ... ) … |
The End.