49,756 Topics

Member Avatar for
Member Avatar for Mayank23

im having this problem when i try to add [CODE] m + 1 = k;[/CODE] it says this- *lvalue required as left operand of assignment* in my compiler, please help. dont mind the unfinished code. [CODE]#include <iostream> using namespace std; int main() { double b, m, k; string x; b …

Member Avatar for Mayank23
0
154
Member Avatar for J0kerz

Hi there, I am looking for a C++ library for creating, attaching to, reading from and manipulating Internet Explorer/Firefox/etc... Actually the Library could be for any browser. I am already using libCURL but I am looking for something that will let me navigate easily and automaticaly in a browser (fill …

0
37
Member Avatar for CrazyPixel

Hey guys, Here's my problem: I've been following [URL="http://www.zeuscmd.com/tutorials/opengl/03-OpenGLWindow.php"]ZeusCMD tutorials on OpenGL[/URL], and when I tried compiling [ICODE]main.cpp[/ICODE], I get an initializer error. I am not sure what caused it, since it seems exactly the same as the example. I linked all libraries it tells me to (-lglu32 -lopengl32). I'm …

Member Avatar for CrazyPixel
0
361
Member Avatar for mmmerlin

Hi, I'm writing a scientific application that has to store a large (1GB to 500GB+) amount of data on a hard drive, and then, once written, read it back sequentially to process it. The amount of data for a particular experiment is known in advance, exact to the byte. When …

Member Avatar for mmmerlin
0
504
Member Avatar for alex55

so I have and for loop to find the highest number in and array how would i go about outputting the element number? [CODE]//compares the values in the yearAverage array to find the highest temperature for(int i=0; i<lineCount; i++) { if(yearAverage[i]>=highTemp) { highTemp = yearAverage[i]; } }[/CODE]

Member Avatar for alex55
0
126
Member Avatar for Jsplinter

Below is a simplified version of the function. [code]int x; void myAdd(const double& p) { if (x > 100) { x = 1; myAdd(p); } ++x; ... }[/code] The advantage of this recursion is that I don't have to write a second function ie myAdd2. Are there any pitfalls of …

Member Avatar for mike_2000_17
0
119
Member Avatar for alex55

I have a function that should read in data from a file and add them to and array then i pass that array to another that totals the data then i want to find the average of that array and pass the max value to a variable 'max' with the …

Member Avatar for alex55
0
118
Member Avatar for QuesoTaco

Nevermind, I wanted to delete this post, but did not want to bother emailing the moderator. Sorry.

Member Avatar for QuesoTaco
0
329
Member Avatar for dennis.d.elston

Please help! I don't understand why I am getting this error: function does not take 0 arguments. The program is suppose to calculate how much fuel is left in the tank after you drive a certain amount of miles. Can someone please help explain why I am getting this error? …

Member Avatar for dennis.d.elston
0
1K
Member Avatar for biancaW

I have this question. could anyone help me how to write C++ code for it: A bank account starts out with $10,000. Interest is compounded monthly at 6% per year (0.5% per month). Every month, $500 is withdrawn to meet college expenses. After how many years is the account depleted? …

Member Avatar for jonsca
0
2K
Member Avatar for prahesh

Hi I am creating a Setup and Deployment project using Visual Studio 2008, professional edition. And I was able to build successfully the desired .msi and setup.exe files. Requirement: But I want to create a Setup project which searches registry entries for the pre-installed software (VISA) and install our setup …

Member Avatar for Ancient Dragon
0
190
Member Avatar for jackmaverick1

When I declare a class or an instance of the class, I get the error, error: redefinition of 'class player' then after, I get, error: previous definition of 'class player' by the way, I am using gc++. If you want to see the source, just ask. thanx, JT

Member Avatar for Fbody
0
8K
Member Avatar for pseudorandom21

C++/CLI @ runtime add a PictureBox to a tab control, I need to do this at run-time because they're to represent some data the user must be able to manipulate. I actually need them to be in some kind of scrollable panel on the tabcontrol. Any ideas?

Member Avatar for jonsca
0
145
Member Avatar for fragan01

Hello! When I build a solution for my program, it does not have any errors. [B][/B]However, in this particular screen (my menu screen), I cannot choose #1 (Cashier Module).[/B] What I mean is, when I enter 1, nothing appears. The choice 2, 3 and 4 do work, however. Can anyone …

Member Avatar for fragan01
0
3K
Member Avatar for gregarion

Hey guys , i am facing a problem using fprintf. Basically what happens is that , i will use it to read from an array and store the information in a txt file. The problem i face is that , for some reason , numbers such as "02 , 05" …

Member Avatar for gregarion
0
98
Member Avatar for Valaraukar

So for some reason I my brain seems be failing me :( Anyway....I have a cylinder object in 3D space and inside of the cylinder I have line objects originating at the origin (0,0,0) (which is also the centre point of the cylinder). I would like to find the exact …

Member Avatar for Valaraukar
0
196
Member Avatar for chamnab

do anyone know how to write code to display time like in the window

Member Avatar for jonsca
0
70
Member Avatar for chamnab

do anyone know how to write code that can run string from left to right of screen in C++ ? i can do it in c but in c++ it don't support delay(). i don't know it possible or not ,i want to run string at the same time i …

Member Avatar for jonsca
0
84
Member Avatar for adambomb1945

Hello all I am a disabled college student trying my best to learn how to program in either C/C++ or C#. I have come here with the hope that I could find a guru to help explain some of issues I am still fuzzy on. I would like to chat …

Member Avatar for AndreRet
0
175
Member Avatar for chamnab

i want to write some code that can input only number or only character ? plz help me ???

Member Avatar for jonsca
0
143
Member Avatar for Zvjezdan23

[CODE]// This program is supposed to figure out how much does a custom banner cost by figuring out the price for each letter and outputting it's total to the screen. #include <iostream> #include <string> using namespace std; int main() { double cost = 3.45, total; string banner; cout << "Enter …

Member Avatar for Nick Evan
0
347
Member Avatar for roseworld

[B][COLOR="Red"][U]Face recognition using Two Webcam with OpenCV[/U][/COLOR][/B][CODE][/CODE] I am very new in OpenCv, and I am trying to use 2 USB webcams with OpenCV, so can anybody help me how I can start this and understand it in short time. best regards,

Member Avatar for roseworld
0
185
Member Avatar for doctorkasim
Member Avatar for Allen 0108

I am working thru the Wrox book: [U]Beginning Programming[/U], and need some advice on getting a simple program to compile. I have Vista and use the free Borland C++ compiler. After entering in a simple C++ code, I was not able to get it to compile. When I attempted to …

Member Avatar for smTaqi
0
3K
Member Avatar for sandwich88

hi everyone this is my first post and yes, im just starting with cpp im using devc++ so i have this homework which i could get done for its due date but still it would really help me to understand more about cpp if i could get it done but …

Member Avatar for sandwich88
0
132
Member Avatar for chamnab

can anyone explain this code to me ? This code can set font color in c++ (window only) and i copy from this web site ([url]http://www.dreamincode.net/code/snippet1491.htm[/url]) it work , but i don't understand some line [B](<-)[/B] 1.void setcolor(unsigned int color) 2.{ 3. if (color >15 || color <=0) 4. { …

Member Avatar for sfuo
0
258
Member Avatar for SolidSora

I have to make a Tic Tac Toe game for class and I have a problem with checking if the space is available when the player enters it. Everything else works fine. Here is my main: [CODE]#include<iostream> #include"tictactoe.h" using namespace std; int choice; int main(){ TicTacToe myBoard = TicTacToe(); cout<<"Enter …

Member Avatar for SolidSora
0
463
Member Avatar for lochnessmonster

does anyone happen to know of any sites with advanced typedef's such as functions...pointeres....etc? i've seen them used and would like to know more about how to use them -thx

Member Avatar for mike_2000_17
0
73
Member Avatar for ITHope

We have to write a program that prompts a user to input an integer and after that i get lost i attached the problem to this thread and help would be greatly appreciated!!

Member Avatar for ITHope
0
97
Member Avatar for Szeth

Hello Everyone, I need to add functionality to store the guesses the user makes in an array up to a maximun number of guesses stored in a constant. It must display a list of the previous guesses before the user guesses a number each time (excluding their first guess). Once …

Member Avatar for Szeth
0
2K

The End.