49,761 Topics

Member Avatar for
Member Avatar for djbsabkcb

Below is my new code for this julian day program. I have fixed some of the errors I mentioned earlier. However, the day is still one short for the julian day and my conditional if statement seems to be the problem. I have tried a couple of ways to fix …

Member Avatar for zyruz
0
634
Member Avatar for logic321

Hi All, I am working on an assignment for this week, and once again could use your help in understanding concept. Basically, a company pays their salespeople on a commision basis, I need to write a program that uses a single-subscripted array to decide how many people are getting paid …

Member Avatar for Narue
0
390
Member Avatar for Kob0724

With school out and summer in full swing I decided to learn C++ in order to keep myself busy. I've been playing around and learning a lot. So far I've been able to make a program that solves quadratic equations! Alas, I've encountered a problem I can't figure out for …

Member Avatar for Narue
0
175
Member Avatar for dark7angelx07

Hi everyone, I'm having trouble with this program, I hope you can help me with it. I have to write a function that takes an integer value and returns the number with its digits reversed. This is what I have so far...... I will put a [U]*/*[/U] where i need …

Member Avatar for Narue
1
645
Member Avatar for shakoush2001

Hi Guys Ive been working on a project and it compiles and runs succesfully (in Borland BUilder 5.0). But when I try to run the excecutable outside the programming environment it gives me the following error: "This application has failed to start because BCBSMP50.BPL was not found. Re-installing the application …

Member Avatar for CrazyDieter
0
199
Member Avatar for somer2412

i am programming in Microsoft Visual c++ 6.0 and I have two linking errors that I do not know what they mean. Can someone please help. Linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/Programming Project 1.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.

Member Avatar for CrazyDieter
0
411
Member Avatar for shahid

please someone give me some idea to write this program Write a C++ program that has class 1) math Math class has only one data member number and member function display that will display the data member number. Write the constructor of your math class that will initialize the data …

Member Avatar for Dave Sinkula
0
161
Member Avatar for mr. President

Hey guys: Can anyone please help me. I am having problems with this program and nned help understanding this. here is the code and the problem. Thanks. =========Mr. President============ Use a text editor such as Notepad to create a text file that contains several integers. The first integer in the …

Member Avatar for mr. President
0
133
Member Avatar for djbsabkcb

Below is my Julian day program. I have to convert a day into julian and then get todays date and tell how many days from the julian date it is. I am having problems with the output of the julian date is off by 1 day and my difference output …

0
112
Member Avatar for ohnbabygal

hi im writin a simple GUI project usin C++ (Dialog). i have an input file with a list of foods. my goal is to display the list of foods in a ComboBox and then Add some new food and Delete some. But i just cant put the list to a …

Member Avatar for arunkg999
0
214
Member Avatar for cluna
Member Avatar for chiwawa10
0
186
Member Avatar for bandm

I wrote a simple program to print out Testscore in Visual Studio .Net 2003 and got the following messages when trying to run it. 'TestScore.exe': Loaded 'D:\Documents and Settings\pooleb\My Documents\Visual Studio Projects\TestScore\Debug\TestScore.exe', Symbols loaded. 'TestScore.exe': Loaded 'D:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'TestScore.exe': Loaded 'D:\WINDOWS\system32\kernel32.dll', No symbols loaded. The program '[3920] TestScore.exe: …

Member Avatar for bandm
0
193
Member Avatar for bluegirl

Hi, i need help creating a copy constructor. i have a class called CElist (and another called CEmployee) and it contains methods like this one: bool CElist::getFirst(CEmployee& e) { //do some stuff //sets e to the first employee and returns true //returns false if it cant } my problem is …

Member Avatar for Narue
1
212
Member Avatar for durga prasad d

Hi all, What is vtable ? How many vtables created for this sample. class A { virtual void myFunc() = 0; }; class B : public A { virtual void myFunc() = 0; }; class C: pulibc B { void myFunc() { cout <<"MyFunc"<<endl; } }; void main(void) { C …

Member Avatar for Narue
0
93
Member Avatar for CrazyDieter

In order to provide a simple "garbage collector" for my programs, I'm trying to write a template smart-pointer class, that may be used like that : [code] #include <ref.h> class Foobar{ ....}; ref<Foobar> sample_manipulation(ref<Foobar> in) { ref<Foobar> f=in; //.... return f; } int main(void) { ref<Foobar> f1=new Foobar; ref<Foobar> f2; …

Member Avatar for CrazyDieter
0
181
Member Avatar for JoBe

Hello ladies and gents, I had to do an exercise in wich I was required to compair two standaardtype strings opposits, meaning: name = "Johan", name2 = "nahoJ" The idea was to return a bool value True or False. I did this with the following code I wrote:[code]#include <iostream> #include …

Member Avatar for Dave Sinkula
0
241
Member Avatar for jazzyjoe

Hello I am new to C++, I have this program which i take an input file and i have to find the average and standard deviation of the numbers in the file. I have part of the program completed but i don't know where to go from there. can someone …

Member Avatar for murschech
0
143
Member Avatar for DotNetUser

txtULCol->Text == "" does not work for checking for a blank textbox in VC++ .NET. With or without text the code always return false. Any suggestions? Thanks.

Member Avatar for alpha_foobar
0
154
Member Avatar for shakoush2001

Hi Iam using Borland Builder 5, and Ive got 10 TImages called Image1, Image2....Image10. I want to add these images to an array of type TImage can I do that in a for loop or do i have to add each Image by itself. //this is the method Iam using …

Member Avatar for Rashakil Fol
0
170
Member Avatar for Stanislaw

Is it possible to create a variable within a program (while its running). The problem I am trying to Solve: In school I created a cashmachine emulator. The thought then dawned on me, what If I wanted different user abilities within my cash machine program (Ie. only the manager would …

Member Avatar for tonakai
0
369
Member Avatar for cymerman

I am doing this program that has a menu of 8 items The error is: --------------------Configuration: aaaaa - Win32 Debug-------------------- Compiling... aaaaa.cpp c:\temp\test\test1\aaaaa.cpp(125) : error C2374: 'x' : redefinition; multiple initialization c:\temp\test\test1\aaaaa.cpp(120) : see declaration of 'x' Error executing cl.exe. aaaaa.exe - 1 error(s), 0 warning(s) Does anyone know where …

Member Avatar for cymerman
0
253
Member Avatar for BioTechNoob

Hi all, My first, but likely not my last post. I’m teaching myself C++ with basically no programming background. I’ve been using Borland, reading books (such as teach yourself in 21 days, etc.) and reading this website, but now I’ve run into a problem and after three days of trying …

Member Avatar for zyruz
0
130
Member Avatar for JoBe

Hello ladies and gents, Came across a program example in wich you are able to sort program-parameters in alphabetical order. The code is this:[code] #include <iostream> #include <string> using namespace std; void sort2(char* &p, char* &q) { if(strcmp(p, q)> 0) { char *h; h = p; p = q; q …

Member Avatar for JoBe
0
366
Member Avatar for jakejacobson

[COLOR=Blue]I have the following code to initilize struct booknode in a link list.[/COLOR] [code] // Here is how I defined booknode typedef struct booknode { char *title; // char[], holds book title char *author; // char[], holds book author char *isbn; // char[], holds book isbn float price; // float, …

Member Avatar for Rashakil Fol
0
309
Member Avatar for mina1984

Hi, im lost and i need help writing a function gcd that returns the greatest common divisor of two integers and has to allow five sets of numbers to be input by the user. this is what i have so far where i put /* is where i need help …

Member Avatar for mina1984
0
387
Member Avatar for M Tritt

I'm building a tic tac toe game with a variable board size using class GameBoard and class GamePiece. The GamePieces have a char array, pName, for the player's name and a char pType for the piece (X or O). the board is set up using a pointer to an array …

Member Avatar for Narue
0
272
Member Avatar for M Tritt

I have a pointer called **pieces that points to an array of class type GamePieces that contain members pName and pType. I am trying store values in pieces[row][col].pType and then print the pieces in a matrix. My program crashes on this line of code: [code] while (pieces[row][col].pType == 'X' || …

Member Avatar for Narue
0
110
Member Avatar for somer2412

Can someone please help? My assignment is to display a chart using loops, not allowed to hard code any numeric values below the headings. The user is given three options if someone could help me get started with the first chart, I can get the rest. I have included my …

Member Avatar for zyruz
0
138
Member Avatar for cpp noob

i have jut started learning cpp need help : is their any way i can make a char statement conatining spaces too. if yes plz tell me. :rolleyes:

Member Avatar for cpp noob
0
303
Member Avatar for shakoush2001

Hi guys, I working on a chess program and Iam now inserting the images for each stone to the form, the problem Iam facing is that I want the Image only to occupy the area of its perimeter without the white (or otherwise) background that accompanies the square area which …

Member Avatar for Narue
0
194

The End.