General C++ Programming - April 2012 (Page 2)

interpreter
 
hellow!! can someone please write an interpreter for me in c++? Write an interpreter in C++ programming language that implements the Wombat 1 computer program...
[5 replies] Last: python was written using c.. And i bet it can implement any computer p... (by Pravesh Koirala)
PhoneBook Management System
 
Hi! I am working into the development of a C++ related Phone Management System where the request is to: 1. Input information of new subscriber: The progra...
[no replies]
Create an animated, interactive program, which uses files and has some ‘intelligence’ somewhere
 
I have a coursework which involves implementing the classes and functions that are necessary to produce an animated interactive program.(basically a game) C...
[7 replies] Last: we need to use SDL c++....now they have given us a few framework bases... (by kaksmangi)
inserting into a list
 
I have an array of pointers which are of type list defined in the following way: list<string> * table; How can I insert a string into an element of tabl...
[6 replies] Last: thanks for the help! (by hopesfall)
by viliml
linked list problem
 
Hi, I am trying to make my own double-linked list class, and make it compatible with al the STL algorithms, but I get an error when I run it(it compiles fine). ...
[16 replies] Last: I wouldn't use your approach. An iterator will have a pointer to the '... (by ne555)
comparing chars
 
does anyone know why this code wont work? the pass word is 'mama' and it is not case sensitive, its purpose is to say invalid as soon as one wrong character is ...
[6 replies] Last: If you are familiar with C-style strings: const char password = "MA... (by JLBorges)
line crashes
 
I am trying read a text file and get each word into a node in a binary search tree, however, it crashes halfway through the file and I can't figure out why. Is...
[4 replies] Last: Line 22, you read in a line from the file. You never use it, so if yo... (by cire)
Using non inherited operators
 
im having a slight brain fart here on how to call an overloaded operator from an inherited class. Basically what im trying to do is use my overloaded assignment...
[3 replies] Last: well i figured out why i was getting errors i just needed to slow down... (by patchesOhulihan)
by BobSin
I need help with two C++ questions.
 
I need help with a C++ Question? 1. In each of the following cases, the input data can be read from input data file(s). Although the initial input data may b...
[1 reply] : tell me, what've you come up with for this problem? (by Pravesh Koirala)
by Bula
Printing two columns
 
Hello guys. So the first part of the question asks to construct a function that converts miles to kilometers which I did. But the second part asks to split t...
[3 replies] Last: One thing you might do: When they give you a hint, define things in t... (by cire)
Polleo-Dev programming team-- now accepting recuits
 
Polleo-Dev (anytime you see '*#' [# = a number] follow it to the bottom and i will explain more) Polleo-Dev is a programming team that uses intermedia...
[no replies]
by tw3tye
Static class obj
 
Hello. Problem with static class object. class Main { public: static Main Maincontrol; bool Running; "and i set Running = true in ...
[5 replies] Last: i got 24 file code... ^^ i got pre one bifore i made the Event class..... (by tw3tye)
by siloan
Vector reindex
 
Hi there, i have a stl vector and after deleting a element from it(for example 2) with erase the index remain 0 1 3 4 5, php has a function for this - array_val...
[1 reply] : http://en.wikipedia.org/wiki/Erase-remove_idiom (by kbw)
Producer/Consumer Shared File
 
Hi all, I have been working on this little introductory project to the Producer/Consumer threading concept. For this project, I was required to share a commo...
[1 reply] : Here is my code (has a system("pause") call at the end of main): /* ... (by KrisPell)
Turtle Graphics
 
okay, I have a turtle graphics program that works just fine.My program takes the users input and uses that for directions for the turtle to draw. I want to make...
[no replies]
Zakat Project Visual Studio 2010 c++
 
Iwont help to write this program in Visual Studio 2010 c++ can any one help me please ( Write C++ program that calculate Zakat for 1. Money 2. Fruits ...
[1 reply] : What do you know in C++? we're not gonna do your homework. Show us you... (by TheDestroyer)
Problem adding doubles
 
Hi, I have the following array which is adding the numbers entered by the user the issue I'm having is that it only works if the user enter whole numbers, but ...
[2 replies] Last: Shame on me I should know that, Thanks a lot for your help! (by fstigre)
Problem adding words to a stack
 
So far i have #include<iostream> #include<cstdlib> #include<fstream> #include<math.h> using namespace std; void display...
[6 replies] Last: #include <iostream> #include <cstdlib> #include <fstream> #include <m... (by viliml)
binary search tree delete problem
 
I copied this code out of the book for deleting a node and it doesn't seem to work. The only part that works is when the node to be deleted has 2 children. Doe...
[1 reply] : If you think you know where the problem is, then try to fix it that w... (by viliml)
Bisection method. Vector<> global variable? function pointers?
 
I have this simple code, it should search for a root of function f with the bisection method: #include <iostream> #include <vector> #include <cstdlib> #incl...
[3 replies] Last: :D (by viliml)
April 2012 Pages: 1234... 49
  Archived months: [mar2012] [may2012]

This is an archived page. To post a new message, go to the current page.