49,761 Topics
| |
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. … | |
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 … | |
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 … | |
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 … | |
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; } … | |
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 … | |
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 … | |
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: … | |
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 … | |
[B]How to generate a symbol table in c++?[/B] | |
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() … | |
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 | |
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 : "; … | |
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[] = … | |
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) … | |
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? | |
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 … | |
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 … | |
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! | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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(); … | |
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! :) | |
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 … | |
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 … |
The End.