49,761 Topics

Member Avatar for
Member Avatar for Zvjezdan23

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; …

Member Avatar for daviddoria
0
217
Member Avatar for Kontext

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, …

Member Avatar for daviddoria
0
247
Member Avatar for rumala13

hey everybody can any1 tell me what cpuh.h directory work ? or used for what ? :O and how to include this directory ? :O

Member Avatar for daviddoria
0
79
Member Avatar for goldeneagle217

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?

Member Avatar for Ancient Dragon
0
180
Member Avatar for daviddoria

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 …

Member Avatar for nezachem
0
208
Member Avatar for TrustyTony

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 …

Member Avatar for TrustyTony
0
627
Member Avatar for CodyOebel

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 …

Member Avatar for CodyOebel
0
3K
Member Avatar for CodyOebel

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 …

Member Avatar for CodyOebel
0
3K
Member Avatar for DestinyChanger

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

Member Avatar for DestinyChanger
0
209
Member Avatar for mahendra maurya

Thanks in advance.. [B]I want to know how to get running process information of remote machine in vc++[/B]

Member Avatar for L7Sqr
0
140
Member Avatar for mahendra maurya

Thanks In Advance [B][U]Please any one can suggest me how to get network statics of remote machine in C++ .... [/B]

Member Avatar for L7Sqr
0
141
Member Avatar for jnewing

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 …

Member Avatar for L7Sqr
0
171
Member Avatar for kumarmpk4u

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 …

Member Avatar for Ancient Dragon
0
113
Member Avatar for Dexxta27

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 …

Member Avatar for Dexxta27
0
95
Member Avatar for Nicco

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 …

Member Avatar for Nicco
0
294
Member Avatar for hawita

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 …

Member Avatar for Nicco
0
486
Member Avatar for BobTheLob

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 …

Member Avatar for daviddoria
0
326
Member Avatar for mashar

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 …

Member Avatar for mashar
0
141
Member Avatar for salty11

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 …

Member Avatar for WaltP
0
127
Member Avatar for CodyOebel

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 …

Member Avatar for triumphost
0
1K
Member Avatar for Awilson089

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 …

Member Avatar for VernonDozier
0
252
Member Avatar for yongj

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 …

Member Avatar for VernonDozier
0
133
Member Avatar for GaidinDaishan

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 …

Member Avatar for Ancient Dragon
0
263
Member Avatar for ashrafu1

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 …

Member Avatar for ashrafu1
0
451
Member Avatar for Khoanyneosr

[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 …

Member Avatar for Khoanyneosr
0
168
Member Avatar for Labdabeta

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; …

Member Avatar for Narue
0
134
Member Avatar for atticusr5

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, …

Member Avatar for geojia
0
150
Member Avatar for dophine

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 …

Member Avatar for Fbody
0
183
Member Avatar for sosongetsu

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 …

Member Avatar for WaltP
0
2K
Member Avatar for exca

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 …

Member Avatar for Momerath
0
145

The End.