Beginners - June 2012 (Page 26)

Default Arguments Example
 
Hi cplusplus.com forum, could someone help me work out how to compile this example? #include <iostream> using namespace std; ...
[3 replies] Last: You can also use your function the following way #include <iostream>... (by vlad from moscow)
currentCardRank ?
 
hey guys i just made a poker game, and i try to determined the royal flush. my friend said that i need to use currentCardRank, i've made it and it works. but i...
[1 reply] : I have no idea what S, R or x are. I'm guessing it's suit, rank and v... (by Stewbond)
But why.
 
This might seem useless to know, but I have a tendancy to know every inch and probability in all scenarios. #include <iostream> int main(){ int a,b;...
[4 replies] Last: This operation as ~ inverses bits from 1 to 0 and viice-versa from 0 t... (by vlad from moscow)
polymorphism
 
Hi guys For a project to score high my program need to support polymorphism. But it's confusing for me. This project is about trains. I have made few clas...
[5 replies] Last: thanks for reply guys. does that mean that it's not possible to use ... (by chipp)
by jorz
managed variables
 
Hi all, I have searched for good managed variables tutorial but so far I haven't found any good stuff. does anyone know any good tutorial? Many thanks
[1 reply] : http://www.cplusplus.com/doc/tutorial/variables/ Edit: I have sear... (by Catfish2)
Tic Tac Toe Expert needed
 
Hi Everyone, ///////////////////////////////////////////////////////////////////// simple tic tac toe game. player inputs, computer chooses a random empt...
[4 replies] Last: Those are from other exercises programs etc I have attempted. I always... (by toomanystars)
Problem with getline() string input
 
I am working on a program that counts the votes of N candidates and print the winner and votes received. Here is the input format: The input begins with a pos...
[no replies]
How to start effective learning?
 
Hello everyone, this is my very first post here. Summer has begun and i noticed that i am aint learning at all, but the worst thing is that before summer i wasn...
[2 replies] Last: I started by picking up three older books (around $5-10 each) and star... (by toomanystars)
by arc63
Fstream having trouble reading .txt files
 
// This program reads floating point data from a data file and places those // values into the private data member called values (a floating point array) // o...
[3 replies] Last: The for loop in printList is wrong, for(int i = length; i < MAX_LENGT... (by naraku9333)
How to find Royal Flush on Poker C++
 
hello guys, this is my first post on cpluplus forum so i feel a little bit awkward. anyways.. i actually making a poker game on c++. but like my tittle above, ...
[13 replies] Last: yeah my senior said that JAVA is very interesting :D btw now i try to... (by anindyasd)
Changing card
 
hey guys i just got task from my lecturer. he ask me to make a poker game. the rule of the game is that there are 3 players. each player has an opportunity to c...
[3 replies] Last: You're going to have a very tough time getting someone to help you wit... (by Volatile Pulse)
Finding the 10,001st prime number
 
I am not sure what is wrong with this code, I keep getting the answer as 1. #include<iostream> using namespace std; int main() { int counter, number, d...
[1 reply] : This if never happens, it's impossible to: while(divider < 150000) {... (by Volatile Pulse)
Gentle guidance While, Switch, forever looping
 
Greetings all, I'm very new to programming and I'm trying to self teach. Currently I am trying to solve the following: I am giving the user the ability...
[4 replies] Last: I'm not 100% on this or my terminology, but I'll try my best to explai... (by Volatile Pulse)
Memory Management
 
I've heard that one of the traits that makes C++ one of the most powerful programming languages out there, in addition to its level of control, is its ability t...
[1 reply] : "memory management" is a bit of a red herring. Read up on storage clas... (by Cubbi)
Strings Questions
 
http://www.cplusplus.com/doc/tutorial/variables/ Scroll down to The Introduction To Strings part of the page (bottom). I'm a little stuck in strings. I don't ...
[2 replies] Last: Strings are actually a objects (not variables). strings are very usef... (by Lowest0ne)
Open GL
 
I was wondering if anyone still used OpenGL for graphics, since my textbook that I am reading is using it. Also, if anyone still uses it, can they explain to me...
[8 replies] Last: just ordered a couple books for openGl yesterday, it's still widely us... (by Need4Sleep)
"cls" command?
 
Hello, I was wondering if there was a c++ equivalent of a "cls" command? I'm running my code as a console application. I did some looking around, and the only t...
[10 replies] Last: I dont understand win32, but i have been using the function for ages w... (by Need4Sleep)
Need help with my CODE!
 
Alright, I have a project due in a couple of days, and i'm stuck, but I also need some suggestion. I'm doing a Sine/Cosine Law program, and I must have 2 functi...
[9 replies] Last: C = 180 - ( A + B ); // This is the same as C = 180 - A + B; The brac... (by htirwin)
XML files
 
I need to extract information from an XML file for use in a c++ program. My first look around for a solution directed me to http://xerces.apache.org/xerces-c/. ...
[8 replies] Last: Thanks Texan40. Any chance you can throw in some comments here and the... (by vckngs7)
Loop(Specifying amount of employees user can input)
 
Here's what I have so far.....I still can't figure out what I'm doing wrong. I've been working on this problem for a week now. Very new to C++ : #include<ios...
[11 replies] Last: 3B) Expand your Payroll program so that it repeats for as many employe... (by LaC0saNostra)
June 2012 Pages: 1... 2425262728... 51
  Archived months: [may2012] [jul2012]

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