Beginners - June 2011 (Page 20)

by HMW
Prevent CTRL+C (and/or CTRL+Z) in a switch
 
Hello all! I have written a case switch which acts as the ”menu” for a program I wrote. I have fixed all the error handling (well, that I could think of ...
[2 replies] Last: You are right, I don't _need_ it as such. I was mostly curious. Thanks... (by HMW)
ERROR! no constructor could take.....
 
Hi fellow programmers. I'm current using VB C++ 6.0 I don't know what's wrong with my code. I think it's right can you guys please explain to me what this err...
[4 replies] Last: VC++6 is defunct - get rid of it. By the way this would be a sol... (by guestgulkan)
by deapee
If I wanted to create a function that would be used often...
 
OK coming from a vb background ( a long time ago ) -- if I had a set of functions that were useful to a certain program i was making, I could create a file and ...
[7 replies] Last: OK, sounds good. Someone suggested the book C++ PRIMER PLUS -- does a... (by deapee)
Advantages of seperating interface/implementation?
 
Could someone give me a quick rundown as to why separating the interface and implementation is beneficial? So far, me being a total noob, I've just been putting...
[3 replies] Last: As jsmith said, if the actual implementation is separated from the int... (by closed account N85iE3v7)
trying to display a value using a string equation to assign a value to a string
 
#include <iostream> #include <string> using namespace std; int main( ) { cout <<"Hello and welcome to Jake McGhee's calorie counter.\n" "Al...
[2 replies] Last: I get it now. I read the tutorial and go confused as to how strings co... (by jmcghee)
by bbcc
vectors,
 
Hello Prpgrammers, Could any one help me with the meaning of this: std::vector<AIDA::IHitogram1D*> histo; AIDA is a namespace and IHistogram1D is...
[2 replies] Last: bbcc vector is standart template container.....it has this view vecto... (by david91)
by nanger
what is wrong with the codes below?
 
class Peer { int p_id; public: Peer(int id):p_id(id){} int id(){return p_id;} }; struct PeerComparator { bool operator()(const Peer* e1, const...
[1 reply] : In a std::set, the value is also the key. In order to maintain its in... (by moorecm)
by Lamas
VS C++ Variables
 
Hello. I'm trying to receive and present some values. I want to display them in a txt. I've this code: char InputPacketBuffer ; unsigned short DataR...
[3 replies] Last: char OutputPacketBuffer ; OutputPacketBuffer = 0x83; char ... (by Lamas)
by deapee
Suggest a book for me... (1,2)
 
Hey guys, I'm looking for THE BEST book to learn C++ that covers everything from the ground up. About 12 years ago, I was really good at vb and touched on some...
[20 replies] Last: If your migrating from C or another non-OO language, read "The Object ... (by strongdrink)
Quizzer
 
This is my quizzer so far. The problem is that I want a multiple choice answer system. ATM the quizzer converts the sting into a '3d' char array, if their is an...
[2 replies] Last: Please use code tags! (by strongdrink)
Multi .cpp file projects, inline functions and OOP performance
 
Does it make any difference in the compiled result and performance if I split my code in more than one .cpp file inside a project which are connected together b...
[7 replies] Last: Okay, all questions related to the inline functions and the project st... (by NameThatIsNotTaken)
Initialization parameter objects
 
I have wanted to do this in two cases recently: 1) I had classes that could be constructed with varying numbers of initialization parameters such as { { 1,2...
[no replies]
by Owad88
How to ShowMessage with long double value?
 
For example for int: ShowMessage(IntToStr(value)); How to do it for long double?
[1 reply] : Depends on the libraries your using / want to use. stringstream http:... (by coder777)
Larger project step-by-step
 
I was wondering if anyone had any sites that are... a longer style tutorial for a bigger project. There are lots of tutorials teaching you -how- C++ works but ...
[1 reply] : You have to separate bigger task into multiple smaller task. Usually i... (by coder777)
by saume
coordinates refreshing
 
ok, so im still trying some really basic stuff, but before i actually start anything big, i wonder, how many frames per second i should use for a game (like ref...
[2 replies] Last: Generally around 30-60 is what I see. (by firedraco)
Splay Tree C++, Please helping me
 
Hi, I am learning how to build my splay tree with C++. I found some source on line. http://www.cplusplus.happycodings.com/Data-Structures-and-Algorithm-Analys...
[no replies]
io stream
 
I have these two functions that are supposed to read and save a file and then load of the save file. I'm not sure which one is messing up or if they both are or...
[1 reply] : Both functions look ok. (except that line 26 loop will loop record+1 t... (by hamsterman)
by Ernest
Array
 
This is what I am trying to do. Assume an array has values {19, 13, 7, 12, 16}. Show the order of elements in the array after each pass of the selection-sor...
[19 replies] Last: Thanks for all the help...... wish I was as good at this as everyone h... (by Ernest)
Problem with string question
 
I've read the string tutorial on this site and i understand how most thing in c++ works however, the following question is giving me problems. I don't want answ...
[7 replies] Last: Not quite. There are several problems with cin. It can lead to serio... (by ascii)
Wierd thing in my program or did I do something wrong?
 
Hello everyone. I managed to complete my program where it tells you how much of each kind of coin you have in a given amount of money. However, theres a problem...
[6 replies] Last: Ohhh ok. That explains alot! Thanks for getting in there with your deb... (by enlightenMe)
June 2011 Pages: 1... 1819202122... 41
  Archived months: [may2011] [jul2011]

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