Beginners - January 2009 (Page 16)

Problem with a class
 
I have a class Text: //text.h class Text { public: write_blended(/*something*/) {/*function definition*/ } }; and a class Game: //game.h #in...
[5 replies] Last: Yup, it was an IDE problem. Fixed. (by Poke386)
Need Simplier Method
 
Hello! Im now about 7 months into my C++ study and i havin been thinking of a basic tiny lil rpg game. Now i got alot of the exp, and level equations down. The ...
[2 replies] Last: I see!!! awesome idea!! i will give it a shot (by LovestoCpp)
Template Function Difficulties
 
Hi there, I am trying to create a global template function that can be used anywhere in my project. I have currently declared the function in a header file "too...
[1 reply] : Template declarations and definitions must be in the same file - not ... (by guestgulkan)
by Claymz
slot machine
 
when i win, the money i won, is added, but the bet is not *3 or *5 or *10, and when it loops again, it starts at 1000 again...and, all 3 random numbers are all...
[5 replies] Last: No problem. Try reading about them at the tutorial if you have any pro... (by demosthenes2k8)
Open file based on user input
 
I'm trying to open a file for read operations and open another file for write operations, but already in the beginning there are problems compiling it. #inclu...
[4 replies] Last: FIXED using: #include <iostream> #include <string> #include <fstre... (by gamebuster)
Warning: missing braces around initializer
 
s8 affinity ={ 1, 2, 0, 2, 0, 1, 1, 1, 0, 1, 1, 2, 0, 0, 2, 2, 2, 1, 1, 0, 2, 0, 2, 0, 0, 0, 2, 1, 1, 2, 0, 2, 2, 2, 0, 1, 1, 2, 0, 0, 1, 2, 2, 0,...
[2 replies] Last: It works perfectly! Thanks! I get the reasoning behind the system n... (by demosthenes2k8)
by uoJhf
tiny c++
 
why is it that my turbo c++ is too small (literally), if you didn't get that then.. i mean, the window of my c++ is small.. and when i execute c++ a message win...
[3 replies] Last: Yes, here is how to do that using Windows API: RECT Size; GetWindow... (by Bazzy)
by DodoCS
binary trees and arthimatic expressions
 
First of all this is an assignment, i am in my second year in Computer Science and this assignment is due on midnight which is 6 hours more or less.i know i am...
[no replies]
Why ?
 
my code is #include <iostream> struct SV { char name ; int age; float mark; }s; int main() { cout <<sizeof(s); ...
[5 replies] Last: Remember that the compiler will insert padding bytes until the size is... (by helios)
Loop back to the beginning or terminate
 
Ok, I have found the code for a really simple program that allows you to check the number value of individual characters. IE= 1, g, ;. What I am wanting to ...
[2 replies] Last: Thanks, That code is something I think I will end up using alot. T... (by Shinji Ikari)
A Serious beginner
 
I am a beginner with serious zeal to learn C++ and JAVA but I don't know where to begin or what materials to start reading. Someone please come to my rescue.
[5 replies] Last: Java borrowed some many issues from c and c++ but not all,e.g pointers... (by DarkFire21)
using namespace....?
 
In the tutorials the author has used 'using namespace std' everywhere.. He/She has also had written the explanation in the beginning...in structure of programe...
[4 replies] Last: Thanks for answering....... I'll read it .......in case i get doubt... (by Harlequin)
How long a program runs?
 
Is there a way to know how long a program need to be complete? EDIT:I edited my question to make more sense
[2 replies] Last: what do you mean? if your question mean how long it need to be comple... (by roodtree)
by JorgeD
Problems showing entered word in cout.
 
Ok In this code It wont go to the the first IF when i type Jorge. It always goes to the incorrect text and it wont show the word typed here " cout<<" You entere...
[3 replies] Last: I'm try to use with the orther way to turn it;if it wrong please exlai... (by roodtree)
by Vector
Function Prototypes ( Reading File )
 
Well ive made some progress since my last post, which is good. Although i am still having a little trouble with the ptr im returning in the function, ifstream o...
[1 reply] : You don't seem to grasp locality of variables. Let's take the follo... (by helios)
a fresh pair of eyes
 
This is a homework assignment but it is almost complete, I just can't figure out where it is messing up. It is a program that is supposed to allow the user to i...
[1 reply] : I think you have 2 mains in the project folder. You might have 2 diffe... (by KyletheProgrammer)
by II15X
Simple Problem, but can't figure out
 
Below is part of the code: if ( x + y == w){ cout << w << "!\n"; else cout << "Wrong\n"; cin.get(); } Erro...
[2 replies] Last: Since your if only has one statement for each branch you don't need br... (by modulo51)
January 2009 Pages: 1... 141516
  Archived months: [dec2008] [feb2009]

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