49,761 Topics
| |
I am making Yahtzee and this is what I have so far. This is my ThingsThatNeverChange.h header [CODE]#include <iostream> #include <iomanip> #include <cstdlib> #include <string> #include <algorithm> #include <ctime> #include <windows.h> #include <conio.h> #include <dos.h> #include <math.h> using namespace std; char savenum = 'y'; char rollAgain = 'y'; int i; … | |
I am currently writing a program that uses OpenGL and so it uses the include file: #include <GL/glut.h> Now when I try to compile and run the program I get this message in the error folder: "fatal error C1083: Cannot open include file: 'glut': No such file or directory" Lastly, … | |
hey everybody can any1 tell me what cpuh.h directory work ? or used for what ? :O and how to include this directory ? :O | |
I created an application in C# and then was told it had to be started from a button selection in a C++ exec program. How do I invoke my application from the C++ program? | |
If I want to generate all combinations of a set of numbers 0-max, I can do so with for loops. The following code will output all two-number pairs: [code] for(unsigned int i = 0; i <= max; i++) { for(unsigned int j = 0; j <= max; j++) { cout … | |
I found [URL="http://www.daniweb.com/software-development/cpp/threads/358674"]this assignment[/URL] on C++ forum as was browsing to see little where I am in my mostly C little C++ thrown in understanding of C++ and if I should try to increase my knowledge in that language. I could not believe my eyes! The OP is completely lost … | |
Ok ... I have a handle to a game window in which inside this game my little character picks up items off the ground and drops them onto himself. It is done with drag and drop. I left click down drag the item to the character and release the leftclick … | |
What I am trying to do is simply get a coordinate system in which to run mouse commands in a window I have the handle to. What I am trying to do is macro my mouse. The catch is my mouse pointer has to move along with commands such as … | |
Hi, I want to write thread function myself and don't want to use boost or AfxBeginThread(). Oh, and it works in /MD[d], /MD, MFX. Thanks a lot DestinyChanger | |
Thanks in advance.. [B]I want to know how to get running process information of remote machine in vc++[/B] | |
Thanks In Advance [B][U]Please any one can suggest me how to get network statics of remote machine in C++ .... [/B] | |
so what i'm trying to get my head around it say i have a vector of vectors containing some unsigned chars and i want to copy a certain vector to another vector as follows. [CODE] std::vector< std::vector< unsigned char > > foo; std::vector < unsigned char > bar; for (int … | |
hello, Am getting the below error while compiling my project. [B]error C2440: 'initializing' : cannot convert from 'struct __POSITION *' to 'class CPtrList &' A reference that is not to 'const' cannot be bound to a non-lvalue[/B] This is the snippet of code where the error happens. Tell me what … | |
I got this question: Create a SavingAccount class. Use a static data member annualInterestRate to store the annual interest rate for each of the savers. Each member of the class contains private data members: firstName, lastName, and savingsBalance to indicate the amount the saver currently has on deposit. Provide member … | |
Hey there! First off let me say that this is for an assignment and i would of rather used a singular array. Also i'm pretty sure that the TA wrote this assignment cause some stuff is ass backwards to create the illusion of the arrays starting in the bottom left … | |
i am trying to write a program to play the Battleship game;It is not a homework problem just a practice problem. The instructions are: set up a coordinate grid, select your own ships and locations while the computer selects its own; launch missiles by entering coordinates and accept hits from … | |
| Hello, I think I have the right location for this thread. I'm working on a C++ project where I need to create a GUI. I'm using wxWidgets, which is cross platform compatible. Now I know that Cocoa/Objective-C/not C++ is the option of choice for GUI programming on the Mac, but … |
Hello all, I am currently a student doing an end-of-year software project - and I need some help. I am currently trying to return a 2D array from a function contained in a header file. The function is called from the main() and asks the user to input the location … | |
This is one part of my program, I need a loop that checks through the input(specifically the agent numbers) and then outputs the agent numbers that aren't in the input, from 1 to 20(because there should only be 20 agent). [CODE]void not_part() { ins.open(in_file); int i=0; int sum=0; cout<<"AGENTS WHO … | |
OK... I have a program that runs and sends output to a game window. It is a magic roleplaying game online. I am using getpixel to look for when my energy is down and then I send a double click to my healing potions. All is well and working. This … | |
I need some code that checks the number of characters entered and if it is not seven it needs to display "Error not enough numbers" i already tried (strlen(pin_code) == 7); but it says invalid conversion from int to const char... It needs to not conflict with the checking of … | |
So it's been a while since I've coded (a quarter) and I'm taking a data structures II class. I have an assignment where I have to implement a C++ Class named LongInt that uses an embedded internal private data member of type STL list<char> to represent the list of each … | |
I am just starting MS Visual Studio 2005. My laptop has a 64 bit Intel microprocessor and the OS installed is 64 bit Windows 7. I created a DLL in VC++ 2005 using a Export Definitions File (.def) and then created an application on VB to test it. The entire … | |
hello am doing a library program. i am almost done with it. but now my problem is i have to make the record update section work as each of the record can be updated separately. so far i think of making another menu and do it like that. now my … | |
[CODE]#include <Windows.h> HWND hgMainWnd = 0; bool InitWindowsApp(HINSTANCE instanceHandle, int show); int Run(); LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pCmdLine, int nShowCmd) { if(!InitWindowsApp(hInstance, nShowCmd)) return 0; return Run(); } bool InitWindowsApp(HINSTANCE instanceHandle, int show) { WNDCLASS wc; wc.style … | |
If I have a templated storage class, how can I create a specialized template for nested storage class. I already know how to specialize pointer template, but I don't know how to specialize this. EG: [CODE]template <typename Type> class Array { ///Array class code }; int main() { Array<int> rob; … | |
hello all, I am writing a program to test sorting times, and I am having trouble with my quick sort. essentially, my quicksort is not sorting and I am having alot of trouble with it. Does anyone see any real problems with my implementation? Thanks! [CODE] //-------------------------------------------------------- void quicksort(name_t *&charArray, … | |
Hi, I have the following code. and it works fine. [CODE] class base { public: base() {}; virtual ~base() {}; virtual void foo() = 0; virtual void boo() = 0; }; class derive2 : public virtual base { public: derive2() {}; virtual ~derive2() {}; virtual void foo() {}; }; class … | |
My class did a practice program and worked thru it however i was absent due to illness but i was sent the parameters they used for practice. I attempted it on my own but i was unable to figure it completely but i did get part of it down before … | |
Hi all, I am writing a program in which there is a part that computes all the possible values for two vectors of string patterns, one like 1XX78X9X32X (11 digit) the other like 26XX (4 digit), using digits from 0 to 9, and that passes all these possible strings to … |
The End.