49,766 Topics

Member Avatar for
Member Avatar for Chaosis

I am writing a program that needs to get pixels from a window, and search for a certain range of pixel colors. I have been using getPixel, but that method is too slow for even 800x600. Does anyone know a different method/s? The window uses Direct X, if that helps...

Member Avatar for Chaosis
0
212
Member Avatar for mossaied

I am using visual c++ version 6, I have compiled the systemC library, then creates a new project contains multiple files then I try to build it but the building failed due to an error called "error C2679" and this the error message: "d:\systemc-libraries\systemc-2.0\systemc-2.0\src\systemc\communication\sc_signal.h(234) : error C2679: binary '<<' : …

Member Avatar for VernonDozier
-1
321
Member Avatar for jaepi

Hello there! can anybody here point me to any GUI programming in Linux tutorials. Been googling around but no good hits. Thanks.

Member Avatar for CasTex
0
133
Member Avatar for Niner710

Hi, I am struggling with the best way to twiddle a large number of bits. What I have is a large amount of binary files(~100) in my directory that I need to do post processing on. I want to compare all the bytes in each file and see when the …

0
46
Member Avatar for kolosick.m188

How do you close a QTabWidget? I have the code but when I click on the close button nothing happens.

Member Avatar for kolosick.m188
0
281
Member Avatar for sdmahapatra

I am getting an error C2664: 'F_Ite' : cannot convert parameter 1 from 'double *' to 'double'.Will please anybody help me from this problem.I am new in C++. Thanks [CODE]#include<iostream> #include<cmath> #include<algorithm> using namespace std; // you should not use this statement. void F_Ite(double,double,double,double,double,double); // never ever declare global data …

Member Avatar for sdmahapatra
0
279
Member Avatar for begnnr_help

I am running into a baffling problem with my code. I am supposed to write a program to average the test scores for an entire class of students. In each case, the student should have taken 5 tests. You are to average the 5 tests. The program run should look …

Member Avatar for begnnr_help
0
651
Member Avatar for TheSilverFox

This is what I need to do: Use a single-subscripted array to solve the following problem: A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in …

Member Avatar for tux4life
0
762
Member Avatar for sdmahapatra

[code]double F_Ite() { //Main Function Start //Locally Data_type Declaration And Initialization : int numElement =20; double *a,*b,*c,*d,*Fc,*Fd; a = new double[numElement]; b = new double[numElement]; c = new double[numElement]; d = new double[numElement]; Fc= new double[numElement]; Fd= new double[numElement]; for(int k=1;k<(NI-1);k++) { //Main 'for' Loop Start std::cout <<"\n"; system("pause"); std::cout …

Member Avatar for sdmahapatra
0
742
Member Avatar for gretty

Hi I have a pretty novice question. Where do I place (install?) a libcurl library in order to using when I code. For those who may not know, libcurl is a library, I think :P, which in my case I hope will allow me to read a webpage [URL="http://www.daniweb.com/forums/thread156929.html"]link[/URL]. [URL="http://curl.haxx.se/"]Link …

0
59
Member Avatar for S.A.H

Hi every body!! I have a Question that I could not Find any answer For it:icon_cry: How Can I see The implementation Of the Build in classes in C++ class int , float , string , ostream ,.....and So on??? Pleaseee give me an answer??:icon_redface: Regards,, Sara .

Member Avatar for Salem
0
113
Member Avatar for dsladev

Im new at C++ and am trying to teach myself. I want to ask the user of the program why they are feeling a certain way, but not do anything with the sentece. So its like -how are you feeling?- user -good- -why are you feeling good?- user- blah blah …

Member Avatar for dsladev
0
171
Member Avatar for fghdmhmmd

heloo any body i try to wrote a slr parser with c,but don't correctly work,my code is : [code=c] #include<stdio.h> #include<ctype.h> #include<conio.h> #include<stdlib.h> #include<string.h> #include<iostream.h> #define epsilon '^' char prod[20][20],T[20],NT[20],c[10][10],foll[10][10],fir[10][10]; int tt,tnt,tp,a; int follow[20][20],first[20][20]; void first_of(char); int count(int j); void rhs(int j); void read_tnt(); void read_tnt() { cout<<"For SLR parser: …

Member Avatar for jephthah
0
216
Member Avatar for Sune

Hello I am doing an C++ exercise and the task is to write a program that prints all INT values between 32 to 255 and the corresponding ASCII characters. I have declared the variables to store the ASCII character and the INT like this: [code] unsigned char unchar; int i; …

Member Avatar for Sune
0
149
Member Avatar for goody11

I can't figure out how to write a program that can play multiple sounds at the same time. I tried doing some pretty complex things with the Beep function but I finally gave up. Is there any function or something to that extent out there that will let me play …

Member Avatar for goody11
0
102
Member Avatar for Icebone1000

Im kind confuse about how PostQuitMessage works.. Im using like this: [CODE=cplusplus] case WM_CLOSE : DestroyWindow( hWnd ); break; //send WM_DESTROY case WM_DESTROY : CleanUp(); gsp_quit = true; PostQuitMessage( 0 ); //send WM_QUIT break;[/CODE] That is on my WndProc function. My message loop is like that: [CODE=cplusplus] while ( !gsp_quit …

Member Avatar for Icebone1000
0
249
Member Avatar for goody11

I'm having trouble using my homemade .h files in my multi-source projects. If I I only include the .h in one of the sources I can't use it in the others. But if I include it other sources it's considered redefining the include and it won't compile. Other .h's besides …

Member Avatar for goody11
0
388
Member Avatar for djustus1

I hope I am postin gin the right spot.I am new to this site. I need help with sorting the grades, please. Can anyone help?Thanks [code=cplusplus] include<iostream> #include<iomanip> using namespace std; int main() { double *grades; //point used to point to an array that holds grad double total = 0.0; …

Member Avatar for djustus1
0
126
Member Avatar for Peter_APIIT

Hello to all, as you all know FFT algorithm has many variation in terms from its pruposes. My requirement of FFT is integer multiplication and polynomial evaluation. I looking for good reference about the topic. If you have any, please post it here. Thanks.

Member Avatar for StuXYZ
0
138
Member Avatar for Alicito

well my friends I tried to solve a problem and it was about allowing the user to enter a paragraph , then the compiler'll count and display the number of typed words . welll I easily solved it like this -------------------------------------------------- [code] #include<iostream> #include<string> using namespace std; void main() { …

Member Avatar for tux4life
0
339
Member Avatar for Zay

HELLO; see this quastion , i tried to solve it , but there is sometjing wrong , i do not know it because no errors accur ! [COLOR="Green"]A 5 letter word x is hidden in a string y such that the first two letters of x are the first two …

Member Avatar for Lerner
0
117
Member Avatar for slawted

hello guys i recieve errors when compiling my code [code] #include <iostream> #include <fstream> #include <string> int main() { std::string firstname, lastname, age, emailadress, message; char answer; std::cout << "Hello please imput your first name: "; std::getline(std::cin, firstname); std::cout << "\nNow please enter your last name: "; std::getline(std::cin, lastname); std::cout …

Member Avatar for Lerner
0
217
Member Avatar for scrappy

I'm taking CMIS140, and I have a project using complex numbers. I can't figure out how to write the calculations into the program. I have attached the project, and the code I have written at this point. If anyone has any suggestions on how to do this, I would appreciate …

Member Avatar for Ancient Dragon
0
219
Member Avatar for lexusdominus

Id like to edit a file. At first i thought this was going to be easy, but now it appears quite complex. As i understand it there is no standard way to delete part of a file? im storing data on different lines in the file, and want to target …

Member Avatar for siddhant3s
0
119
Member Avatar for timb89

[code] int countDigits(string word) { int count = 0; for (int i = 0; i < word.size(); i++) { if (word.at(i) < 57 && word.at(i) > 49) { count++; } } } [/code] i want to count the digits in a string "abc123". i know my problem is in the …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for aramakri

I have an idl file and it compiles successfully when compiled with jidl.exe.When it is compiled with idlcpp.exe it gives an MIDL2025: syntax error: expecting a type specification near "in". the idl file is interface auditserv { void storeLoginInformation(in string infmn1,in string infmn2); };

Member Avatar for jencas
0
137
Member Avatar for ruchisharma

hey , do u know any tool that convert IDL(Interactive data language) to C++. plz, if u know do tell me!! thanks in advance

Member Avatar for jencas
0
1K
Member Avatar for zoner7

This program is frustrating me. I cannot for the life of me figure out what is causing this error message. It's the sort of thing where I fix one issue only to cause 10 more. The compiler is giving me like 8 identical pairs of errors, one for each Ball.itsPosition.getX/Y …

Member Avatar for Sky Diploma
0
120
Member Avatar for faisaly

Plz guide me, "How windows APIs can provide different windows services to a developer?”

Member Avatar for Salem
0
114
Member Avatar for rmlopes

Hello, I am developing a library, which untill a few days ago was working perfectly. With some changes I needed to perform I started having a segmentation fault. The problem is that I cannot understand why the fault is happening since the conclusion from gdb is the following: [code] Program …

Member Avatar for rmlopes
0
156

The End.