General C++ Programming - October 2010 (Page 4)

Validate user input is an integer
 
I am having some problems checking whether or not the user has entered an integer. Here is my code. ...
[1 reply] : http://www.cplusplus.com/forum/articles/6046/ (by Bazzy)
boost string format question
 
I I need to format a string so that it is only a certain amount of characters long. I have a func...
[3 replies] Last: Of what use would boost::format be if it truncated? Would you want it... (by jsmith)
Header file does not accept set
 
Hello all!! I have my header.h file where I have this function declared: extern std::set<Sense>...
[6 replies] Last: My files are having .c extension Well there's your problem. se... (by Disch)
Why this fail to compile
 
Hi all: i read the seekg reference http://www.cplusplus.com/reference/iostream/istream/seekg/ whi...
[4 replies] Last: @kbw ,yes,i already have a workable version using the seekg function, ... (by sysabod)
Class Name Creating Problem.
 
Hello everyone, I need to know how to make an instance of a class with a different name each time th...
[3 replies] Last: After doing some research I think this is a good way for it to be done... (by ajputnam)
by Null
Multiple inheritance problem
 
Hello, I have this code: class A { public: void a_function(){}; }; class B : public...
[4 replies] Last: I need this for my SFML game. I have something like this: class Ga... (by Null)
add to subtraction
 
a~~
[8 replies] Last: I gave it to you. Let A and B be two integers held as arrays of dig... (by jsmith)
How about RTTI with pure interface and different dll?
 
If I have a pure interface class in a header file, and two function in different dll use type_id to ...
[2 replies] Last: Don't even use type_id beyond the module in which the type is declared... (by jsmith)
by garob
problems with templates - undefined reference
 
When I compile and link the code for my interpreter's parser, the gcc compiler that came with codebl...
[2 replies] Last: Your contains function is the exact same thing as iterator std::vec... (by jsmith)
scope of the object
 
Hello All, I have question on scope of the object. Here is the code. #include<vector> #in...
[3 replies] Last: @ Galik: not if the vector is of B&'s, which is the case here. I'm... (by Disch)
Need assistance finishing homework, almost done!
 
The homework problem I am working on ask me to grade a multiple choice exam. There are 20 multiple c...
[9 replies] Last: 1234567 20 abcdefabcdefabcdefab 9876... (by Aeon221)
msdn sample
 
i am trying to run some example code on msdn and i have an error, some one tell me what it means... ...
[5 replies] Last: so i got this to works after some time. now i was wondering why this d... (by kyle11778)
by suds
getline
 
what does (cin.getline) actually do?
[3 replies] Last: http://www.cplusplus.com/doc/tutorial/operators/ http://www.cplusplus... (by Bazzy)
Issues initializing common controls
 
I'm trying to make a toolbar with the winAPI, but I keep getting this weird error message: error...
[5 replies] Last: It finally compiled! Thanks! (by PiMaster)
by tzan
Linker Error
 
I make a program that has include files(path for include files is right) but keep getting the follow...
[1 reply] : you never gave your multiplication/average/operation functions any bod... (by Disch)
by cygh
riemann sums in c++
 
void float_Exp (int maxiter) { float sections = 6.0/maxiter, total=0.0, maxitercopy=maxiter; whi...
[11 replies] Last: Umm, when you do Riemanian sums, don't you have to multiply by the si... (by tition)
by tzan
Function & pointers
 
Hi guys! I have the following programm and i want to apply pointers to functions. // functio...
[1 reply] : http://www.cplusplus.com/doc/tutorial/pointers/ Scroll down to Point... (by Bazzy)
Prob with vector of struct pointers!
 
Hello, I am kind of stuck in a simple problem with vector of struct. I have used this many times ...
[10 replies] Last: in test.h make these changes. #include <vector> using namespace st... (by rahulroot)
c++ encryption/decryption function troubles
 
For my program I am supposed to implement an encryption and decryption algorithm. I then have to pri...
[1 reply] : First, can you format your code using the code tags please. Code is i... (by kbw)
Simulator Program
 
Hi there, can any body link me to a nice simulation program written in c/c++ that isn't too huge? It...
[5 replies] Last: Thanks so much Pax for taking the time. I think that program is a litt... (by Tomau000)
October 2010 Pages: 123456... 23
  Archived months: [sep2010] [nov2010]

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