49,761 Topics

Member Avatar for
Member Avatar for godsgift2dagame

Hi guys, I'm really sorry to bother you with a simple question. I'm doing an assignment with operator overloading at the moment & seem to not understand how operator+ should be used in regards to my program. I understand the point of it & how to get it when using …

Member Avatar for Banfa
0
125
Member Avatar for quietcity2012

This is my assignment for my CS class. I got the assignment but I have no clue how to do it. can anyone explain it to me? thx a lot!

Member Avatar for KenJackson
0
118
Member Avatar for shrutinr

Hello. Please I need help from anyone who know about my problem.. I m passing value to textBox. I need to get that value and pass to CAN. I store val as: String^ myval=textBox1->Text; and i m passing to CAN as: Transmit.Data[0] = myval; but i m getting error. please …

Member Avatar for JasonHippy
0
233
Member Avatar for jeffcruz

[CODE] #include <iostream> #include <cstring> #include <string> #include <cstdlib> #include <iomanip> #include <stdlib.h> #include <conio.h> #include <stdio.h> using namespace std; class Fraction { private: double numerator; double denominator; public: Fraction (); // Fraction (double numerator, double denominator); //Fraction (Fraction &); //double operatorMultiply (fraction a, fraction b); //double operatorSum (); //double …

Member Avatar for jeffcruz
0
65
Member Avatar for i_luv_c++

hey guys im new to recursion to recursion..pls look at the function call ...question is how do i call in two functions at the same time..and which one should i return thank you. [CODE]#include <iostream> using namespace std; bool canMakeChange(int total, int nums[], int length){ if(total==0) return true; else canMakeChange(total,nums,length-1); …

Member Avatar for i_luv_c++
0
237
Member Avatar for dls_20022002

Hello everyone im currently making a library, and im new to using arrays, i have added some books to my library file using an array. i was wondering how would i go back and select the element in the file to delete. the area that im trying to code for …

Member Avatar for abhimanipal
0
104
Member Avatar for Justin9825

I'm completely new to C++ and trying to figure this stuff out I had posted a topic a couple days ago. After many frustrations and headaches, I deiced to start over. This is what I got: [code] #include<iostream> #include<iomanip> using namespace std; double ot = 0; double getHoursWorked(); double getPayRate(); …

Member Avatar for Justin9825
0
206
Member Avatar for Tirian

Hey. I was wondering if anyone here could help me with a little problem I'm having. I'm trying to create a "source-to-source" compiler, but I really can't figure it out. Everyone has told me to "Use Yacc/Lex " (or various variants of them), but I really don't understand how they're …

Member Avatar for Tirian
0
117
Member Avatar for e30rapidic

write a program that reads in a list of names and stores them in [I]vector<person>. [/I]Then ask the name of the best friend for each person in the list. For each best friend, locate the Person object matching the best friend and call a [I]setBestFriend(Person* newBestFriend) [/I]memeber function to update …

Member Avatar for abhimanipal
0
726
Member Avatar for 1manik

HI, I have one application which is created by Visual C++ Professional edition with using of MFC header and I have one DLL, where is every useful functions. It is possible, taht some data from DLL can be saved in SrnTerm in this command? Because function to read data from …

0
49
Member Avatar for yigster

[CODE] #include <cstdlib> #include <iostream> #include <cmath> #define width 5 using namespace std; void SelectionSort(double array[][5], int height); int main() { int height; int i,j,lab,midterm,final,number; float avglab,avgmid,avgfinal,totallab,totalmid,totalfinal; cout<<"Number of students: "; cin>>height; cout<<"\n"; double array[height][5]; for(i=0;i<height;i++) { cout<<"Please enter student number: "; cin>>number; array[i][0]=number; } cout<<"\n"; cout<<"Please enter Lab scores.\n"; …

Member Avatar for yigster
0
255
Member Avatar for sophie.c

Hi there, I write a code using socket to realize multiple message exchanges between a client and a server (i.e., a protocol running between A and B). But when I use recv() on a client to receive a message from a server, it turned out that the returned receive size …

Member Avatar for sophie.c
0
5K
Member Avatar for Crow13

Hello again, hope you guys can help me again ^^ Will make text red where need help. Sry its long... Ok, so(sorry if some things are in a diffirent language in there), the assigment is: to make a program using a Horoscope structure [CODE]struct Horoscops{ string name; int dzim[2]; string …

Member Avatar for Crow13
0
193
Member Avatar for Expora

Ok I've posted a couple of posts before regarding OpenGL stuff, but I realized I'll be better off learning c++ first (yeah!). So I started reading through some tutorials and already got the hang of if statements, variables, funcitons, and loops. So I decided that I could make a little …

Member Avatar for Expora
0
112
Member Avatar for deadelgabar

i need a program that works with windows vista, i have visual studio 6.0 and it doesnt work,, can any one help me plzz

Member Avatar for deadelgabar
-2
62
Member Avatar for codename.heaven

hi all. im sorry if i ask a newbie question, but i really newbie in c++ honestly. i got this error when i try to build solution. i dont know what files i must show to you, but i want to show 3 files. precompiled.h halls_of_lightning.h boss_loken.cpp precompiled.h [CODE=h]#ifndef SC_PRECOMPILED_H …

Member Avatar for dusktreader
0
1K
Member Avatar for Priyanka88

hello, i am student and i want to know more abour binary expression tree...i hav idea about creating binary search tree ....bt v r suposed to create binary expression tree....e.g..for a+b....+ (infix/prefix/postfix) / \ a b will u plz help me how to proceed??

Member Avatar for abhimanipal
0
126
Member Avatar for salgaby

Hey I need help with the math tutor. I need to be able to print out if the answer is right or not . Also let the user enter the number of math problems per set and what the max number will be for the set. If you could please …

Member Avatar for salgaby
0
195
Member Avatar for illway

Hey folks, I'm writing a class called Set that can put in objects (ints, chars, whatever) into a dynamically allocated array. I'm having issues with two functions, union() (which concatenates two arrays of the Set class) and intersection() (which puts two arrays together of the Set class at a point …

Member Avatar for Fbody
0
108
Member Avatar for deadelgabar

The program imitates a gambling card game. The program shows you three cards, then the program interchange them, and if you can guess correctly where a particular card is, you win. Here is some sample interaction with the program: Card 1 is the 7 of clubs Card 2 is the …

Member Avatar for caut_baia
0
266
Member Avatar for ollie60

Hi I am having issues populating a vector using "new" where nodeVec is a vector where each entry consists of another vector with 3 elements. zMap is the vector I am trying to populate with the sum of the squares of the first two elements for each entry in nodeVec. …

Member Avatar for ollie60
0
109
Member Avatar for lotrsimp12345

When i try it goes heywire and gives me 35 errors. all for the erase command. :( [CODE] for(int i=0; i<populationsize_; i++) { //check for black for(int j=answer_->front(); j!=answer_->back(); j++) { if(answer_[j]==population_[i][j]) { feedback_[i][j].push_back("Match"); for(int k=tempanswer_->at(i).front(); k!=tempanswer_->at(i).back(); k++) { //find first instance if(tempanswer_[i][k]==answer_[j]) { tempanswer_[i].erase(k); break; } } } } …

Member Avatar for lotrsimp12345
0
248
Member Avatar for kamos.jura

I have a problem with accessing iterator to the vector in following code (just a few important lines): [CODE]class Data { ... vector<double> hodnoty; public: int CompareData(vector<Senzory*> data); ... } class Senzory : Data { ... const vector<double> &GetData(void){return hodnoty;}; //Returns reference to the vector hodnoty ... } int Data::CompareData(vector<Senzory*> …

Member Avatar for kamos.jura
0
242
Member Avatar for Stivdion

This program is suppose to read a line of text and find out if its a palindrome or not(a palindrome is a line of text that has the same sequence of letters both forward and backward. but so far its only reading one line. and its not getting it right …

Member Avatar for Stivdion
0
81
Member Avatar for Uni616

Hey, I have to code a min-heap, along with other things to help compute minimum spanning tree. I coded up the min-heap pretty easily and I have no compile errors, however my delete fix up does not seem to be working properly. For example, I insert these ints into an …

0
52
Member Avatar for rkp728

Using visual studio 2008 I created a small vc++ project and ran it using the exe created. The problem is the exe runs fine on my PC. But when I tried to run the exe on an another PC it gave the error "The application has failed to start because …

Member Avatar for rkp728
0
148
Member Avatar for tarheelfan_08

Hey guys, I am working on creating a dynamic queue and I am having some problems. I got my code wrote to set up the actual code but I am unsure how to put my information in and print it. I need to enter the following information in my queue …

Member Avatar for tarheelfan_08
0
179
Member Avatar for davronrshkent

Hi guys i need help in algarithm code. thanks Remove All Occurrences For this problem please start with the code provided in file list_reversal.cpp. Add a new function to this code. The function should take two parameters: a list head and an integer. The function should remove all elements of …

Member Avatar for VernonDozier
0
89
Member Avatar for ravi1986

This is a blackjack program using array. It works in Devc++ but doesn't work in visual C++.I think I am missing some kind of header files could anyone help me out? my email is .... thanks [code] #include <iostream> #include <ctime> #include<iomanip> #include <string> using namespace std; void deal(int,int&,int& ,int[][2],int&,int[][2] …

Member Avatar for Lerner
0
2K
Member Avatar for Dewey1040

Can anybody help me understand how this design pattern works? I'm supposed to make a program that will create a tree using pointers or an array. The client is then supposed to choose which of the two types of trees he wants to use... I've created the tree with pointers, …

0
35

The End.