49,755 Topics

Member Avatar for
Member Avatar for nabilchampion

Hi all, I havnt explored BOOST yet. But I heard that it has support for almost every OS. I need to ask the experienced developers here that whether BOOST C++ library has support for IBM AIX, IBM MVS and OpenVMS. plz do reply as ur reply is always helpful to …

0
74
Member Avatar for sting23

i have a few days to design a system(payroll) using C++. does anyone have the source code thank you

Member Avatar for ithelp
-1
135
Member Avatar for Se7Olutionyg

[CODE]// file: hangman.cpp // name: Kyle Burmark // professor: M. Gelotte // date: 2/26/02 // Description: This is a computer version of the game hangman, the user // can play against a 2nd player or the computer, and he can enter how many // guesses he gets, // // Start …

Member Avatar for cikara21
0
390
Member Avatar for sting23

#include<fstream.h> #include<iomanip.h> #include<conio.h> #include<iostream.h> #include<stdlib.h> #include<string.h> #include<time.h> #include<iomanip.h> //-----------------------------------------------------------------\par \par \par class inventory\par \{\par \tab char name[25];\par \tab int code,copy;\par \tab float cost;\par \tab char stock[3];\par \tab char datestr[9];\par \tab char timestr[9];\par \par \tab public:\par \tab\tab void rdata(void);\par \tab\tab void wdata(void);\par \tab\tab void menu(void);\par \tab\tab void display(void);\par \tab\tab void mainpage(void);\par …

Member Avatar for mrboolf
0
138
Member Avatar for MacBarnes

I have used a binary search tree to read in a text file, storing each word as a node, and counting how many times that word is repeated in the text file. I have been able to successfully [I]cout[/I] that information, but for some reason have been unable to read …

Member Avatar for cikara21
0
116
Member Avatar for inssanity21

hello, i have been writing a program to sort names from one file and numbers from another file. i have the files being read in. each contains 1500 names or numbers. i have to sort the names alphabetically and the numbers have to move with the name it corresponds to. …

Member Avatar for vmanes
0
92
Member Avatar for cam875

i wrote some code which only works with objects with a heading of 0 degrees right now because its not finished but when i run it it never seems to catch the collision and break the loop. I need some help, thanks in advance. [code=cplusplus] #include <iostream> #include <math.h> using …

Member Avatar for VernonDozier
0
93
Member Avatar for Se7Olutionyg

void EnterWord() { char solution[20]; //holds solution char blank[20]; //holds "*"'s for unsolved letters int Subscript=0; int State=1; char Guess[20]; char Copy [20]; char Letter; int Correct =0 ; // input the string and getline it cout<<"Enter phrase 20 chars or less."<<endl; cin.getline(solution, 20); int Word; // this will hold …

Member Avatar for vmanes
0
335
Member Avatar for dtaylor01

I'm having a hard time with my code, can someone show me a fix? Here is my errors. 1>c:\documents and settings\chuckie taylor\my documents\c++ assignments\assignment 6\assignment 6.cpp\assignment 6.cpp\assignment 6.cpp.cpp(57) : error C2064: term does not evaluate to a function taking 2 arguments 1>c:\documents and settings\chuckie taylor\my documents\c++ assignments\assignment 6\assignment 6.cpp\assignment 6.cpp\assignment …

Member Avatar for vmanes
0
105
Member Avatar for Shinedevil

Hey, I'm new to this forum. I'm having trouble making a mapping/navigation type program. Kind of like one where you type in "N" and you go north. But more complex, scince i'm creating an rpg. (In command prompt console) I need to have the map visible. I would need to …

Member Avatar for Shinedevil
0
109
Member Avatar for DLightman

I am receiving the following compile errors: [CODE] BinarySearchTree.cpp:3: error: expected constructor, destructor, or type conversion before â<â token BinarySearchTree.cpp:9: error: expected initializer before â<â token BinarySearchTree.cpp:15: error: expected initializer before â<â token BinarySearchTree.cpp:21: error: expected initializer before â<â token [/CODE] Looking at my implementation, I fail to see the …

Member Avatar for DLightman
0
152
Member Avatar for NewtoC++

Hey i am new to this forum. I am also new to C++. I really need help with this program because i cant get it to work! Since its my first time posting, if I am posting in the wrong way please tell me. My program holds phone numbers. uhm …

Member Avatar for NewtoC++
0
153
Member Avatar for Se7Olutionyg

[CODE]#include <iostream> #include <fstream> #include <string> #include <cctype> using namespace std; #define MAX_WORD_SIZE 15 // The maximum size of word #define MAX_WORDS 255 // the max number of words void EnterWord(); void LoadFile(); void ChooseWord(); void RunGame(); void instruction(); void DrawGallows(int State); typedef char String [MAX_WORD_SIZE]; // a char type …

Member Avatar for cikara21
0
376
Member Avatar for fedderico10

Hey people, i am having the next easy problem but i dont find any answer on how to do that: Im using libxml2 to read a XML file, in one part of my code i need to compare two attributes from different nodes which are numbers (1,2,3,4,5,6...). The problem is …

Member Avatar for Paul.Esson
0
2K
Member Avatar for drjay1627

Can some one help me with this error: =========================================error================================ In file included from /usr/include/sys/signal.h:34, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/pthread.h:22, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/sparc-sun-solaris2.6/bits/gthr-default.h:37, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/sparc-sun-solaris2.6/bits/gthr.h:98, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/sparc-sun-solaris2.6/bits/c++io.h:37, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/bits/fpos.h:44, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/iosfwd:46, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/ios:44, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/ostream:45, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/iostream:45, from main.cpp:1: /usr/include/sys/siginfo.h:259: 'ctid_t' is used as a type, but is not defined as a type. /usr/include/sys/siginfo.h:260: 'zoneid_t' …

Member Avatar for Lerner
0
244
Member Avatar for haven_u

can someone help mi out with how to write a simple(2X2) matrix....I need help only with the loop used..... I got a wrong answer with what i got below [code=cplusplus] const int Row = 2; const int Col = 2; int main() { int MatrixA[Row][Col] = {1,2,3,2}; int MatrixB[Row][Col] = …

Member Avatar for ddanbe
0
112
Member Avatar for winbatch

Consider this working code: [icode] #include <iostream> using namespace std; class Base { public: void print(string val) { cout<<val<<endl; } virtual void print(int val) { char temp[1000]; sprintf( temp, "%d", val ); string tempstring = temp; print ( tempstring ); } }; int main() { Base a; string whatever= "BLAH"; …

Member Avatar for winbatch
0
178
Member Avatar for daviddoria

I would like to make a list of colors with an associated color index ie 1, [1 0 0] 2, [0 1 0] 3, [.4 .4 .4] etc So I could make a map map <int, double*> ColorMap; Then I could look up the color by its index like this: …

Member Avatar for daviddoria
0
438
Member Avatar for dtaylor01

Can someone take a look at my code, I'm having errors with the end loop. [CODE]#include "stdafx.h" #include <iostream> using namespace std; int area (int, int); // function prototype int volume (int, int, int); // function prototype int _tmain(int argc, _TCHAR* argv[]) { int length, width, depth; // parameters for …

Member Avatar for Lerner
0
188
Member Avatar for Se7Olutionyg

[CODE]#include <iostream> using namespace std; #include <string> #include <cctype> void DrawGallows(int ); int main() { char solution[20]; //holds solution char blank[20]; //holds "*"'s for unsolved letters int counter = 0; //general-use counter int right = 0; //1 = right guess, 0 = wrong guess. char guess; cout<<"Enter phrase 20 chars …

Member Avatar for vmanes
0
324
Member Avatar for M^2

helooo am new to C++ hope i will find some help here :) well the question is if the i ask the user to input an integer like int a; cin>>a; and if user inputs 2345 and the output i require is 2 3 4 5 how will i do …

Member Avatar for vmanes
0
66
Member Avatar for solimanmuttawa

i am done with the main of the program but i have difficulty with several functions that need help if u please help me thank u very much #include <iostream> #include <string> using namespace std; void Output(struct Employee *data_ptr); void Input(struct Employee *data_ptr);void AddElement_Front(struct Employee E); void AddElement_End(struct Employee E); …

Member Avatar for ArkM
0
115
Member Avatar for rumencho

Hi all. I want to learn how to manipulate .txt files through C++ program. I want to be able to search trough chars in .txt file,sort them etc. I think the best way for this,should be,loading .txt file in char array and then manipulating the elements. but I don't know …

Member Avatar for ArkM
0
151
Member Avatar for bonnie1702

Hi all, I have a double link list program that compiles ok, and when I run it, I get a message box saying that windows needs to stop the program. Here is the code: [CODE] #include <iostream> #include <conio.h> using namespace std; class linklist { private: struct dnode { dnode …

Member Avatar for ArkM
0
107
Member Avatar for cam875

I am having a problem with the results that I am getting when I run my program, according to the math i wrote in the program when I enter these results object's x co-ord = 0 object's y cor-ord = 0 object's heading = 45 degrees object's distance travelled = …

Member Avatar for cam875
0
89
Member Avatar for rastaberry

Greetings to everybody, I am a programming greenhorn and I would like to make a programm which will generate a number in the way that first the user will say how many digits the number should have (i.e. 10 000) and will also specify the rules for creating the number- …

Member Avatar for rastaberry
0
137
Member Avatar for AcidG3rm5

I am developing an interactive client and server system which can response to a typical Human's Interaction. This program is run in unix enviornment. There's a Q&A text file stored, in this format. [Question];[Reply] How old are you?;I Am 1 year old. basically the delimiter is a ';'. Is there …

Member Avatar for AcidG3rm5
0
246
Member Avatar for JimD C++ Newb

First off, thank you for taking the time to read this. Here is my question: I am reading data in from a file that contains names for items that I will be placing onto a heap for use in a program. The program gives me all of the desired data …

Member Avatar for JimD C++ Newb
0
201
Member Avatar for koushal.vv

Hi , can any one tell me how to generate an unique number ? this can be done in C# with great ease. But i wonder how to generate tat in c++:ooh:

Member Avatar for ArkM
0
135
Member Avatar for vladdy191

I'm looking at this code and I'm not sure what it prints (I don't have a C++ compiler to run it). However, I also would like to understand why it prints what it does? hope someone can help, here's the code: [CODE] class A { public: virtual void p() { …

Member Avatar for dougy83
0
132

The End.