51,593 Topics

Member Avatar for
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
736
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
318
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
69
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
84
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
86
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 Iamthedude
-3
80
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
102
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
74
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
164
Member Avatar for aiosarem

Hi, I'm trying to learn the in's and out's of using the send and recv functions of a socket in C and I've hit a bit of a road block! I'm trying to send an integer from one system to another, however one system is big endian (the client) and …

Member Avatar for aiosarem
0
6K
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
108
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
568
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
278
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
193
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
Member Avatar for Violet_82

Hi there, I am trying to get my head around the bubble sort but I don't seem to get it. Now I have a program written by somebody which performs a bubble sort and I am trying to understand it but no much success. Here is the code: [CODE]#include <iostream> …

Member Avatar for Violet_82
0
253
Member Avatar for passionatecoder

Dear All, I am very new to programming and really appreciate if you can help. I am using XCode as editor My code is below: [CODE] int main (int argc, char * const argv[]) { char a[10][25]; char *ptr_a; ptr_a = (char *)a[10][25]; for (int index = 1; index < …

Member Avatar for Fbody
0
654
Member Avatar for naseerhaider

Why I can't get this program complied ? I am geting " 20 expected unqualified-id before '{' token " [code] #include <iostream> using namespace std ; int answer(int num[] ,int num ); main () { int ary[10] ; cout << " Please Enter 10 integer values" << endl ; for …

Member Avatar for naseerhaider
0
120
Member Avatar for ohh

Hello, I am fairly new to programming, so any help would be much appreciated. Basically this program gets a file with the contents like: hello one one Tt then sorts these into a binary tree, i can do that fine, however what i am struggling with is converting this to …

Member Avatar for mitrmkar
0
184
Member Avatar for chubbs1900

[CODE]/* This program reads a test score, calculates the letter grade for the score, and prints the grade. */ #include <iostream> using namespace std; char studentScore (int score); int main () { cout << "Enter the test score (0-100): "; int score; cin >> score; char grade = studentScore (grade); …

Member Avatar for Computer Love
0
1K
Member Avatar for SteveyD

Greetings again I have a small utility that reports which printer port has been selected. Its returning the correct data, but in binary, LPT 1 = 0x378 = 888 Right now its reports in the message box "Printer Port 888" I would like to change that to read "Printer Port …

Member Avatar for kvprajapati
0
126
Member Avatar for CrazeBoY

I am working on a simple program, and i am using Visual C++ Express Edition. Everything is fine, i am processing the integers and i am copying them into an integer array. But the problem is when i m trying to access that integer array for further processing or to …

Member Avatar for Fbody
0
132
Member Avatar for ollie60

I am trying to define centroid in the following code as centroid is part of the private data for this class. But when I output the data it reads 0, 0 instead of the real values. Vec is a 3 dimension class that i have created. I'm not sure what …

Member Avatar for caut_baia
0
89
Member Avatar for etisermars

hello, i have a simple question: how can i make 2 variables to have the same address. For example, if i write: [CODE]int a = 10; int &b = a;[/CODE] everything goes ok "a" and "b" have the same value and the same address but what ai need is: int …

Member Avatar for Fbody
0
3K
Member Avatar for Dinglish

please run this simple program...... why wont this work ? i tried it first with if...else [code]/*why will this program not run? what did i do wrong with the if else statements/conditions ?*/ #include <conio.h> #include <iostream.h> main() { double sales, sales_amount, quantity, total_sales, vat; total_sales = sales + vat; …

Member Avatar for Dinglish
0
130
Member Avatar for swarnnim

how to delete every 3rd node in a circular linked list? After deleting that node, the node is continued to count from the node and again deleting the 3rd node? Do u have any ideas?

Member Avatar for sourabhtripathi
-1
85
Member Avatar for harshareddy75

Hi guys, Do you know of any C++ libraries can can generate SOAP messages using the WSDL. I am writing a C++ client application and am looking for such a library. I however cannot use gSoap and wsdlpull. SOAP Client library (SQLData Systems) looks like another library which could help …

0
32
Member Avatar for nsutton

I have a little background in Python, but I want to move on to learning C# (Im not giving up on Python, I'm still coding in it). I choose C# so I can make games to submit to [URL="http://creators.xna.com/en-US/"]XNA[/URL], so I can get some games on XBLA. Anyway every tutorial …

Member Avatar for kvprajapati
0
70
Member Avatar for albertkao

I want to call a C++ program from PHP with apache server on Fedora 12 linux. testprog is put in the same directory of the test php program. I see the output of exec('ls -lrt') but not exec("testprog"). Please help. The following are my php and cpp test programs. [CODE]<html> …

Member Avatar for mutirelover
0
2K
Member Avatar for em-kay

Hello guys , I just wrote a code of Cellular Automata using OpenGl but I need your help in converting this code to a C++ code here is the code : [CODE]#include <windows.h> #include <math.h> #include <gl/Gl.h> #include <gl/Glu.h> #include <gl/glut.h> #include<iostream> #include<cstdlib> using namespace std; GLsizei Height= 800; GLsizei …

Member Avatar for iamthwee
0
233
Member Avatar for carlomarksimon

hi... got a programming assignment which really makes my brain bleed...all threads gives answers on how to access a text file and display text from that source. what i really need is the code in which i would get the text from every single line inside the text file. for …

Member Avatar for iamthwee
0
86
Member Avatar for jimJohnson

I have a homework problem that I am being asked the following.... Write typedef statements that make both Real and SinglePrecision synonyms for float I just want to verify this is correct typedef float Real; typedef float Singleprecision;

Member Avatar for Salem
0
77
Member Avatar for naanaa12

Hey im finding it difficult to start this prrogram that i need to create can u please give me a hand. and if u need more info let me know. Build a simulation system of a double auction market. In this system, you simulate a number of traders (buyers and …

Member Avatar for Salem
-1
212
Member Avatar for jimJohnson

I just coded a program and now I need to draw a memory map of the results. that shows the address of each variable. Can someone explain to me how to do this with the following code... [CODE] #include <iostream> using namespace std; //int main function int main () { …

0
54
Member Avatar for jimJohnson

I am doing a homework assignment for CSI 330 and not sure how to begin this program. It is asking me to initialize and unsigned int variable mask, with a value whose binary representation has a 1 followed by all 0's. The second part says... For a counter running from …

Member Avatar for VernonDozier
0
88
Member Avatar for ghost_from_sa

hey guys, Im doing an assignment for tech... the tutor is somewhat useless I need to make an array that can loop 10 random numbers and then display them, pass that to a function and then have that display all the numbers in ascending order using for, while and if …

Member Avatar for ghost_from_sa
0
105
Member Avatar for sabiut

Hi, i am having some difficulty calling this function, can someone please point out what i have done wrong here. The code is as below appreciate your help. [CODE]#include<iostream> #include<stdlib.h> using namespace std; void speed_value(int input) { int speed; char character; if(speed > 60 && speed <65) { cout<<"Warning"<<endl; } …

Member Avatar for sabiut
0
111
Member Avatar for smoothe19

How do I do the following? I am beyond lost. Just inform me of whatever you can. I know noone will do it all Here is what problem 21 states: If A is an n x n adjacency matrix for a directed graph, then the entry in the ith row …

Member Avatar for smoothe19
0
311
Member Avatar for robski

Hi all. Just a quick question for anyone who may be able to ehelp. If a user is to enter a choice and i use scanf to read it in. When that choice is a character that is entered, if the user enters either a character that is not that …

Member Avatar for Narue
0
116
Member Avatar for ziyakhan10

the program runs successfully but the final output comes out in the form of an infinite loop...please help [CODE] #include<iostream.h> #include<fstream.h> #include<conio.h> #include<stdio.h> struct emp { int eno; char name[20],desig[20]; float sal; }e; void main() { clrscr(); ofstream f1; f1.open("emp.dat",ios::app|ios::binary); char ch='y'; while(f1) { if(ch=='y'||ch=='Y') { cout<<"Enter the name"<<endl; gets(e.desig); …

Member Avatar for ziyakhan10
0
193
Member Avatar for HoboConductor

Hi I've been working on a pretty basic program, however I've run into a couple of problems that I've been playing around with for about an hour and I just can't figure it out. [CODE]#include <fstream> #include <iostream> #include <iomanip> #include <cstdlib> #include <string.h> using namespace std; const int MAX …

Member Avatar for Fbody
0
115
Member Avatar for 3cats

I think I understand functions but maybe not. I am getting an error on my open files function. I looked around a bit and didn't find any answers. The compile dies on line 36 'char' should be preceded by ')' I don't know whats wrong. Any help would be appreciated. …

Member Avatar for 3cats
0
223
Member Avatar for dusktreader

I ran into this particular problem at work and found it quite interesting. While implementing a multi-level image threshholding algorithm, I discovered that I needed to find all the ways I could partition a range of integers into some number of consecutive groups. I like my solution, but there may …

Member Avatar for dusktreader
0
439
Member Avatar for seyho

C++ please help me Ten new employees are recently hired by the XYZ Company. You are asked to write a complete C++ program that will read in the information about each employee and allow them to change their passwords. Your program will be called yournameandsurname.cpp and will simply do the …

Member Avatar for Salem
-2
153
Member Avatar for chialoo

It will compile, and run for a split second- but then it quits itself. I've had three people look at it, but no one can see the problem. [CODE]#include<iostream> #include<conio.h> #include<iomanip> using namespace std; void getRaise(double pay[], int size) { for(int x=0; x <size, ++x;) pay[x] *=1.05; } int main …

Member Avatar for abhimanipal
0
87
Member Avatar for PhiberOptik

hey guys, I'm using eclipse C++ and the minGW compiler. I am trying to write a header file, and in my src folder, I have HelloWorld.cpp, and HelloHeader.h I'm getting "file or directory not found when I add: [ICODE]#include<HelloHeader.h>[/ICODE] could anyone help me out? Cheers PO

Member Avatar for The ICE Man
0
115
Member Avatar for LeoC++

Hi, can some one please have a look at my code for the user to enter integers and display it back to him. For some reason my program can not accept more than 8 integers? I wrote this program for a class assighnment where we where suppose to ask the …

Member Avatar for LeoC++
0
123
Member Avatar for lross1309

I am modifying some code that spawns a thread and runs a class function. The original function was defined in ClassB as void ClassB::function(void). I now need to pass it a boolean value. I am done lots of research but I am just confused. Here is some psuedo code of …

Member Avatar for abhimanipal
0
123
Member Avatar for nkinar

Hello--- I've written a class where I would like to overload the equal sign (= sign) operator so that I can return a double during an assignment. The following code snippet shows what I would like to do, but for some strange (probably small) reason, it does not seem to …

Member Avatar for nkinar
0
105
Member Avatar for ollie60

am trying to get uniqueID in the following segment of code to count how many times the if statement gets used, but all i get is a list of 1's. Any ideas?? [CODE]if (is_tri == true) { //add the triangle to the list unsigned int uniqueID = 0; uniqueID++; cout<< …

Member Avatar for ollie60
0
76

The End.