Beginners - May 2014 (Page 15)

Template and max function
 
Hi, I am going through the book "C++ primer" doing all the exercises. Exercise 5 chapter 8 says to write a template function max5() that takes as its argument ...
[3 replies] Last: Hi Freddy and Keskiverto, Thank you for your help! I found what the ... (by ines6375)
install wxwidget
 
Hey guys, i want install wxwidget in windows 7. But i don't understand how?
[3 replies] Last: @coder777: no there's a link on that page.Read it you'll find it there... (by Pter0dactyl)
Planning on building a simple game
 
Hello, I'm still new in this language. I almost finish learning bucky's vid about c++. And today I'm thinking about making a simple board game, like tic tac toe...
[6 replies] Last: Thanks for the advice, I can start learning. (by imanoob)
include twice
 
Hello. I have 2 doubts about includes: First one: If I include twice a .h file, is the second include ignored? I mean, if I write #include "myClassA...
[7 replies] Last: Ok, thank you (but I read everything ;) ). (by Tatanan)
class& vs &class
 
I have fully read this tutorial: http://www.cplusplus.com/doc/tutorial/, which is great by the way. According to http://www.cplusplus.com/doc/tutorial/pointers...
[6 replies] Last: Understood. Thank you very much. (by Tatanan)
MyClass* and MyClass&
 
Hello. Let's consider the following code: void myFuncion(MyClass* foo); void myFuncion(MyClass& foo); Could you tell me if I am right?, since I am...
[3 replies] Last: Thank you a lot. My doubts were solved. (by Tatanan)
Loading sound with Mix_LoadWav
 
I have recently started proramming with c++ and SDL and i am trying to learn by making a simple RPG game. In my sound-class i want to be able to play background...
[7 replies] Last: So it doesn't crash when you run it with a debugger attached? What do ... (by Peter87)
How to declare a global std::list in bison
 
Hello, I have a Bison code. I want to declare a std::list<Circuit*> circuit_lists to be global so that I can add to this list once a certain grammar is found....
[3 replies] Last: You will have to initialize Circuit_lists in the same row as it's bein... (by Peter87)
why the hell won't this work
 
bool isInString( char c, const char* str ) { while( str != nullptr ) { if( *str++ == c ) return true; std::cout << "*str : " << *str <<...
[2 replies] Last: Oh, i see, thank you very much !! (by troll warlord)
Using user input to return values from structure
 
I have a question about structures. I'm trying to have the user input a letter and have the the computer return two values. Here's what I have till now: ...
[1 reply] : Also, is this a good way to return more than one value for a user inp... (by MiiNiPaa)
by tdk93
type of this expression- (n(int)>0)?f(float):n(int)
 
I read this in Ritchie that the type of following expression is float regardless of whether n is positive. I don't understand why. If n > 0 shouldn't just the ...
[1 reply] : Two reasons: 1. Types are determined at compile time. n only has a val... (by helios)
C # sister forum
 
Hi. Is there a site comparable to this with help for C#? And if so could I get the URL?
[no replies]
Maximum value of the array
 
I don't know how to find max t of array. I know now is to big and it crash, but i want to do that program will show me the exact number of max t. Please help. ...
[no replies]
A project I need to be explained
 
Pretty much my professor gave us the project: ftp://ftp.aligra.com/Riverside/2014%20Spring/CSC5/Projects/Project%2004.pdf and it seems everyone is having ...
[1 reply] : What you have trouble with? It has short description of what you need ... (by MiiNiPaa)
Calculator problem
 
i run this,and on line 34, the if statement runs and works, but after "Enter the operation you wanna perform: " it doesn't wait for input, and it skips the rest...
[2 replies] Last: so how should i fix this? (by josepho16)
by kami12
for loop
 
Hello, everyone! I don't understand why p<a doesn't give a mistake. The initial values for both p and a are 2. And my second question is related to if(del)....
[2 replies] Last: Thanks a lot! (by kami12)
Palindrome Program HELP!
 
I have a program where it will ask the user for a word and check if it's a palindrome. The problem I have is: 1) I need to modify the program so that i...
[1 reply] : 1) I need to modify the program so that it will take sentences rather... (by MiiNiPaa)
trying to create a calculator.
 
Sorry, pretty new but ambitious. I'm trying to be able to have the user type in "add" and storing this as "add" so the program will proceed to the correct if st...
[3 replies] Last: @Whitenite1 Thank you, I had used == first but backspaced it for some ... (by sinfulstyle)
by locolo
Function problem!!
 
This function, needs to do 2 extra things Print a msg saying, u allready used this "letter" and loop back The "letter" isnt in the word!! Hope someone out ...
[4 replies] Last: What is wrong?? void guess_letter (char word_player , int word_size,... (by locolo)
Errors in Rock Paper Scissors Program
 
The errors I get in this fairly simple Rock Paper Scissors program are: -end of file found before the left brace at '{' and -'main': local function definitio...
[3 replies] Last: colours.h is missing a } at the end of it (by kevinkjt2000)
May 2014 Pages: 1... 1314151617... 55
  Archived months: [apr2014] [jun2014]

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