132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for AdventureX

We have been given a task to do the following:- Write a class LectureTheatre that has the following attributes (properties): lectureTheatreName / maxOccupancy / layoutStyle (the lecture theatre may be either flat or tiered) For example:- lectureTheatreName : Frankland LT ... or ... Fylde LT2 ... or ... George Fox …

Software Development java
Member Avatar for vee_liang
0
114
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 …

Software Development c++
Member Avatar for Shinedevil
0
149
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 …

Software Development c++ linked-list
Member Avatar for DLightman
0
155
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 …

Software Development c++
Member Avatar for NewtoC++
0
155
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 …

Software Development c++
Member Avatar for cikara21
0
379
Member Avatar for carlcarman

This is part of an ongoing project and up to now i've been able to figure things out. This insallment is: 1. Create an instance array called employees that will hold Employee elements. 2. Modify your loop to create a new element in the employees array for each employee entered …

Software Development java
Member Avatar for carlcarman
0
156
Member Avatar for dseto200

What's the command that allows you to do that. The chapter that i'm reading lists slicing, but I don't see how that helps if you don't have a fixed value of the word. [Code=Python] # Program that gets a message from user and computer prints it out backward. message = …

Software Development python
Member Avatar for dseto200
0
225
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 …

Software Development c++ xml
Member Avatar for Paul.Esson
0
2K
Member Avatar for rastaberry

Greetinmgs, 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- i.e. every …

Software Development perl
Member Avatar for rastaberry
0
105
Member Avatar for rastaberry

Greetings, I would like to make a programm that would generate a long string of numbers or characters in the way that the user firts states how long the so called word should be (let's say 10 000) and will also state the rules for creating the word: i.e. 1 …

Software Development python
Member Avatar for rastaberry
0
88
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' …

Software Development c++ ios
Member Avatar for Lerner
0
256
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] = …

Software Development c++ matrix-multiplication
Member Avatar for ddanbe
0
113
Member Avatar for asmNewbie

I'm writing a program that can lock the keyboard. I patch into ISR 9(the keyboard interrupt) and manipulate the head and tai pointers. It work fine , but there're something I don't understand: -It seems that I cannot use int 21h when patching into an interrupt -When I run my …

Software Development assembly
Member Avatar for jbennet
0
230
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"; …

Software Development c++
Member Avatar for winbatch
0
184
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: …

Software Development c++
Member Avatar for daviddoria
0
488
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 …

Software Development c++
Member Avatar for Lerner
0
191
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 …

Software Development c++ puzzle
Member Avatar for vmanes
0
327
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 …

Software Development c++
Member Avatar for vmanes
0
70
Member Avatar for goldsm

I am writing a program using Python and the PYOpenGL3 library. I am trying to use PY2Exe to create an executable version of my program. However PY2Exe does not support PYOpenGL3. Is there an alternative to PY2Exe I can use? Basically I need a way to create an executable version …

Software Development python
Member Avatar for vegaseat
0
92
Member Avatar for Rhenzy
Member Avatar for karunyabeulah
0
82
Member Avatar for Csipesz

Hello! I need some help to write a method for the follow ineguality p1*x1 + … + pn*xn<=m. I will be glad too, if you can help in the simle method for p1*x1+p2*x2<=m , you could knowing from the Microeconomics. The variebels value need to store in arrays. Thanks.

Software Development c#
Member Avatar for LizR
0
71
Member Avatar for miso66

Hi guys! I am new to java and I have a little problem with ma Java code. My application should read and paint an Image from file. The information about the image are in text format and the image can be composed of rectangles and circles. An example: rectangle { …

Software Development java
Member Avatar for miso66
0
159
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); …

Software Development c++ linked-list
Member Avatar for ArkM
0
125
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 …

Software Development c++ ios
Member Avatar for ArkM
0
154
Member Avatar for nidhi89

please help me in making project of 15-20 pages in C programming on Examination Management system

Software Development c
Member Avatar for ddanbe
0
234
Member Avatar for synxmax

Dear delphi coders i am a newbie to delphi , i am using an free ocx called devalvr for loading panorama images , thats a great activex with powerfull parameters all free now i want to create a multimedia cd with delphi and flash and i want to load panorama …

Software Development delphi flash multimedia pascal
Member Avatar for LizR
0
124
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 …

Software Development c++
Member Avatar for ArkM
0
112
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 = …

Software Development c++
Member Avatar for cam875
0
100
Member Avatar for baby_1

Hello dears I want to take how many KB Datas i recived and sent with our connetion ? for example: when i download 2.5 mb file i recived 2560 KB Could you give me a source code?

Software Development visual-basic
Member Avatar for jbennet
0
94
Member Avatar for emilio

hello is there a way i can read from a table in microsoft exel file into an array or matrix in c# ?

Software Development c#
Member Avatar for emilio
0
125
Member Avatar for MRafeie

Hi The [I]System.Windows.Forms.SendKeys.Send[/I] method does not support sending Left or Right shift key. How can I send these keys in C#? thanks in advance

Software Development
Member Avatar for MRafeie
0
1K
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- …

Software Development c++
Member Avatar for rastaberry
0
143
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 …

Software Development c++ client-server unix
Member Avatar for AcidG3rm5
0
332
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 …

Software Development c++
Member Avatar for JimD C++ Newb
0
202
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:

Software Development c++
Member Avatar for ArkM
0
146
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() { …

Software Development c++
Member Avatar for dougy83
0
137
Member Avatar for akira_shinizaki

How we can make a nice table in C++ ? I always use "|" and "___" to manually create a a table, but it often messed up. Please give me some tutorial and if possible table's screenshot. Thank you as always^^.

Software Development c++
Member Avatar for Agni
0
94
Member Avatar for akira_shinizaki

Hallo everyone, I have some problems with my assignment. I asked to provide some error-handling in my program. What I want to ask abou how we handle an input that isn't its type. For example i define a variable int a but we "accidentally" input a string or other type. …

Software Development c++
Member Avatar for ArkM
0
75
Member Avatar for imput1234

How do I set a fixed number of places. for example I want 1 to be 01. this is what I've been trying, but never works for some reason. Does anyone know how to do this. Thanks. int i = 1; cout << setprecision(2) << 1 ;

Software Development c++
Member Avatar for imput1234
0
68
Member Avatar for Bouzy210

I am trying to write a script where it traverses the current folder and all subfolders and files and prints to screen the name of the files, filesize, and date last modified. e.g. test0.xml | 26 bytes | 11/21/08 23:35:28 (I can get it to do this) Folder/test1.xml | 26 …

Software Development python xml
Member Avatar for Bouzy210
0
119
Member Avatar for sacarias40

[code]Public Class Form1 Private Sub TextBox1_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.MouseHover ToolTip1.SetToolTip(TextBox1, "Cash Flow") End Sub Private Sub TextBox2_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.MouseHover ToolTip1.SetToolTip(TextBox2, "Account Balance") End Sub Private Sub TextBox1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBox1.MouseDown TextBox1.Clear() …

Software Development vb.net
Member Avatar for timothybard
0
119
Member Avatar for akira_shinizaki

How we can limit input data ? For example we only want the user to input 4 characters, user only can write up to 4 characters. Thank you fot your help.

Software Development c++
Member Avatar for Lerner
0
265
Member Avatar for mohit12

i am complete novice at image processing please i have a problem plz can any one of u can provide me with a simple c or c++ code for the problem ...............with comments i have a floor plan of a building here is the link [url]http://www.plantechdesign.com/planimages/PBM040.jpg[/url] our software can divide …

Software Development c image
Member Avatar for Paul.Esson
0
157
Member Avatar for mr_scooby

Hi Guys, I am trying to make a console based ATM Machine simulator, I have removed all the code that was not relevant to this challenge I am having. What I am trying to do in display the balance which I can do, opening balance is 94.37, then I need …

Software Development
Member Avatar for mr_scooby
0
173
Member Avatar for OhItsThatGuy

Hey guys im new to C++ so if this is an dumb question all apologies. Whats going on is i am comparing a user entered major with one from a structure of information on students (name,hours,gpa,etc..). for this im trying to pull out majors in example say someone was a …

Software Development c++
Member Avatar for ArkM
0
266
Member Avatar for scotchfx

The following test code compiles and executes correctly: [code=c++] class RegExpTest : public Framework { template <class T> int reParseNumbers( std::string, std::set<T>&, double=-1 ) throw(Exception ); } template <class T> int RegExpTest::reParseNumbers( std::string s, std::set<T> & numSet, double set_size_limit ) throw( Exception ) { // do some regular expression stuff …

Software Development c++
Member Avatar for StuXYZ
0
186
Member Avatar for DLightman

I am gettin this compile error and for the life of me cannot figure it out: [CODE] BinarySearchTree.h:22: error: type âintâ is not a direct base of âBinarySearchTree<int, int, std::less<int> >::BinaryNodeâ [/CODE] This is the header file file the error refers: [CODE=cplusplus] #ifndef BINARY_SEARCH_TREE_H #define BINARY_SEARCH_TREE_H #include <cstdlib> #include <functional> …

Software Development c++
Member Avatar for DLightman
0
125
Member Avatar for alex5161

Could someone help me understand what is going to be returned in following piese of code and why (the processing logic) (I have no way to compile it by myself now....) [CODE=C++]struct A { int value; virtual int access() { return this->value; } }; struct B { int value; virtual …

Software Development c++
Member Avatar for ArkM
0
123
Member Avatar for localp

i am reading a url and inthat i have an array that has stored the value of a string as follows [code] address=no+3%2C+oxford+street in this wat i want is to display the address as "no 3 oxford street" [/code] some one please give me the code to write this as …

Software Development perl
Member Avatar for KevinADC
0
90
Member Avatar for NinjaLink

Hey, I am trying to create the sum of my values contained in MyArray variable simultaneously while assigning the values in the same loop. Afterwards, I want to find the average of the numbers after the loop finishes. Problem: When I compute the numbers, I keep getting the same sum …

Software Development vb.net
Member Avatar for timothybard
0
102

The End.