49,757 Topics

Member Avatar for
Member Avatar for dotbat

Hey everyone, I have a quick (and hopefully simple question). I'm writing a simple program that will ask the user for two different inputs(IP address and message), save those as strings, then run a command in command prompt adding those strings on the end as arguments. I'm using it to …

Member Avatar for dotbat
0
307
Member Avatar for rebellion346

Hey guys, I'm getting a few errors I can't seem to figure out solutions for: (SalesEmployee Line 21) error C2248: 'SalariedEmployee::salary' : cannot access private member declared in class 'SalariedEmployee' (SalesEmployee Line 17) error C2664: 'SalariedEmployee:: SalariedEmployee(const SalariedEmployee &)' : cannot convert parameter 1 from 'std::string' to 'const SalariedEmployee &' …

Member Avatar for rebellion346
0
90
Member Avatar for .waterboy

Problem: [url]http://contest.mff.cuni.cz/old/archive/asia1997/problemF.html[/url] I need the code..Help me c++ Masters

Member Avatar for Taywin
0
99
Member Avatar for mike42intn

im making this hangman game for a class assignment i was just hoping for some suggestions its a work in progress [CODE]#include "stdafx.h" #include <iostream> #include <iomanip> #include <string> #include <array> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { string response; int w; const int WORDS(4); do//outer do loop …

Member Avatar for group256
0
65
Member Avatar for someguyjbb

I have to make a copy constructor for a queue class and decided to use enqueue to put the files in, but for some reason it gives a runtime error. so I really need some help in figuring out what is wrong. Thanks in advanced [CODE] #include <cstddef> #include <string> …

Member Avatar for Ancient Dragon
0
116
Member Avatar for mphan228

Hey guys, I have a soda machine program assignment that requires the user to insert an amount that has to equal to dollars, quarters, dimes, or nickels. Any other input will be displayed in the "Coin Return". The display should loop showing the current amount deposited until the user's deposit …

Member Avatar for mphan228
0
209
Member Avatar for someguyjbb

please help It says when creating the object of ArrayCharQueue that I can't because it is abstract and am not understanding why please help [CODE]//array based charqueue // must use abstract base class char queue // must be dynamically allocated #include "charqueue.h" #include <iostream> #include <cstdlib> class ArrayCharQueue : public …

Member Avatar for mike_2000_17
0
112
Member Avatar for jorgempaz

I'm working in a large program. The problem is that I have to [COLOR="Green"]redraw the screen from time to time[/COLOR]. Go back to draw with SetPixel is too time consuming. With C++ I used putimage and getimage without any problem, but I can't find the equivalent instructions in windows programming …

0
94
Member Avatar for havalka

Hello everybody, I am new to this forum. I got a stuck in my work ... I have ASCII file with numerical values, and I need to read them and save them in a matrix of 2 dimensions?.... If anyone can help me please ....!!??? Looking forward to any help …

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

How i can use contractor and destruction function in program? I do not understood about this two function. Please help me ...... Your Regard Sohel Rana Bangladesh

Member Avatar for Stefano Mtangoo
0
60
Member Avatar for hamza123

My question is that what is the effect if I delete a pointer in a linked list by mistake??? What problems will arise and how will I come to know that is a missing pointer that is causing the trouble?

Member Avatar for hamza123
0
95
Member Avatar for Sohelp

Hello All, I can not understood what is function Overloading? Please help me........ Your Regard Sohel Rana Bangladesh

Member Avatar for gerard4143
0
118
Member Avatar for ak_2005

hi! i tried to run the following program in BORLAND C++ version 5.02.. [code] #include<stdio.h> #include<graphics.h> #include<string.h> #include<math.h> #include<conio.h> int const monthcount=12,dataoffset=18; struct indata { float realarray[ 12]; float array[ 12]; }; char getlabel[3]; indata data; int monthplace[ 12]; float interval,chartbottom,radius; struct wcp { float x; float y; } coord[monthcount]; …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for Sohelp

How i can use contractor and destruction function in program? I do not understood about this two function. Please help me ...... Your Regard Sohel Rana Bangladesh

Member Avatar for gerard4143
0
47
Member Avatar for Sohelp

I have a little bit problem,and that is when i use inline function? Another one is advantage and disadvantage of inline function. Anyone help me? Your Regard Sohel Rana Bangladesh

Member Avatar for Sohelp
0
247
Member Avatar for pjmmartins
Member Avatar for Armistice

For some reason im getting stuck in a loop after i enter in my "numberinput" i have a mimic case that does the same thing but with characters instead of numbers, and it seems to work perfectly all this is doing is checking to see how many times the user …

Member Avatar for Armistice
0
155
Member Avatar for lisvonj

I have displayed an array in which I have added numbers in. Numbers 1 through 9, with 9 being a sentinel value. That I cannot figure out how to assign these numbers to the corresponding indicies. Please, please help [CODE] #include <iostream> #include <iomanip> #include <string> #include <fstream> using namespace …

Member Avatar for lisvonj
0
143
Member Avatar for elminster67

hi guys, I have another noob question, I was wondering if anyone can help me with it. the home work assignment I have is "[B]In this assignment we are going to write a phone directory program. The user is asked to input a name and the program looks up the …

Member Avatar for elminster67
0
170
Member Avatar for theashman88

[code=c++] #include <iostream> using namespace std; int getNumChild() { int numChildren = 0; cout <<"How many children do you have? "; cin >> numChildren; return numChildren; } int calCredit(int numChildren, double income) { int totCredit = 0; totCredit = numChildren * 1000; if (income < 70,000) { if (totCredit > …

Member Avatar for theashman88
0
1K
Member Avatar for keskor

Hey guys i want help on implementing operator + (char) this is supposed to add a single element in an array

Member Avatar for Fbody
0
68
Member Avatar for daviddoria

When trying to pass a template parameter to another template, I am getting an 'invalid template parameter' error. I even tried to force it with 'typename' with no success. Can anyone see what's wrong with this? [code] #include <itkImage.h> #include <itkImageFileWriter.h> #include <itkRescaleIntensityImageFilter.h> template <class T> void WriteImage(typename T::Pointer image, …

Member Avatar for Fbody
0
4K
Member Avatar for babylonlion

Hi, This is what the program does: -reads data (stock symbols, open price, closing price, high price, low price, previous price, and volume ) from a text file -do some calculation to produce percent gain/loss for each stock and produce closing assets -produce a list ordered by percent gain/loss and …

Member Avatar for frogboy77
0
2K
Member Avatar for smithag261

I want to know how to write a program to obtain sum of the first and last digit of a number?

Member Avatar for arkoenig
0
230
Member Avatar for Kunal Aggarwal

I wanted to know that when I create a MFC Multiple Document (Application Type) can I use it to make an Application which I can use as a text editor. (Note : I have installed a VC2008 Feature Pack and want to create the Application Office Style) Actually my purpose …

Member Avatar for Ancient Dragon
0
189
Member Avatar for Sam56

Alrighty guys, so say I have something like this: cout <<"hello"; cout <<"how ya doin?"; cout <<"goodbye."; i know that it is somehow possile to write it something like this: cout <<"hello"; <<"how ya doin?"; <<"goodbye."; How would one properly format the block of code with only one cout? I …

Member Avatar for hiddepolen
0
83
Member Avatar for Leppie

Advice sought? Hi, I'm trying to create a program that when run ten times (closing inbetween) then throws up a message. My thoughts on this is to get my application to create a dat file storing 0 (Zero) in it, then have my application read the dat file for input …

Member Avatar for Fbody
0
209
Member Avatar for simply_viks

when m compiling my program in vs version 8.it is giving following error. error C2086: 'DWORD WINIPI' : redefinition see declaration of 'WINIPI' error C4430: missing type specifier - int assumed. Note: C++ does not support default-int Included header: <Psapi.h> C++ Linker Additional Dependencies: "Psapi.lib" #define DPSAPI_VERSION (1). any help.... …

Member Avatar for Fbody
0
98
Member Avatar for dorien

Hello, I need to find repeated sequences within a vector. I have been thinking about using search, as is described [URL="http://www.cplusplus.com/reference/algorithm/search/"]here[/URL]. But this uses an array to search, I don't need to use extra memory, as I am seaching for sequences [B]within[/B] the same vector. Any suggestions on how to …

Member Avatar for dorien
0
2K
Member Avatar for Lazarrus

Hi I am trying to print a binary search tree using a while loop and a stack. While I know that this is easier to do using recursion, for the sake of it I would prefer to do it this way and I keep running into either an infinite loop …

Member Avatar for alwaysLearning0
0
73

The End.