49,761 Topics

Member Avatar for
Member Avatar for frank754

Re: Visual Studio 2008 adding/deleting portions of the form: I'm sure this has been asked before, but if I create a new project and add buttons, text boxes, etc. from the designer (the GUI portion), and click on each element, it creates a class for it in the .cs view. …

0
60
Member Avatar for SgtMe

Hi just a simple n00b question. I need to split a string (from a .obj 3D model format) into a list of three doubles (the vertices). example string: v 0.200006 -0.093641 0.584690 I want to make it into an array of (for example): {0.200006, -0.093641, 0.584690} I can get rid …

Member Avatar for SgtMe
0
167
Member Avatar for Christ1m

Create a Person class to represent a person's contact information. Your Person class must consist of the following: PRIVATE members: string firstName,lastName; birthDate //you get to choose the data type, but the type you choose must be able to maintain a // 1 day resolution PUBLIC members: 1. Default constructor …

Member Avatar for Christ1m
1
1K
Member Avatar for Tguid24

I'm taking a computer science class, but I do not have a very good professor. He does not explain anything. We have an assignment to : Write a complete C++ program in stats.cc to read an arbitrary number of real numbers(one value per input record) from a specified input file …

Member Avatar for Tguid24
0
186
Member Avatar for Rayanjaha

i want to write a program can caulate the area of a circle and squar using overloaded functions, i tried but it didnt work , what i missing here ? [CODE]#include<iostream> using namespace std; class math { int r; double d; public: void set_value(int t) { r = t; } …

Member Avatar for gerard4143
0
105
Member Avatar for RickSMO

So I am beginning to learn C++ and I have this issue where whatever I do pops up in command prompt quickly, like a flash of it. I remember I had this issue before and I was able to add or change something in my code so that I had …

Member Avatar for Narue
0
158
Member Avatar for Bri426

I'm writing a program for my C++ class that goes off of a previous assignment. The previous assignment asked the user how many numbers they wanted to enter, asked them to then enter the numbers and then found the sum, average, largest and smallest number from the inputted numbers. The …

Member Avatar for Bri426
0
159
Member Avatar for TheWolverine

Hi all, I've found a few references that address this issue, however I haven't figured out what the solution is in the specific case that I'm dealing with. Hopefully someone can help me out. The following code prototypes the general idea that I'm working with: [CODE] class FooClass { public: …

Member Avatar for Stefano Mtangoo
0
4K
Member Avatar for acerious

After a HDD wipeout, I lost my completed .cpp files for program 2 which I already have done creating a function out of the following code. The only problem is, for the last few days I have been failing to recreate or replicate what I previously have done a few …

Member Avatar for acerious
0
83
Member Avatar for shaliniP
Member Avatar for salamjamal10

Hello all, I hope I find the help I need here. I am sorry I am not good enough in C++ yet. This is my first year so please be patient with me. This is my problem: p = 4x^5 + 7x^3 - x^2 +9 the ADT operations are: p.degree() …

Member Avatar for salamjamal10
0
217
Member Avatar for Nemo_NIIT

Hi friends can you send me links OR tell me how to write log files in C++ using events i have got some link from Google but it is not helpful can anyone please help me with some example code

Member Avatar for Ancient Dragon
0
171
Member Avatar for RaoxFaello

I've been severely troubled on putting a cout whereas will tell me [COLOR="Red"]"Error"[/COLOR] if i didnt put an integer and put a symbol or alphabet instead here's my code.. [CODE] #include <iostream.h> #include <conio.h> int larger() { int x,y,z; cout<<"enter 1st integer : "; cin>>x; cout<<"enter 2nd integer : "; …

Member Avatar for Narue
0
143
Member Avatar for myk45

Hello. For 2D matrix multiplication, i tried a new method, which uses only 2 for loops. (im basically using a 1D array to access the elements). Here is the code: // Mutiplication.cpp : Defines the entry point for the console application. // [CODE]#include <stdio.h> int main(void) { int a[] = …

Member Avatar for myk45
0
129
Member Avatar for Rayanjaha

Hi guys ! I am trying to find out how to do this problem using construction with useful value , here is Can I use cons traction with [CODE]public : void set_value (int e, int r) …

Member Avatar for sundip
0
125
Member Avatar for D33wakar

make failed Error: Error: Unresolved external '_main' referenced from C:\BC5\LIB\C0X32.OBJ I got above error when trying to build one of the examples given in \BC5\examples directory.What is the cause?

Member Avatar for D33wakar
0
234
Member Avatar for suncica2222

I want to change icon on remote exe with one that is stored in RC_DATA in my original program (exe) I'm using VC6 where is the error? here's the code [CODE]HINSTANCE hExe = LoadLibrary(nameExe); // first icon HRSRC hRes = FindResource(NULL, MAKEINTRESOURCE(101), RT_GROUP_ICON); HGLOBAL hResLoad = LoadResource(NULL, hRes); PBYTE lpResLock …

Member Avatar for usagi
0
244
Member Avatar for khadija_houtat

hi im new her i want your help im computer student im very week in c++ i have an assingment i dont know how i can solve it this is : design and develop a program which simulates a cellular phone call processing center. The simulator has the following requirements …

-2
36
Member Avatar for ambegin

how do I write a function that creates 2 arrays for GradeBook? The first array has three columns and two rows and then I need a loop that will average the values of the rows then display them in another array. PLEASE HELP!

Member Avatar for WaltP
0
37
Member Avatar for blackrandom

Alright so I'm completely stuck I don't understand my assignment. My biggest problem is learning what gets passed where since our instructor has us working across 2 .cpp files and a header file. I think I might be able to write the code if I understood HOW it was being …

Member Avatar for VernonDozier
0
99
Member Avatar for shawnisalk

Hi, I'm trying to write a program for Windows that will control the mouse with the keyboard, but I'm not sure I understand how Windows works. My theory is that I will need to send mouse event messages for the mouse and hook the messages from the keys that are …

Member Avatar for shawnisalk
0
325
Member Avatar for headedtomexico

I'm distributing a binary that users are required to install the following: Microsoft Visual C++ 2005 Redistributable Package (x86) Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) If they don't have them the program puts up a ambiguous error message. I'm not really sure how static linking works, but I …

Member Avatar for Ancient Dragon
0
156
Member Avatar for XodoX

Ok, I'm wanting to do the following... A C++ program that can edit a sentence with word insertions and deletions. You can assume the sentence has words and numbers separated by spaces and punctuation symbols. The input is a regular text file, where each line is terminated with an end-of-line …

Member Avatar for XodoX
0
110
Member Avatar for gus7984

The assignment was to write a C++ program that implements Insertion, Bubble, Merge Sorts for sorting Arrays of non-negative integers. The three Algorithms should return as output not just the sorted Array but also the number of COMPARISONS needed to sort the array. The array is has randomly generated numbers …

Member Avatar for kes166
0
161
Member Avatar for aaronmk2

I am having trouble with the evaluate class. An error message is coming back for the pow(x, degree). I have included the cmath library and have cast x and degree into double. Any hints or tips would be greatly appreciated. I have tested the program without the pow(x, degree) and …

Member Avatar for sfuo
0
92
Member Avatar for jimbob90

OK so I'm doing this assignment and i'm confuzzled: write a basic class, with a constructor, default constructor, setter and getter functions. This is what I got: [code=c++] class Car { private: int yearModel; string make; int mpg; public: Car(int, string, int); //constructor void setDefault(int, string, int); // def constructor …

Member Avatar for jimbob90
0
91
Member Avatar for Jeneo W.

Hello How do I deal with Trees as Linked Lists ?? View Photos, [URL=http://img832.imageshack.us/i/49362381.png/][IMG]http://img832.imageshack.us/img832/4553/49362381.png[/IMG][/URL] Uploaded with [URL=http://imageshack.us]ImageShack.us[/URL] I think I would need for TL* son ,TL* father, TL* brother. [CODE]struct ff { int id; ff * son; ff * father; ff * brother; }; class formula_s { public: ~formula_s(); formula_s(); …

Member Avatar for Jeneo W.
0
87
Member Avatar for kuchick32

I am starting a homework an assignment on C++ about a mortgage calculator. It is really complicated and I'm really confused. I just need some help. PLEASE AND THANK YOU! :)

Member Avatar for hpfreak080
0
120
Member Avatar for vasilevich

Hello DaniWeb, I am pretty new to this community and overall to the C++ language. Not so long ago i've decided to learn C++. Anyways the problem is: I am trying to make a simple calculator, its very easy my problem is i am trying to advance my knowlege about …

Member Avatar for vasilevich
0
259
Member Avatar for SpiritualMadMan

I have a 3rd party DLL interface to a program that I need to interface to. I have C++ Example code that does what it says it does. But, even though it is very bare bones, I really don't understand it at all. The example is written for and I …

0
64

The End.