49,761 Topics

Member Avatar for
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
268
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
649
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
761
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
727
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
109
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
170
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
207
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
147
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
99
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
242
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
380
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
125
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
136
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
338
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
115
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
206
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
216
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
117
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
134
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
118
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
155
Member Avatar for ultrAslan

[CODE][/CODE][CODE]// /*--------------------------------------------------------*\ // | Main Program: Simple tester for Natural Power // |*--------------------------------------------------------*| // | Date: Summer Quarter 2006 // | Author: Bruce W. Weide (adapted from "anonymous") // | // | Brief User's Manual: // | Allows user either to exercise the Power operation // | in an interactive …

Member Avatar for siddhant3s
0
182
Member Avatar for davebaum1

I am [I]fed up[/I] with my current sales job and am looking at getting into the programming arena. I feel that I have the basic computer and intellectual skills necessary to be successful in the industry. However, I would like some advice on what language I should learn first. I …

Member Avatar for siddhant3s
0
112
Member Avatar for gretty

Hi I have a function where if the first character of a string is whitespace it then deletes it. My problem is I am getting an error on a certain line & I have no idea why & how to fix it. error: [QUOTE]C++ forbids comparison between pointer and integer[/QUOTE] …

Member Avatar for tux4life
0
84
Member Avatar for mybluehair

Hello. For the past 6 months I've been creating a c++ game, but all I have ever learned in c++ is how to write c++ consel. (The DOS screen) Its so ugly and I would really love to turn my game into a c++ API with some basic graphics instead …

Member Avatar for tux4life
0
108
Member Avatar for killdude69

This problem has been bugging me for two days now. I am trying to make a DLL, it exports many classes containing properties, variables, functions and a constructor. I am using VC++ 2005 on Windows Vista Basic. My project is the WGCL C++ control library. It is a mask for …

0
94

The End.