General C++ Programming - May 2011 (Page 15)

is there any next generation of C++?
 
Just like Groovy as the second generation of Java, which gives more elegant way of coding, is there any next generation of C++ language?
[4 replies] Last: D is an elegant alternative to C++ (it's like C++ cleaned up, with gar... (by kfmfe04)
reading code from user
 
Hi I have written this program which creates a 6 character string that is a counter that is alpha numeric ranging from 0-9 and then goes to A-Z excluding the ch...
[4 replies] Last: thanks guys :-) now my program is at least readable (by anewcreation84)
by Ronen
Sparse Matrix as a Linked-list & Template (4 types)
 
Hi guys , Given the following code , the h. file of my template LinkedList template <class T> class LinkedList { protected: ...
[1 reply] : Are you familiar with variant types? Or you could implement different... (by kbw)
by Saph
Nested classes
 
I'm having trouble with the following: template<typename T> struct Outside { struct Nested {}; Nested* f() {} }; template<typename T> Outside<...
[2 replies] Last: Thank you for the quick answer, that solved the problem. (by Saph)
stringbuf Constructor Poblem
 
I'm learning about stringbuf s, and filebuf s. However, I ran into a problem when defining a stringbuf instance. stringbuf Constructors: explicit...
[2 replies] Last: Thanks, Hamsterman. (by closed account zb0S216C)
Advice needed
 
Hello C++ Forum, I'm really hoping there is someone out there with more C++ experience than me (a total of 3 days now) who can take a few minutes to look ove...
[1 reply] : Use code tags: [co de] Your code This line: file_to_read >> time ... (by coder777)
Evaluating a formular with the imaginary number 'i'
 
Hi C++ coders I am trying to access the Complex <> class from the C++ standard Library and struggling to evaluate a formula which contains the imaginary numb...
[2 replies] Last: Thanks Hamsterdam! I had something similiar but didn't realise g wa... (by Joey004)
Need help making Dice Game "NOOB"
 
I'm a complete noob to programming and im having some difficulty understanding the language. Basically for my c++ class he is having us do an assignment...well...
[4 replies] Last: I always have "$19" every time I roll when it should be decreasing by... (by coder777)
by mgm11
Open USB Boards
 
hi, i'm still new to computer codeing, and we are now programing open usb boards to make leds flash on and off. I was curious to know whether there was anyo...
[2 replies] Last: Thanks, quick looks sugest this will help alot. (by mgm11)
Calculator Tutorial
 
Sorry for the re-post. This is a tutorial on how to make a calculator. Not just a basic calculator, basically a graphing calculator without the graphing functio...
[1 reply] : Will it evaluate expressions like this correctly: 2+5/(7-3)*5-(1.5*3/9... (by buffbill)
by KalebQ
Inheritance/Polymorphism Question
 
I am trying to write a method that loads data from a file. The filename is stored as a data member of a derived class, and I want the loading function to be in ...
[2 replies] Last: Yes, that will work for what I was thinking, and thanks for the advice... (by KalebQ)
OpenGl issues
 
Okay so I'm a starter with OpenGl and downloaded a source file from a tutorial except when I my compiler tries to include <GL/glut.h> it says that it can't open...
[2 replies] Last: Are you on Linux? On my linux box, I know that sometimes GL is lower c... (by cdel)
Who can help me insert into BST node containing a vector.
 
I am trying to extend my BST so that my data is held in a vector, allowing me to use each node as a 'key' and have a set of data that is associated with that 'k...
[6 replies] Last: True ... I should have said that is not easy to get it to work in the... (by Last Resort)
problem with arrays
 
Hello, I am writing a code using 2d and 3d arrays. I am using code::blocks with Windows XP. The first part of the code deals with entering variables and the ...
[4 replies] Last: 1) Ok so when I compile the code using code::blocks on Windows XP, I ... (by sanehatter)
Data in string stream
 
I'm doing a program that work out "Reverse Polish Notation" algorithm. Part of my code is this: while( !queue.empty() ) { token = queue.front(); q...
[1 reply] : The problem relies in the place where "result" is declared. It is mos... (by webJose)
string subscript out of range error
 
// Gregory Wong,6910, Project 3, Math374, 01, Spring 2011 #include <iostream> #include <string> #include "account.h" #include "CheckAccount.h" #includ...
[2 replies] Last: #include"CheckAccount.h" #include<iostream> using namespace std; Ch... (by imgregduh)
Who can join me in a new open source project? (1,2)
 
Hello. As some of you know, Computergeek01 and a few others developed an interest in a project I proposed as a mere exercise: Create a library of classes th...
[30 replies] Last: Hello everyone. I decided to stick with CodePlex. My apologies if th... (by webJose)
Chess game move validation
 
Hi all, I have a chess game that I wrote and was wondering how I would modify it to use the rules of chess. Meaning that right now all it does is check to s...
[6 replies] Last: I believe my old chess game has the rules you're looking for. No en ... (by ultifinitus)
by Shrk
Picket Fence
 
Hello i am required to draw picket fence. At the moment i think i am way off. Each rectangle must not be drawn individually. They must go through a loop. I th...
[3 replies] Last: I'd say let "DarkGDK()" except some arguments for the start points of ... (by Computergeek01)
Help with Tree lists.
 
#include <iostream> #include <stdlib.h> #include <algorithm> #include <fstream> #include "bintree.h" #include "binnode.h" using namespace std; v...
[5 replies] Last: thanx works like a charm :) (by theonealone)
May 2011 Pages: 1... 1314151617... 32
  Archived months: [apr2011] [jun2011]

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