49,757 Topics

Member Avatar for
Member Avatar for lordvoldemort

Hey I am a real amateur and I am trying to teach myself and I have been following the tutorials at [url]http://www.youtube.com/watch?v=VJGqalveGmM[/url] and I am just not able to get it to work, any help would be greatly appreciated. This is the error I am getting, I have been doing …

Member Avatar for Sodabread
0
148
Member Avatar for goldenpete

Hi, I am having an issue with OpenCV version 2.1, 2.0 on windows VS2008. I am attempting to open an uncompressed .avi video to grab frames from it. The VideoCapture class works to capture from an attached camera, and it compiles, making me think it is not a location/missing file …

Member Avatar for beano69
0
538
Member Avatar for pril

please help me with this.. (this s the function)- i don't know how to construct a code to test if array integer is empty using bool..pls help me.. (this s the function)- pls also include the main.. thanks bool isArrayIntEmpty(int *numbers)

Member Avatar for pseudorandom21
0
112
Member Avatar for nocloud

I have a custom date class that is constructed in the following way: [CODE] date date_file("dates.txt"); [/CODE] I want to put this object into a new class as a private member, e.g [CODE] //the mem_data class======================================// class mem_data { public: mem_data(int,int,std::string); ~mem_data(); private: std::vector<reader> mem_store; int complete; date date_file; }; …

Member Avatar for mike_2000_17
0
276
Member Avatar for jens123

Hello guys! :) I have problem finding out, about why the author if the code i have. Uses array like this: [CODE]int past[1000][2]; and says that 0 is side, and 1 is up.[/CODE] Does he mean that: [CODE]past[pastCounter][0]; is for up,and down (x) past[pastCounter][1]; is for sides (y)[/CODE] Appreciate all …

Member Avatar for mrnutty
0
172
Member Avatar for maikens

Hi, I am having a problem with an assignment for a C++ course. I have to make a Game of Life simulator (predator and prey). There are two organisms, lion and ant, and the lions eat the ants. My problem is that for some reason I can't fathom, the lions …

Member Avatar for daianahoney
0
315
Member Avatar for Labdabeta

Is it possible to do any logic with gl lists, I am trying to make a wrapper class for them and I have this code in the compile function: [CODE] glNewList(model1,GL_COMPILE); glBegin(GL_TRIANGLES); int pos=0; for (int i=0; i<numcmds; i++) { if (cmdtype[i]=='v') { glVertex(cmdarg[pos++],cmdarg[pos++],cmdarg[pos++]); } else if (cmdtype[i]=='t') { glTexture(cmdarg[pos++],cmdarg[pos++]); …

Member Avatar for Labdabeta
0
237
Member Avatar for porterrj

hello! I need a program that validates the imput of dates. (Checks for leap years etc.) The user enters: mm/dd/yyyy The problem is, I have trouble with complex programs. I came up with this program, but i know it's too basic for what she wants. I need to have arrays …

Member Avatar for NathanOliver
0
462
Member Avatar for sovannak

Dear All, Please everybody help me!!! I wan to convert mp4 licence of skyview format to other format such as avi wmv... Could you make a sample program for me? please download link below: [CODE]http://www.fediz.com/Mpeg4player.zip[/CODE] 1. 1.mp4 (MP4 licence of skyview) 2. 2.mp4 (MP4 licence of skyview) 3. Codec_ENG.exe (it's …

Member Avatar for WaltP
-2
703
Member Avatar for Warl30ck

OK so I'm trying to parse simple URL's from a whole char chunk using strtok but always keeps giving me an unhandled exception error . SO here is all the code in C++ : [CODE] char* str = "(%/\%)google.com(%/\%)hotmail.com(%/\%)nananna.org(%/\%)" char *url[]; while(str != NULL){ url[0] = strtok(str, "(%/\%)"); if (DownloadFile_1(url[0],szPath) …

Member Avatar for Narue
0
312
Member Avatar for literal

[CODE]int i, j; for(i=2;i<1000;i++){ for(j=2;i/j;j++){ if(!(i%j)) break; if(j>(i/j)) cout<<i<<" is prime\n"; } }[/CODE] Can somebody experienced clear me how this program actually finds prime numbers... The line with the last if condition confuses me most -> j > (i/j)

Member Avatar for Distantearth
0
162
Member Avatar for yobbko

It is possible read/use data from DDE serve. This function is possible in Micrsoft Excel.

0
49
Member Avatar for ztdep

[CODE]// // CoordMatrix.h define the matrix stored in a coordinate format // #ifndef COORDMATRIX_H #define COORDMATRIX_H #include<vector> #include <assert.h> using namespace std; class CoordMatrix { private: // val strore the values in matrix; vector<double> val; // row is row index of value; vector<int> row; // col is colume index of …

Member Avatar for vijayan121
0
186
Member Avatar for arun srinivaas

int const & refToConst = i; // OK int & const constRef = i; // Error the "const" is redundant what is the difference between the two ..?

Member Avatar for pseudorandom21
0
62
Member Avatar for maayan7

Hi, How to implement the operator << for C++?? I need to use it like that: cout<<(*iter) iter is an iterator is pointing to a vector of some type I've defined. Thank you!!

Member Avatar for L7Sqr
0
118
Member Avatar for nocloud

I've been scratching my head for quite some time with the following compilation error and I was hoping somebody could shed some light... I have the following in my header (.h) file: [CODE] //the mem_data class======================================// class mem_data : public reader, public date { //multiple inheritance public: mem_data(int,int,std::string); ~mem_data(); private: …

Member Avatar for caut_baia
0
381
Member Avatar for divineelite

How to detect which wifi modem is currently connected through code? Specifically using PSDK. Like I am using currently a TP-LINK one TL-WN321G and also a EnGenius one EUB-3701 and also a Cisco one WUSB54GC ver. 3? Is there any way direct name of the wifi modem being used can …

0
38
Member Avatar for divineelite

I am currently working on a program where there is a requuirement that if the user removes a wifi modem & puts in another one, then the internet should get connected by detecting the new modem. Also the WPA key should be needed to be entered everytime. I am thinking …

Member Avatar for divineelite
0
206
Member Avatar for DaMoose75

I have a problem with this simple Win32 application I am trying to make. As you can tell by the title, the function CreateWindow() always returns 0, which indicates failure. Here is my code. [CODE] int MessageLoop() { MSG msg; ZeroMemory(&msg, sizeof(MSG)); while (GetMessage(&msg, 0, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); …

Member Avatar for DaMoose75
0
3K
Member Avatar for vTr

Hey there, I was wondering if anyone had the time to look over my code and give me some tips or tweaks to help me get it running. The program is all about inheritance, where i have the derived class using the base class clockType (with using strings) to add …

Member Avatar for mrnutty
0
620
Member Avatar for epicbeast9022

Hello, I cannot read a file, config.cfg, in the current directory on MacOS X 10.6. I'm running a console app. Can anybody tell me what I'm doing wrong? (By the way the getline() function returns no string.) [CODE] #include <iostream> #include <fstream> #include <string> using namespace std; int main(int argc, …

Member Avatar for epicbeast9022
0
378
Member Avatar for Dante2002

I am trying to write code which will display the volume of three boxes. I have my code but am having problems getting it to compile. Any help would be greatly appreciated. Here is my code: [CODE] //Assignment Programming Using Structures and Classes // Creating and using boxes #include <iostream> …

Member Avatar for Dante2002
0
224
Member Avatar for jens123

Hello guys :) What a great and usefull forum m8s :) I have made a program in snake, but i have remade it, because c++ is quite new for me, but on tursday i have to do a presentation(examination) for my teacher explaining the code, i understand 80-90 % of …

Member Avatar for jens123
0
227
Member Avatar for Devil night

#include <iostream> using namespace std; int main() { int BSR; int HighBSR=0 , LowBSR=0 , NormalBSR=0; int patients=0,sum =0; int count=0; cin>>patients; while(patients != -1)}{{ {if ( BSR ==120 )//HighBSR+=patients; } { else if ( BSR>70 && BSR<120 )//NormalBSR+=patients; else ( BSR<=70 )//LowBSR+=patients;} ; count++; cin>>patients;}} cout<<"The Number Of All …

Member Avatar for pseudorandom21
0
186
Member Avatar for gladtoplay5

I have just finished my tic tac toe game but wanted to make it look nicer so i added some colors at the winning scene... [CODE] cout << "congratulations player 1!" << endl; cout << "[W][I][N]" << endl; cout << "[W][I][N]" << endl; // checking if the game has been …

Member Avatar for iamthwee
0
203
Member Avatar for element432

Im trying to do a exercise in one of my books and it wants me to use a function to get the factorial of a number entered by the user. Ive tried several different ways and they either get me numbers that make no sense or say if I entered …

Member Avatar for element432
0
123
Member Avatar for pseudorandom21

Sooo... Every DLL injection result I've read so far only uses a pre-made DLL, loads it into another process and says "darn I'm good." They do absolutely NOTHING useful and a couple of them are rip-offs of one another only using a different programming language. Google has failed me! Once …

Member Avatar for pseudorandom21
0
180
Member Avatar for chunalt787

I just finished with my first year of Computer Science in college and over the break I wanted to learn how to do output from a computer using a C++ program to control different I/O hardware. I was thinking I would start somewhere simple with something such as turning on …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for Rocker Gang

Hai I am drawing 3*3 rectangle by using Rectangle(),bt now if i click on that rectangle i wanna display the image in that rectangle,which is selected from the list control. I know that i wanna handle OnLButtonDown() message, bt my problem is i couldnt differentiate the rectangle which i drawn …

Member Avatar for pseudorandom21
0
119
Member Avatar for kadhaipaneer

Hi I am trying to make arrays inside a structure.. the structure looks like, [code=c++] struct mystruct{ int val; int num; string state[]; mystruct *next[]; }; [/code] The next pointer array works fine but state array gives segmentation fault. I have an array of this structure . mystruct Graph [];

Member Avatar for vijayan121
0
139

The End.