49,757 Topics

Member Avatar for
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
95
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
72
Member Avatar for aburich_44

Hi, i can't seem to be able to fix this loop ! :( I have tried to use cin.clear() but it still does not work. It goes in an infinite loop. Any ideas? Thanks in advance! [code] #include <iostream> #include <cstring> #include <string> using namespace std; int main() { char …

Member Avatar for iamthwee
-1
178
Member Avatar for manish.ranjan

How to connect c++ and oracle ? i am working on a project Multiplex management system using c++.... but it really tedious task to store and handle all data in file... please help me with the procedure...!!

Member Avatar for manish.ranjan
0
82
Member Avatar for kashimushi

Problem Statement: Finding the repeated elements in an array You are required to write a program that takes 10 integer values in an array as input from user. After getting input, the program should find the elements with repetition and number of times each element is repeated. Detailed Description: 1. …

Member Avatar for needhelp//
-2
2K
Member Avatar for casjackkwok2001

Hi. i 'm learning C++...Now i need some help for my code because i get this error [code=text]error LNK2019: unresolved external symbol "public: __thiscall Parkedcar::Parkedcar(void)" (??0Parkedcar@@QAE@XZ) referenced in function _wmain 1>C:\Users\jackkwok\Documents\Visual Studio 2005\Projects\KwokParking\Debug\KwokParking.exe : fatal error LNK1120: 1 unresolved externals[/code] Please let me know how to fix this problem. thanks …

Member Avatar for Fbody
0
121
Member Avatar for xofth

[CODE]#include<iostream.h> #include<conio.h> class citizen { private: const char name[25]; char nationality[25]; public: citizen() //first constructor with no parameter { name="Farhan"; nationality="PAkistani"; } citizen(char a, char b)//second constructor { name=a; nationality=b; } ~citizen() // destructor { cout<<"\n Destructor called"; } void display() { cout<<name; cout<<"\n"<<nationality; } }; void main() { clrscr(); …

Member Avatar for needhelp//
0
71
Member Avatar for vbx_wx

anyone know a method to find remains of programs in the registry that were not uninstalled corectly ?

Member Avatar for vbx_wx
0
64
Member Avatar for ironstove

Hello, I am currently trying to implement A* search, and I am pushing all of the costs to travel from one node to the next via priority queue. The only problem I am running into is that when I use the pop() feature, I am getting back the highest node …

Member Avatar for JamesMatthew
0
162
Member Avatar for Tainor

I've stumbled accross a curious problem. It happens that if I declare two int variables before SDL_Init, the functions to make a button appear and move do not work. However, if I put them after they do work. It is strange because the functions accion and mostrar do not use …

Member Avatar for mitrmkar
0
128
Member Avatar for ollie60

I am trying to develop a function in a linked list that outputs in a specific manner however I am getting compile errors. Tis is the code: listelement.h [CODE]virtual void out(ofstream& myfile) = 0;[/CODE] list.h includes listelement.h [CODE]void OutList(ofstream& myfile);[/CODE] list.cc includes list.h [CODE]void List::OutList(ofstream &myfile){ ofstream file; file.open("tris.dat"); if(myfile.is_open()){ …

Member Avatar for ollie60
0
101
Member Avatar for friendofgermany

Hi it's my first post here! I've got a question using active x in vc++. What i have done yet: i successfully imported a active x dll and created an object of the class in the dll. so everything works fine. now my problem is that i have a exe …

Member Avatar for friendofgermany
0
248
Member Avatar for drider

I'm having a bit of a problem with a two dimensional array of characters. The idea is that the program copies a bit of text using strcpy, and it's supposed to place it in the first line of that array. Where abouts in that line is determined by the length …

Member Avatar for drider
0
317
Member Avatar for slowlearner2010

hi fellas, here is my prob: im using microsoft visual C++ 2010 Express edition, which is a trial one...i've been googling this tutorial since last 3 week. But no result i found. I hope somebody can help me.....for ur info, im a beginner in programming world...huhu any good advise...??:)

Member Avatar for slowlearner2010
0
159
Member Avatar for harshareddy75

Hi all, I want to know if there are any C++ libraries which allow me to make JAX WS calls for a web service to a server. (Mainly the SOAP message part - the serialization and de-serialization of SOAP message) Thanks, Harsha

0
31
Member Avatar for mccbebz

just want to ask if this is an array program????... my professor told us to make array program that displays 10 names.. my professor tells us that we can use C or C++ program.. i prefer using C cause im much familiar with C programs... Output: fdgdfg dfgdfg dfgdfg dfgdfg …

Member Avatar for harsh.varudkar
0
122
Member Avatar for narendra64

Hi, I have a requirement to parse the Excel sheet . Which is the best programming language to implement this task ? I know only c/c++ programming. Can anyone provide me the tutorials ? Thanks in Advance , Narendra

Member Avatar for iamthwee
0
20
Member Avatar for sho12345

Ok so today I tried translating the ever confusing pseudo codes that our books give us and this happened. First of all, queues and lists are built in functions in the c++ library right? I have a bunch of compiler errors that wont go away. Queue undeclared, list undeclared, ifstream …

Member Avatar for sho12345
0
268
Member Avatar for slckrck89

Okay, here's the deal. I haven't tried to compile my code yet, because it's just a class library that I'm creating so far - nothing needed to be ran. Anyways, here's my code: [CODE=c++]const std::vector<Item*>& Inventory::setItems(const Item* itms, crUINT numOfItms) { _itms.clear(); for (UINT i = 0; i < numOfItms; …

Member Avatar for slckrck89
0
79
Member Avatar for fellixombc

I get an error when I try compiling with #include <cmath>, yes, I've tried with -lm, still does not work. Compiler: MinGW Compile.bat: [CODE]@echo off echo Compiling... g++.exe main.cpp -o "Distance.exe" -lm pause [/CODE] cmath IS in MinGw include folder. C:\MinGW\include\c++\3.4.5\cmath Any ideas?

Member Avatar for NathanOliver
0
407
Member Avatar for Eris32

Hi, I've been working on this a few days and I'm kinda stuck. my error is in line 38- average =ave(&ParentsAge,sizeof(ParentsAge)); If anyone has any ideas as to what I am doing wrong, I would love to finally figure this out!! Thanks #include <iostream> using namespace std; void displayTitle () …

Member Avatar for Eris32
0
171
Member Avatar for nola_Coder

For some strange reason, my game's score counter is not working correctly. I threw in an enemy, which just walks back and forth between two blocks in the map. I know I probably didn't program the enemy the smartest way, and I'm probably about to change it. Instead of programming …

Member Avatar for NathanOliver
0
108
Member Avatar for evans007

So I'm trying to loop and read in values from my csv while there are values to be read. What do I use for the while condition? I tried all manner of things..... [CODE] void load() {//read from file ifstream inFile("csv.txt"); string line; if(inFile.is_open()) { } else { cout << …

Member Avatar for NathanOliver
0
107
Member Avatar for close_encounter

What I'm trying to accomplish is for the program to ask the user for their username and password and display it to the screen like this "John, abc123" after the function passwordCheck has confirmed that the password is not less then 5 characters. If the password is less then 5 …

Member Avatar for close_encounter
0
91
Member Avatar for ejohns85

Hello, I am using the computer vision libraries in OpenCV - if anybody is familiar with these then maybe you can help ;) I am trying to estimate the fundamental matrix between two images, using cvFindFundamentalMat(). I have created two matrices representing points in the left (points1) and right (points2) …

Member Avatar for daviddoria
0
155
Member Avatar for anollipian

Hi I'm Starting At my Graphics Project Now I'm going to Make a 3D animated Poster It'll have flying Houses & People .. I'm using OpenGL & 3DMax .. What Should i be knowing for starting at that project ? Lightening , Texturing , .. hmm Would you please tell …

Member Avatar for daviddoria
0
77
Member Avatar for timbomo

im trying to figure out how i count the number of 5 letter words in a file and the number of 6 or greater words in the same file using a string. all the examples are at higher level of programming im just a beginner. my books very briefly tells …

Member Avatar for Erco21
0
102
Member Avatar for Obsidian_496

My program has to open a text file. I want it to give an error message if the file does not exist (or has a diferent name, which is the same, really). I'm using a pretty old Borland compiler, because home assingnments are checked with it. Compiler shows me this …

Member Avatar for hag++
0
156
Member Avatar for natasha_sfu

for reading the image which is in bmp. i am reading that same as text file but it does not work. my code [CODE]# include <iostream.h> # include <fstream.h> # include <string.h> using namespace std; int main() { string getcontent; if string openfile(" image.bmp") if(openfile.is_open()) { while(! openfile.eof()) { getline(openfile, …

Member Avatar for hag++
0
110

The End.