Beginners - December 2009 (Page 19)

trouble with classes
 
for some reason im having trouble getting my program to even compile now i will include the errors and the header and body files for reference thanks ...
[5 replies] Last: alright i fixed all the previous probems and have a problem i have nev... (by zachtastic)
Tic-Tac-Toe
 
Hi. I'm a C++ noob. One of the first programs that I made is a tic-tac-toe game complete with an AI and 2-player modes. I am curious if there is a better way to...
[4 replies] Last: Thanks for the reply. I've rewritten my code and it went from 1115 lin... (by Static Electricity)
by luvsom
passing by pointer
 
i have this code that was done using pass by reference but i need to change those parts to pass by pointer. I changed some of it but i dont know what else to ch...
[2 replies] Last: got it. thanks for ur help (by luvsom)
Stream vs. Buffer
 
What is the diffence between the two, and what are their purpose?
[6 replies] Last: Thanks, Yeah, I see now, Cplusplus explains it better. Wiki says n... (by ArcherSam)
Inline functions
 
With inline functions, when the function is called from a global perspective. Does the function transplant from global to local in the function its being called...
[2 replies] Last: Thanks Zhuge, So an inline function is when a function is called, ... (by ArcherSam)
Making words not appear on the screen while the user types them
 
Okay so I am trying to figure out how to take the word that player one enters and make it not shown on the screen so that player 2 can't just read the word type...
[7 replies] Last: It's also really annoying to use... I've tried it a few times and coul... (by chrisname)
problem with class templates
 
I recreated my Matrix class using templates. I use class template T so I can parameterize the elements. I keep getting the following errors: error C2955: '...
[5 replies] Last: you're right jsmith. That works just fine. Thank you (by joeriMJ)
Binary problem
 
I need to write a program using a binary search to guess a number between 1 and 100. I need to do it recursively but am not quite sure how. The user doesn't nee...
[7 replies] Last: Ok so I have this now, now how would I call it in main? #include <... (by spazamatic2)
please hellllp !! how to do this program ???
 
The queue element should represent a customer at a bank. You will define the class bankCustomer to include a customer’s name, transaction type (withdrawal or ...
[2 replies] Last: http://www.rentacoder.com/RentACoder/DotNet/default.aspx (by Zhuge)
function pointers to other class functions
 
Hey guys, I am a brand new beginner at C++ so please be nice as this stuff is scary! Basically I have 2 classes, one for computing numerical integration and ...
[3 replies] Last: PS Do you think this is the right way of setting up this problem, I am... (by sruggiero)
by Tafhim
Consecutive function call problem
 
I've defined one function and am taking 2 values off it by calling it 2 times. Like this: count1=counter(subject1); couunt2=counter(subject2); But the pr...
[3 replies] Last: cout << count1 << endl; is a series of function calls that use the s... (by kbw)
by j3tt
debugging a bonus calculation program
 
something wrong in the "void calcAndDisplayBonus" function but I don't see it. help? //Ch10AppE10.cpp //Calculates and displays a bonus amount //Created/r...
[1 reply] : enterItems takes salesAmt and rate by value. So it doesn't pass them ... (by kbw)
error deleting file
 
I am writing an assembler for a simulated computer system(H1), that we use in class. The assembler has to create a list file with a bunch of info in it. I am ju...
[1 reply] : Have you closed the file before attempting to delete it? (by kbw)
Printing Prime Numbers less than 2000 using an array and for loops
 
I have been searching and searching the forums to a possiable solution for my question but I havent been able to find the right answer. i am brand new to using ...
[2 replies] Last: You can look up 'The sieve of Eratosthenes' and work out the the algor... (by closed account z05DSL3A)
I'm confused on where to start.
 
I'm creating an application that can analzye numeric data contained in an single-dimension array of type integer. I have the skeleton key below but i'm not su...
[1 reply] : It's just a class. You'll need a main-function which calls the const... (by MaikCAE)
by TBird
Where to go next?
 
I'm quite new to C++. I've been teaching myself how to program using: C++ How To Program 4th ed*. I am quite comfortable with what I'm learning and would like...
[3 replies] Last: Yeah, I'm using v4 cause it was free. My brother used it in his colle... (by TBird)
test string for integer
 
whats the best way to test a string to see if it is an integer? I can loop through a string and use isdigit(), but that doesn't work if it is a negative number...
[1 reply] : Here is the absolute best way to do it in C++: #include <boost/l... (by PanGalactic)
item databasing in *.txt
 
hello. i'm having trouble with finding a specific number in text file. my problem is: create a text file that contain numbers in 3 lines. each lines consist...
[3 replies] Last: the contents of ITEM_DB.txt is: 101 knife 12 2 3 102 axe 8 22 1 ... (by ragnamanga)
by mtod1
Some example noob code i'm playing with.
 
Hi all. This is my first post. I am completely new to coding and have been messing about with C++ for about a week or so now and thought I'd post some code I...
[5 replies] Last: Here is my current code for users to enter and confirm their username ... (by mtod1)
Problem Learning Classes
 
~ I have been programming with other 'noobish' interpreted languages for a few years now, like Just Basic, "GML (Game Maker Language)", JavaScript, etc. so ...
[7 replies] Last: Ah, yes, don't forget standard containers (vector, list, deque, map, s... (by tummychow)
December 2009 Pages: 1... 1718192021... 23
  Archived months: [nov2009] [jan2010]

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