49,757 Topics

Member Avatar for
Member Avatar for gendler.max

Hi, I am writing a program for my C++ class that must create a struct(Hero) and make an array of it. My class is using the lvp library and i was wondering if anybody could help me make a vector of hero objects. This is what i have so far: …

Member Avatar for gendler.max
0
136
Member Avatar for Roo0ond

I am a student at the university .. I have many tests .. and I have a project to earn a few degrees .. I want to convert such a difficult equation, known as Chebyshev? A program in c + +

Member Avatar for Fbody
-2
81
Member Avatar for kalrajhi

//Program checks employment status, if part time, NO VACATION, if full time, program goes into if/else nest and asks for number of years working at company. More than five years,full time employee granted 3weeks of vacation. Five years or less, full time employee is granted 2weeks of vacation. [CODE]#include <iostream> …

Member Avatar for kalrajhi
0
171
Member Avatar for smitysmit

can i make a program open another program after a user selects it such as i am making a menu and i want if the user enters 1 it opens the program accociated with 1 or will i have to paste all the files from the external program to the …

Member Avatar for restrictment
0
143
Member Avatar for athenaabc

Hi i'm a student and have problem with moving bitmap. I must load it in the center of client area and after there moving using keys but it doesn't work :( Can you help me this is the code:[CODE] CKursovaView::CKursovaView() { size=CSize(50,50); // TODO: add construction code here } CKursovaView::~CKursovaView() …

Member Avatar for soniakhan33
0
131
Member Avatar for Whizzy

As requested by a friend in email, I wrote a a simple attack routine in a 20d ad&d style. As you all can see, I'm not a programmer. I dabble. I was trying to show how the attack is calculated, nothing much more than that. Though this code works, it …

0
40
Member Avatar for prodstar

hi i'm currently in need of a quit option i have something like for example click 2 for quit but i don't know how to make a command for it, could someone please help me

Member Avatar for finito
0
66
Member Avatar for restrictment

Hey everyone, I got bored and decided I wanted to make a 'pitch' cards game in c++, however I came across the problem of generating all 52 cards in a deck without duplicating the same card. So basically, I just want to print out every single card in the deck …

Member Avatar for iamthwee
0
191
Member Avatar for empror9

hello, i want write a simple programe wich count the number of the chrechtar this is my code [CODE] #include <iostream> using namespace std; int main() { int count = 0; char str[30]; cout << "enter a word: " << endl; cin >> str; for (int x = 0; x …

Member Avatar for siddhant3s
0
161
Member Avatar for so0oso

i write now code the game of hang man i want code sound in eclipse if true or false Brief sound teacher she said the cod is one line after Loading any sound plaaaaaaaaaase i want help

Member Avatar for Salem
0
108
Member Avatar for melteddashboard

Hey I'm new here so forgive me if I do something wrong. Just let me know and I'll try to fix it. Basically I'm trying to write a binary search tree without using recursion. (Difficult I know, but if you can show me how to do it without changing the …

Member Avatar for VernonDozier
0
430
Member Avatar for JunChen

i am trying to merg two linked list. error occurs when i run the program it dead. i believe it is because the function i defined to merge these two list has problems would someone helpe me to fix it or some hint would be nice thanks[code]#include <stdio.h> #include<malloc.h> typedef …

Member Avatar for Lerner
0
134
Member Avatar for livestrong2431

I'm trying to create a simple network with perceptions and it doesn't seem to be working. I was wondering if someone could correct my mistakes. Thanks! [CODE]#include<iostream> #include<cstdlib> using namespace std; int pWeights[] = {0,0}; int Classify(int pInput, int pThreshold, int i, int Bias){ int classOut; if( pInput*pWeights[i] + Bias …

Member Avatar for livestrong2431
0
105
Member Avatar for fellixombc

How can I fix this so it will let me compare the two? note, the error is at the for loop. [CODE]string Socket::Recv() { /* Get socket size before recv'ing */ while (size == 0) ioctlsocket(client, FIONREAD, &size); /* Create a 'string (characters)' the size of the information being recv …

Member Avatar for fellixombc
0
124
Member Avatar for nkinar

Hello-- Inside of a header file (Point.h), I've created a class template. I need to override the addition operator as shown below, so what I have done is declared it as a [I]friend[/I]. However, when I try to access the private member variable [I]std::vector<T>coord[/I] from within the body of the …

Member Avatar for nkinar
0
217
Member Avatar for strmstn

Hi. I have a richedit control and when dropping text from another control I would like to change the format of that text. I wonder which messages I should trap or how to do this in plain Winapi. (I have already subclassed the pasting message) Thank you.

0
121
Member Avatar for osaca

hi, I am a new member here i hope that found some one who can help me in this C++ project I am a novice in C++ and this will be my first code if any one has experience please help me in the algorithm and what should i do …

Member Avatar for Lerner
0
728
Member Avatar for shazzy99

Hi, I've been trying to capture video from webcam using openCV functions and openGL for rendering. The code is working fine and I can acquire and display both the cameras. Now I'm trying to record the captured video's and saving them to a file using openCV createvideowriter object. I can …

Member Avatar for shazzy99
0
314
Member Avatar for empror9

hello geys, i have some codes and i tried to find the output for each of them. most of the codes i answered but there are some codes which are strange for me (the output) first, i want from every one is to find the output without test it, please …

Member Avatar for empror9
0
65
Member Avatar for virtualsansar

how to create circular linked list for the following situation? If there is upto n number like 123456 initial list, start counting from 1 12456 no. 3 eliminated, continue counting from 4 1245 no. 6 eliminated, continue counting from 1 125 no. 4 eliminated, continue counting from 5 15 no. …

Member Avatar for mrnutty
0
82
Member Avatar for johndoe444

[CODE]template<class type> struct _binary_search_tree { type key; struct _binary_search_tree* parent; struct _binary_search_tree* left_child; struct _binary_search_tree* right_child; }; template<class type>void tree_insert(_binary_search_tree<type>** tree, type key); int main() { char number[10]; _binary_search_tree<char*> root; tree_insert(&root, number); }[/CODE] [QUOTE]compile error: 755.c:182: error: no matching function for call to ‘tree_insert(_binary_search_tree<char*>*, char [10])’[/QUOTE] Thanks.

Member Avatar for caut_baia
0
83
Member Avatar for dadeejay007

Create and use a function to calculate the standard deviation of the numbers in the array Output the standard deviation of the set of numbers

Member Avatar for Acrimonus
-3
79
Member Avatar for Iqbal_h_a

Hi Guys, I have a question on C++ object creation. Please consider the following code snippet. [code] class Foo { private: int i; public: A(int ii):i(ii) {}; }; int main() { const Foo &ref = Foo(1); } [/code] Here I am bit confused about the line : const Foo &ref …

Member Avatar for kvprajapati
0
101
Member Avatar for zeus77

Im desperate here I have been working on this hashing program and im really bad at multiple files I followed all the rules in books and web pages I have seen on the topic and still cant get it to compile =(. I have included my 3 files I also …

Member Avatar for jonsca
0
73
Member Avatar for Dewey1040

I have an assignment where I'm supposed to "implement a class, Point that represents a point in a three-dimensional space." and im supposed to "carefully design the interface for this class and include functions that appear to be useful for operating on points." I'm not fully sure what this is …

Member Avatar for mrnutty
0
161
Member Avatar for sonny tran

so i need some help. I'm trying to create a matrix that will do all these functions.. but im not so sure what im doing wrong since im an inexperienced at c++. Anyone? Gratzi! [CODE]#include <math.h> #include <iostream> #include <string> //#include <matrix.h> using namespace std; #define MAXNUM 9 class Matrix …

Member Avatar for Lerner
0
105
Member Avatar for tinanewtonart

[QUOTE]Sometimes, storing an image is easier if you store the steps taken to draw the image rather than the image itself. In such a situation, a sequence of directed lines are concatenated, or attached to one another, to form the image. For example, a simple drawing program might allow eight …

Member Avatar for tinanewtonart
0
556
Member Avatar for Atlanticspace

hello everyone, Im a student having to write a C++ program and im running into an error that I have been unable to find the solution on my own. Im running into an error as I test run the program to make sure everything is still ok. The program isnt …

Member Avatar for umairch
0
268
Member Avatar for aleX_X

I have to make a function under class record that returns a pointer person class data type. I am assuming that this means setting a person object to equal to the returned pointer person class type but in order to do that It looks like i need to make an …

Member Avatar for umairch
0
190
Member Avatar for imKEN

how could I do this program? Using pointers can I create a Tagalog - English translation program that requires the user to input a sentence, and the program must output a rough English translation which should also be in a sentence form? Any Idea or codes to help me make …

Member Avatar for imKEN
0
61

The End.