49,761 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
How can i write a function to acces a serial port and control timeout? | |
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: … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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, … | |
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 … | |
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 … | |
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' || … | |
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 … | |
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: | |
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 … |
The End.