49,761 Topics

Member Avatar for
Member Avatar for DTV

Is it possible to move the screen focus in allegro. Like, key[KEY_UP] would move the screen up on a map? Thanks in advance.

Member Avatar for DTV
0
68
Member Avatar for Kreddy89

Hi guys, I am getting similar "identifier cannot be found" errors, except with "mkdir" they look like: 1>------ Build started: Project: shot_detect, Configuration: Debug Win32 ------ 1>Compiling... 1>film.cpp 1>c:\documents and settings\kedar\my documents\downloads\shotdetect-1.0.86\shotdetect-1.0.86\src\film.cpp(22) : fatal error C1083: Cannot open include file: 'ffmpeg/swscale.h': No such file or directory 1>image.cpp 1>c:\documents and settings\kedar\my …

Member Avatar for Kreddy89
0
489
Member Avatar for phpangel

hi, i have the following code for tic tac toe game Human vs. Computer, it runs without problem but when i prompt for entering X or O, it gives an error, can someone help, appreciate the answer. here's my code: [CODE]#include <iostream> #include<conio.h> #include<process.h> using std::cout; using std::cin; char matrix[3][3]; …

Member Avatar for WaltP
0
1K
Member Avatar for ball3r

Hi guys, Firstly, a quick thank you to whoever put this site up, wealth of advice and everyone here sounds helpful. I'm quite new to C++ and programming in general so go easy on me. I'm trying to find a way through a maze from a given start point through …

Member Avatar for WaltP
0
5K
Member Avatar for pac-man

hi guys, I've created a function that returns the number of times a value resides in a container (in this case, vector). The user is able to specify were in the vector they wish to search for the value. [CODE] int number(int n, vector<int>::iterator start, vector<int>::iterator end) { int count …

Member Avatar for pac-man
0
228
Member Avatar for vedatsivri

Hi Everybody; I wrote a class that uses boost library to create thread. My thread function just do select operation for mysql database. Besides, I developed a client program to test server side, but server side gave 'segmentation error ' after fourth client request via socket. [CODE] void Thread::Start(void (*function)()){ …

Member Avatar for Salem
0
99
Member Avatar for subhan222

Hi, I am trying to embed python in c++. everything is working fine apart from couple of issue. what exactly i am doing is creating an API for C++ functions in my application to be accessible using python script. When i run a script its runs fine and when i …

0
106
Member Avatar for kavourdoukos

I had this:[CODE]classA* class[10];[/CODE] But now i dont know the exact number(10) and i want to put a variable there and i get a compilation error.What i should do instead?

Member Avatar for mrnutty
0
119
Member Avatar for Shillz

can anyone guide me how to run a c++ program inclusive of graphics through notepad++ by using borland compiler OR plz guide me hw to compile n run a c++ graphics prog in vista..as it's not possible by normal tcpp

Member Avatar for CppBuilder2006
0
962
Member Avatar for landonmkelsey

This code defines a new operator new in C++ such that the memory returned is in the shared memory segment rather on the heap. This code exists to prove a point. "Objectifying" shared memory. One can not overload the new operator but one can overload operator new. Reference the C++ …

1
416
Member Avatar for zukkoor

Im trying to write a golden section optimization search program. I have written it to this point and im getting 25 errors in it and i do not know how to fix them. I am new to programming and did do research on the errors and am still unsure. I …

Member Avatar for jonsca
0
3K
Member Avatar for jesminn

Hello All, I have some questions regarding C++ and ASN.1: 1. I have a C++ class with several data structures, which themselves hold different types of variables. Can I create an abtract model of such a class with ASN.1? 2. I also plan to write a program later on, that …

0
41
Member Avatar for san_fran_crisko

Hi, Apologies if this has been covered already - I searched but couldn't find anything relevant. I am looking to learn both of these languages mainly because I am in a bit of a dilemma career-wise. To be as concise as possible (this aint no agony aunt page I hear …

Member Avatar for Narue
0
277
Member Avatar for ilikelampard

Hi, What is the difference between CObList and CList? If we use a CList as - CList<CObject*, CObject*>, is it similar to CObList?

Member Avatar for ilikelampard
0
188
Member Avatar for nerdinator

I want to make drum software.I need to use standard midi for this.Someone please tell me how I can.

Member Avatar for Ancient Dragon
0
90
Member Avatar for ThiruNarmu

I'm in beginner stage of VC++. While i compiling the pgm with MFC there's an error "error C2065: 'IDD_DIALOG' : undeclared identifier"

Member Avatar for Ancient Dragon
0
30
Member Avatar for customtshirts

I am not interested in C++ but it is most important to learn it i was scared from it since my college time but it is a professional task for me any body have any good way to learn it?

Member Avatar for Ancient Dragon
-6
76
Member Avatar for xclusv-aj

i was just wondering if anyone can give me an example of how to use a menu and parallel array together for a vending machine c++ code. Also when do you need to initialise all these things? before the main() or inside the main()?? pleaase helppp! thanks youu..

Member Avatar for Nick Evan
-1
84
Member Avatar for xclusv-aj

Hi, i have this assignment and i would like some help with it please. It is my first assignment ever in c++ and it is my first go at writing code for it. Ill post the question and my code so far if anyone could help me get the code …

Member Avatar for Ancient Dragon
-1
321
Member Avatar for marirs07

What does the linker error "SEGMENT_TEXT EXCEEDS 64K"mean,is there any way to solve this.Plz Reply SOON!Thanks in advance

Member Avatar for ablitz
0
109
Member Avatar for Nikhar

Hi guys...I am learning binary trees and its quite interesting. But I am unable to make4 a the delete a node function in it. Whenever I try to delete a node, a fatal error occurs and the program closes. Can you please point the error out for me in the …

Member Avatar for Nikhar
0
123
Member Avatar for rehamz

i need to ask some question about header file and some sentence in c++ because i prepare master in image processing cane anyone offer help ,please thanks

Member Avatar for rehamz
-1
204
Member Avatar for ms_farenheit1

I am working on a programing that needs to accept a text file as input and read that data into an NxM matrix. The only given size limitation is that the max row length is 1024. Additionally, the program needs to produce an error if all rows do not contain …

Member Avatar for DavidB
0
3K
Member Avatar for richardarias

Hi, I have started programming in C++ and I have a newbie question: How to get a wxEdit text value into a message box, like this: [icode] void Project1Frm::WxButton1Click(wxCommandEvent& event) { MessageBox(NULL,"You typed: '" PLUS "wxEdit text" PLUS " in the textbox","Testing",MB_OK); }[/icode] Any suggestion is welcome. Thanks.

Member Avatar for winampis
0
151
Member Avatar for faat99

I have done approximations of I=∫dx/x using Simpson's rule and Trapezium rule, and I output the results to excel. And I plotted a graph. My problem is, why are there fluctation at a point of n instead of showing linearity all the way(Picture below)? I have been thinking this all …

Member Avatar for DavidB
0
96
Member Avatar for lostangel556

Hi Everyone. Apologies for the length of my first post but this one has perplexed me an bit in my project. Im creating an Windows Media Player Visualization in VS2008 and am drawing an blank on the below. What i need to do with the below code is to create …

Member Avatar for nezachem
0
204
Member Avatar for Rajasekhar33

Hello sir, This is Rajasekhar murthy.... I want a c++ program on files i.e.., write a c++ program to eliminate blank space ,comments, tabs in a given file. I am waiting for your reply sir..........

Member Avatar for Salem
-2
73
Member Avatar for johndoe444

Is this possible to declare a template struct similar to template class: [CODE]template<class type> typedef _stack { type arr[MAX]; int tos; } stack;[/CODE] Thanks.

Member Avatar for mrnutty
0
131
Member Avatar for Androggles

Hey :) I wonder how i can make my program make a shortcut to itslelf, and put it in a specific directory?

Member Avatar for Androggles
0
1K
Member Avatar for a7med sh

Can any 1 help me or give me a tip i know that i have some mistakes what I want to do is : - Read the input until eof keeping track of each letter that occurs in the input as well as the number of occurrences of that letter. …

Member Avatar for jonsca
0
143

The End.