General C++ Programming - April 2009 (Page 10)

programming book
 
I am working on programming problems, that would help improve algorithms and data structure. I know of one such book - Programming Pearls by Job Bentley. Is the...
[3 replies] Last: Thanks writetonsharma and Seraphimsan. (by n4nature)
Funcional decomposition
 
Hello everyone I`m a begineer in c++, and i would like to improve my program (currenlty it works), i need to split it. I have one entire program called main....
[1 reply] : so if you have something like this: //main.c #include <something>... (by Bazzy)
keyword overloading
 
can i overload keywords in c++ to make them perform different operations than the regular ones that they perform like class ABC { //some code }; ...
[4 replies] Last: yeah it works out great thanks,man this thing has great capabilities (by kaidranzer)
how to design this class structure
 
I already have a class structure which is A | B / \ C D / \...
[1 reply] : Derived classes will retain the same functions, but you can add functi... (by Gumbercules)
How to display prime #'s using function calls
 
hey guys, im a total noobie at this. started class maybe 1 month ago and am really confused on how to make this program that was asked during class. Thank you ...
[2 replies] Last: Deimos Thanks for the help. I wasn't expecting a full written prog... (by noob111)
STL <list>
 
My work is using STL <list> to implement a "linked list of linked list. For example a linked list of messages. Each message class will contain a linked list of ...
[6 replies] Last: sounds like something that is due on the 24/04/2009... (by class31251)
a basic single layer learning perceptron
 
As the title says I'm trying to program the forementioned. The Perceptron runs flawlessly, its the learning part that I'm having trouble with Here is the c...
[2 replies] Last: wow....I dont think I've ever failed so hard XD *facepalms* Thank... (by Seraphimsan)
by tjinx
Website maker
 
What I'm supposed to do is to write a "photo album" program which will take a list of pictures and generate HTML files to display them. I can display an imag...
[no replies]
Array error.
 
Hi all, when i compile the code, it indicated error. can anyone help me me? i have no idea what when wrong with it. protected: string Items = {"aa",...
[4 replies] Last: thanks, it works. but may i know what do we need to have it at constru... (by littleimps)
comparar files
 
Compare files #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv ) { FILE *fp1, *fp2; char ch1, ch2, same; unsigned long l; ...
[no replies]
Case Sensitive Partial Match with Boost's Regex
 
Dear all, From the following code, I expect to get this output from the corresponding input: Input: FOO Output: Match Input: FOOBAR O...
[1 reply] : use regex_search() instead. (by jsmith)
Append?
 
For some reason, append won't work on the strings... class Protection{ public: char* name; string* filter; int version; ProtectionType ptype; ...
[4 replies] Last: Great, thank you! I'll use the vector-it suits my needs better. (by demosthenes2k8)
Accessing data of including class
 
Ok, so here's my basic situation: I'm writing a game, and I have one class, Game, that stores the majority of the game data. This includes a vector of another c...
[12 replies] Last: #include <iostream> #include <string> #include <sstream> #inclu... (by hkboy)
write an array integer to file
 
Hi everybody, I want to write an array integer in a file. I have this piece of code int var ={0,2,0,3,0,4,0}; int i; ofstream outfile("test.txt", ios...
[2 replies] Last: Thank you very much! (by radeberger)
What is wrong with these functions?????
 
I am a beginner programmer. I started using Xcode for mac instead of Dev C++ like I always do because I was bored and I made this program. The problem is that w...
[2 replies] Last: Your problem is that your if statements are using a single equals sign... (by GenTiradentes)
Artificial Neural Networks
 
Forgive me if this type of topic is deemed 'uncouth' But does any one know a good place to learn how to program an 'ANN'. specifically a perceptron. I've dec...
[no replies]
by paul23
Gamemaker, Assembler & C++
 
This might be very specific. So I don't really "expect" some direct answers here, but any help (as long as it's correct) is helpful.. I used to program in Ga...
[3 replies] Last: Because of lines 3 and 8. (by jsmith)
by mietas
how you get paid? What do you think of "pay by lines of code" concept?
 
Hi! Im sort of new in the whole c++ world, so im curious: How you get paid? Do you get paid by lines of code / hours / or what? Are you freelancer, or regula...
[7 replies] Last: I'd be willing to bet that said company would at best develop an incom... (by jsmith)
CODE works in DEV but not in VISUAL STUDIO..need coding advice
 
Please help me figure out what code changes i need to apply!! I need this done asap so please help! #include <iostream> #include <fstream> using names...
[7 replies] Last: in while (searchname!=List .lastName); you are comparing a string wi... (by Bazzy)
atoi trouble
 
For my programming class I'm trying to create a number guessing game and I need to use atoi() so that if the user enters a character string, it yields an error ...
[1 reply] : atoi() has no means by which to report an error to the caller reliably... (by jsmith)
April 2009 Pages: 1... 89101112... 20
  Archived months: [mar2009] [may2009]

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