Beginners - February 2010 (Page 17)

by cppbeg
DEBUGIN
 
sccsc
[13 replies] Last: I don't even understand that sentence but I think you misinterpreted m... (by tummychow)
by enrui
Changing data in a class member.
 
I've defined a class called cars and it has a member called potential. Now all of the class definition is correct and I define it this way in main. m...
[6 replies] Last: Works perfect, thanks for your help. (by enrui)
by Nikoru
Question: Involving Classes
 
I really hate to be bothersome with questions, but you guys really seem like nice and helpful people. :) I plan on making a base player class. That class will h...
[5 replies] Last: Usually your compiler needs to be able to find the header in a predefi... (by tummychow)
by xyzt
forward decl
 
I want to write a simple program to demonstrate a factory method but it failed to compile. I couldn't figure out why didn't it compile... here is the compile e...
[3 replies] Last: From a design perspective, however, super-classes should not know abou... (by PanGalactic)
by php13
understanding 2 functions.
 
hi guys , i got some problem with understanding 2 functions in C/C++ source. i'm php programmer and i'm not so good with C/C++ codes . i just know some basic o...
[3 replies] Last: It looks like you have two things here: 1) a stream of bytes 2) ... (by Disch)
by Nikoru
C++ for games? (1,2)
 
Hi there, I am very new to scripting and I am wanting to make a game. (Yes, I know you have all heard this before..heh) For the game I am wanting to make I have...
[23 replies] Last: [quote=blackcoder41]anyway, i believe there are AI libraries to help y... (by Mythios)
Midi chords and playing more than one midi note at once
 
hi i am a complete novice at c++ and was wondering if you could help me. You see what i am trying to do is play a chord of 3 notes (midi note: 56, 63 and 68), i...
[no replies]
psuedocode problems
 
I have been pondering on this assignment for 4 days now and still have not figured out the best way around doing it, I've thought of a few useless ideas that wi...
[no replies]
by ZefQ
send pointer to function
 
So I'm trying to learn c++ but i cant really get a grip on pointers and reference. anyway I'm trying to write a function that removes spaces from an char array...
[13 replies] Last: in which case it shows or acts as though the string is now 500mb long... (by ZefQ)
multiple initialization error
 
Hi, I have an error C2374: 'sizeTotal' : redefinition; multiple initialization. Could you help me figure out how to fix this error or where to start looking? I...
[2 replies] Last: thank you so much, I just got rid of line 5 and it worked. (by foobarbaz)
by cbbttt
bank application
 
hey, im trying to impress my C++ instructor by making my simple bank application have a working memory from file that stores the account total for future use. I...
[2 replies] Last: What I do to practice fstream capabilities is create both text files, ... (by yoked88)
solving pi using series
 
Im trying to solve this pi using the Leibnitz formula,the input of the program will be the number of terms in the series that user want to sum up and the output...
[2 replies] Last: Oh thank you so much! I got it working now. (by ssushchy)
how to make a vector function?
 
how do i create a function with return type vector? anyone know the format? thanks
[4 replies] Last: i thought for a normal vector declaration the thing inside the parenth... (by jinjin12)
Limit to Array Size?
 
So I'm doing a homework problem. We can code our solutions in Java or C++ (or both for extra credit). Our task for this project is to create a program that co...
[5 replies] Last: I don't know much about std::deque (this is my 2nd program in C++ ever... (by Grashopper)
Default Constructor issue
 
I have to make a time class where the default constructor is the time(0) function. My code for the default constructor is: Time::Time() { time = time(0);...
[2 replies] Last: It did. Thanks!!!! (by BradyT88)
by dan0
Networking and the Boost Library
 
I'm comfortable with the basics of C++ and I'm looking to delve into networking with C++ using the boost library. Unfortunately, however, I haven't been able to...
[1 reply] : http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio.html (by Bazzy)
loss of precision in double multiplication
 
Hello, I am trying to multiply two double-type numbers to get another double. However, C++ seems to be rounding the result, eg when a = 1.001, b = 1001, the...
[2 replies] Last: Thanks for the response! I didn't realise floating point arithmetic wa... (by imaginary)
bring back random statements from vector?
 
i am a beginner. I want to create a program that every time you run brings back a different statement from an array or vector. I want to have about 100 of the...
[3 replies] Last: wow quick thanks guys! (by russeld)
function mousedown to document class
 
Hello, where would I add, is it in operations? public: void MouseDown(CPoint point); PointArray& GetPointArray(){return m_pointArray;} ColorArray& Get...
[2 replies] Last: I'm hard coding this stuff, I don't think I'm doing it right. (by foobarbaz)
When I compile I just get In function `main': : undefined reference to
 
Hi I am very new at programming im trying to " Write a program to determine whether a date is valid in terms of days in that month." I thought I fixed all the b...
[2 replies] Last: oh wow i cannot believe i missed that. thank you! (by ssushchy)
February 2010 Pages: 1... 1516171819... 32
  Archived months: [jan2010] [mar2010]

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