51,593 Topics

Member Avatar for
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
179
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
84
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
123
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
75
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
66
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
166
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
132
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
105
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
258
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
369
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
163
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
32
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
125
Member Avatar for Hardz

I am a c# and MSSql Server beginner, one of the project that i created is the library system database, I used MSSql Server as my database and c# as my interface. I have no problem to run that application coz it runs smoothly and better without any error. One …

Member Avatar for powerbox
0
102
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
21
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
274
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
83
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
415
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
173
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
111
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
109
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
94
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
158
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
78
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
106
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
161
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
111
Member Avatar for lolsh

hi i have this question..i solved it but im not sure if its true or not.. template<class t> class c { private: int size; t *p; public: void set(int sv) { if(p!=0) {delete[] p;} p=new t[sv]; for (int i=0;i<sv;i++) cin>>p[i]; } c() { size=0; p=0; } the question is that …

Member Avatar for jonsca
0
103
Member Avatar for LevyDee

So is it worth learning win32 API instead of just shooting straight to Microsoft Foundation Classes? One of my classes covered win32 for a little and I was able to do a couple fun things with it, but then we jumped into MFC. It makes you ask the question, is …

Member Avatar for LevyDee
0
103
Member Avatar for red999

I implemented a BFS on a maze that I made, but the one problem that I have is that I do not know how to obtain the indices of the path that it took to solve the maze. Right now all my BFS algorithm does it prints out if it …

Member Avatar for WaltP
0
159
Member Avatar for aliirooni

hi, i have an error in my syntax where define operator +() . compiler says "declaration syntax error" i have. what is my fault!? [code=c] #include<iostream.h> class exforsys{ private: int x,y; public: exforsys(){x=0; y=0;} void getvalue(){ cout<<"\n enter value for x:"; cin>>x; cout<<"\n enter value for y:"; cin>>y; } void …

Member Avatar for Salem
0
133
Member Avatar for CarleneGriffith

I am having a problem with my code. below i have outlined the home work requirement. please take a look at the second part(this is the code that i have written) I keep getting an error when i try to run the code. The error states:The program '[3716] Lab02 Case01.exe: …

Member Avatar for WaltP
0
112
Member Avatar for robski

Hi everyone. Could someone please help me with this. I have a program which i have written and finished for a college assignment. It is completely done. I have a perfect working copy on my laptop but when i copy it to usb stick and take it to college it …

Member Avatar for WaltP
0
224
Member Avatar for dylan9

Hey guys, this is my first time posting. I'm almost done with the whole program but the only problem left is the word frequency counter. I have file(.txt) that the program reads on and it outputs the words aphabetically and if the word has been seen, it adds a count …

Member Avatar for abhimanipal
0
2K
Member Avatar for cgalvani

The two classes from the Queueclass5.cpp program are displayed below. Please add another method which will search the Queue for a name which is supplied in its parameter and will return a Boolean value of true if the name is found, or false if not. The method will have the …

Member Avatar for mitrmkar
0
105
Member Avatar for fk5122003

code file is attached .... [CODE][#include<iostream> using namespace std; class citizen{ char* name; char* nationality; public: citizen(){ //default constructor name = "Usman"; nationality = "pakistani"; } citizen(char *aName, char *aNationality) //parameterized constructur { name = new char[strlen(aName, aNationality)+1]; strcpy(name, aName); strcpy(nationality, aNationality); } citizen(const citizen &obj){ //copy constructor name = …

Member Avatar for Ancient Dragon
0
102
Member Avatar for h3llboss

I want to look for letters of a string and then look-up in the alphabet and then write the index number of alphabet array's index . Like; A=0 B=1 etc. c=2 z=25 [CODE]# #include "stdafx.h" # #include "time.h" # #include "stdio.h" # #include "string.h" # #include "stdlib.h" # # #define …

Member Avatar for Ancient Dragon
0
91
Member Avatar for gilanisyed

i have a question that in 2-3-4 tree ,how 4 state tree or 4 node tree is created.mean that how to insert first 3 data till the nodes are split.can anyone tell me please. Thanku so much.

Member Avatar for Salem
0
46
Member Avatar for nola_Coder

I want to implement a countdown timer in a game, but need some help figuring out how to do it properly. I know that this is probably a very regular question that has been asked a thousand times, but I've been trying out some methods I found through searching, but …

Member Avatar for VernonDozier
0
155
Member Avatar for emybob

im trying to create a class that will create a 20x20 grid with 5 random x's and 100 random o's. But its currently giving me ascii chars instead. any help would be appreciated! [CODE]#include "Lifegrid.h" using namespace std; int main() { int r1; int r2; int r3; int oldi; int …

Member Avatar for emybob
0
123
Member Avatar for ganno

I have to implement a simple infinite sum which estimates the value of PI. The more iterations of the infinite sum, the more accurate the value of PI. Using the equation PI=4x(1-1/3+1/5-1/7+1/9-1/11+1/13-....) .The details of the program are as follows: 1. The program must have a small menu for the …

Member Avatar for ganno
0
103
Member Avatar for sgriffin

Hey, right now I am working on implementing a matrix class for an assignment. I am using vectors in order to implement it and am having some trouble with adding matrices together. In my private I have defined: int nRows, nCols; vector<int> data; Here is my code for the operator+; …

Member Avatar for sgriffin
0
107
Member Avatar for gabryprof

[B]Moderator note:[/B] Originally posted in [url]http://www.daniweb.com/forums/thread269720.html[/url] How can I retrieve the handle of a Windows Form texBox? The property textBox->Handle is not the same thing. [QUOTE=strmstn;1167223]Winapi, if there is a window (hwnd) that has a child Edit control with ID 1: [CODE]HWND hwnd_edit = GetDlgItem(hwnd, 1); size_t len = GetWindowTextLength(hwnd_edit); …

0
63
Member Avatar for fk5122003

#include<iostream> using namespace std; class citizen{ char* name; char* nationality; public: citizen(){ name="Usman"; nationality="pakistani"; } citizen(char * aName, char * aNationality) { name = new char[strlen(aName, aNationality)+1]; strcpy(name,aName); strcpy(nationality,aNationality); } citizen(const citizen &obj){ name = obj.name; nationality =obj.nationality; } void showName(){ cout<<name<<endl; } ~citizen() { delete[]name; } }; int main() …

Member Avatar for Banfa
0
110
Member Avatar for PcCopat
Member Avatar for kenny21

You have to write a program which takes 30 integers representing collection of coins. Each integer represents worth of each coin. The program should also take another input “amount” whose change needs to be found. Your program should be finding the change using minimum number of coins. If change is …

Member Avatar for peter_budo
0
161
Member Avatar for ms.aman

i got an error mesg (`undefine symbol _ main in c0.asm`) plz find and correct the error i need it urgently plx help me #include <iostream.h> #include <iomanip.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <fstream.h> #ifndef ADDRESSBOOK_H #define ADDRESSBOOK_H void main() { class AddressBook { protected: int recordID; char …

Member Avatar for Banfa
0
154
Member Avatar for vroommm

the problem is- it is required to store 'big integers'(more than alloted space for integers), suggest a suitable method by which big integers can be stored , also device an algorithm for adding of such numbers.. the just need the method of achieving this.i can write the code in any …

Member Avatar for Banfa
0
76
Member Avatar for Valter Henrique

Hi everyone, i'm new in DaniWeb, so forgive me by some mistake, x) I need create a iterator, it can receive any kind of struct of STL, like map, vector, list, ... How i do that? Someone have any idea? Thanks by your attention. Best regards, Valter Henrique.

Member Avatar for Valter Henrique
0
106

The End.