General C++ Programming - December 2008 (Page 5)

by muswei
auto_ptr with Abstract Factory
 
I am trying to create abstract factory function to create smart pointers of different derived classes that have the same base class. One of the derived classes ...
[1 reply] : You cannot access the functions of derived classes through the base cl... (by exception)
making this function.
 
Minimum number of coins with 3 currencies algorithm In the following u is the amount, (p, z1, z2) is the combination of currencies being consid- ered which in...
[1 reply] : void fo08ssg1_get_mixed(double u, double r1, double r2, int m_gb , ... (by Scipio)
by Ilya81
Linking error LNK2005 with * __cdecl
 
I'm writing a program of array processing, but I've got a linking error and can't compile it. The message is error LNK2005: "void * __cdecl operator new(unsig...
[3 replies] Last: What compiler are you using? What are your compiler/linker flags? (by kbw)
by joksy
Object Assignment
 
Hi EveryOne I m new in this forum and I start to do something in c++ last year at school, now i have a question for you guys becuase i m not able to understand ...
[5 replies] Last: Ok, let me put it this way. When you compile a program, the compiler ... (by satm2008)
Yes, function questions
 
void tableinsert(string DN, string IP, string DNarray , string IParray , int size) //function that places the data into a table { DNindex = searchTable(D...
[6 replies] Last: if you guys wouldn't mind helping me again, it would be much appreciat... (by cplusplusnoob)
Read file with specifications (SOLVED)-thanks Bazzy
 
I am trying to read a text file that looks something like this: 0 5 9 0 4 15 1 3 5 2 15 4 11 3 2 15 15 16 end99 The total number of integers before ...
[6 replies] Last: (by modulo51)
by Bazzy
Getting indefinite value «SOLVED»✓
 
I'm working on a program computing some "strange" calculations using double s. If I divide a number by 0, I get 1.#INF which is the same value as numeric_l...
[12 replies] Last: Yes, that is working too. Thanks again! (by Bazzy)
Flash Drive Tracker?
 
Could I get some recommendations for how to send an email to myself containing the IP of the current computer when the program is executed. I've had several of ...
[2 replies] Last: I can use the IP to find more information. I'm going to use a hacked v... (by brentc628)
Card Shuffler
 
For my programming class we are supposed to make a program, that so far all it has to do is first display an array of cards, and then display the array of cards...
[10 replies] Last: Alright so I made a new function called deal, and I figured out (which... (by epiqu1n)
templates
 
I tryed to make a stack class to test working with templates. It has no compile errors but in the test program(compiled with GNU under the Eclipse IDE) it gives...
[7 replies] Last: The original problem was that normally template functions/classes are ... (by jsmith)
[SOLVED] Movement on a map in a console program
 
Hey guys, I'm wondering what header file I would need to use for in a console if: I had a map of characters in a 2d array etc. That displayed char map ; ...
[12 replies] Last: Alright I see what your saying now and I agree with you - I'm just goi... (by Mythios)
My style of breaking up a project into files
 
Ok the point of this post is how I break my files up when i program. If anyone thinks there is a way to improve it or if someone wants to list how they do it. ...
[3 replies] Last: Only declare in a header things that will be needed in more than one f... (by helios)
by ja23jr
Which is faster: using namespace std, using std::, or std::
 
Hello everyone. I wonder about which method is actually faster than the rest. For small programs (maybe I'm wrong), I thought 'using namespace std;' wou...
[10 replies] Last: I personally don't like using it as every tutor I've had hates people ... (by Mythios)
Programming with C++
 
Hello everyone, I have begun learning C++ (version 5.02) at my college and I am trying to do a few exercises to have a better understanding of it. The one...
[7 replies] Last: Right, it works now, cheers. (by BlackSwan)
by drgolf
c++ array of class - copy between array elements
 
I'm lost --> hope someone can help me. I have an array of class PT like this: PT *classarray; classarray = new PT ; where class PT is: class PT { ...
[3 replies] Last: Generally if you need to write a non-default assignment operator, then... (by jsmith)
a namespace/header file question?
 
Hi I have: Version 1 #include <iostream> using namespace std; int main(){ cout << "Hello World!" << endl; } Version 2 #include <iostream> int ma...
[5 replies] Last: You were right about the strip ... $ g++ -Wall v2.cpp -o final $ ... (by graciano)
by ArashE
Final Assignment.. C++ class
 
Hey i need help with the final assignment of my Microsoft Visual C++ class and its a hard one its an online address book where it keeps a bunch of information s...
[15 replies] Last: 10) print to a file all entries of the address book in a tabular form... (by Return 0)
which compilers are the best noob question
 
hi which compilers are the best I've currently got Dev C++ I know that there is more than just this one like C++ builder but I'm not sure of the differen...
[4 replies] Last: GCC (GNU C Compiler [I am aware of the new meaning]), a port of which ... (by helios)
reading a file then storing the integers in a 3D array
 
Can anyone help me with this... I have a programing assignment in C++. The job is to read an external file---let's say "jobs.in" and store in an array. This ex...
[4 replies] Last: yes, i agree with faldrax, create 3 arrays, copy the first line to a 4... (by lightlord)
by Achad
Copying the started file to any location
 
Hello , I wana know how to add my program in Start Menu >>All Programs>>Startup folder.But automaticly when i start the program they exe file automaticly go to ...
[no replies]
December 2008 Pages: 1... 34567... 10
  Archived months: [nov2008] [jan2009]

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