Beginners - August 2013 (Page 31)

multi comparison in one condition
 
Hi! I was doing a simple exercise (slot machine with only 3 possible values ). It took me less then a minute to do it. Here's the code. #include <iostrea...
[5 replies] Last: ok now I understand perfectly! Thanks AbstractionAnon! (by thepianistop66)
by jkevin
Multiplication of row element 2 D array
 
For some reason I keep getting zero as my result. I am supposed to multiply row elements of the array A . Can someone tell me whats wrong with my code? #in...
[3 replies] Last: mult is multiplied with each element of the array and then assigned to... (by xismn)
Help with functions and loops Updated
 
i need help with this program ive been asked to open a file the the user has to input one of three optns, opt1 will append to the file opt2 will display or prin...
[14 replies] Last: Your while loop at line 43 doesn't do anything. The ; at the end of ... (by AbstractionAnon)
Compiling File with SDL
 
So I followed Lazy Food's tutorial on how to upload SDL to visual studio 2010. But I keep getting an error when attempting to compile the test file. 1>----...
[11 replies] Last: Thanks for the advice. Zereo, That was the issue. I copied into the f... (by masschamber)
(*)Pointer value
 
Hi guys I'm new here and I would like to ask you a question about a little consolle program (very few code just to understand..) and relative output: int...
[2 replies] Last: Thanks a lot (by Giacomino)
Please help me! Coding Errors.
 
I have worked on this code.. and now I have TWO seemingly minor errors that I can not figure out. I am new and I would GREATLY appreciate any help you can give ...
[8 replies] Last: Yikes, I am so confused. (by STLandTX)
cout ,cerr and clog
 
what is the difference between cout ,cerr and clog?
[4 replies] Last: Thanks a lot @Catfish4 for the effort I'll try to miss with this code,... (by closed account 28poGNh0)
Password problem
 
Ok still have a problem with this task. I need a boolean password for my atm. However if i input the incorrect password the program still continues. // My main...
[2 replies] Last: yea no problem (by Xistenial)
Menu
 
Hi, I'm making math programs, and i have no idea how to make a menu. I know how to do the math, display, etc. I have previously worked with ti basic, so I'm loo...
[2 replies] Last: Yes, thank you. This really clears things up, i wasn't too sure if tha... (by agimatated17)
Beginning Blackjack Code-DoWhile/Switch Problem
 
Hi, I am currently having a problem with my Blackjack game code. I have little experience with C++ and am learning by video tutorials, so I have very limited k...
[4 replies] Last: I tried that out and I like it a lot; it seems a little better. Thank... (by D00rThief)
by Hertz
Regulating Framerate
 
I have been playing around with the <ctime> library and tried to calculate fps (frames per second). I combined it with SFML but the main thing I am working on...
[1 reply] : This should help: http://en.sfml-dev.org/forums/index.php?topic=7018.m... (by closed account zb0S216C)
by chong
Help please. Code error.
 
Hi, I am learning C++ from Accelerated C++ book. I tried to do the excersive but the coded is not working. I have check a couple of times and could not see what...
[4 replies] Last: I have finally find out what is wrong with it. I have selected Win 32 ... (by chong)
Variable rang
 
How can I know the rang of variable? for expamle how can demonstrate that rang of char is 255?
[2 replies] Last: Thanks @Grey wolf got it (by closed account 28poGNh0)
iostream.h
 
Hello everyone I saw this directicve # include <iostream.h> in some cpp tuto book but when I tryied to compile it with code::blocks .I get an error : "iostr...
[8 replies] Last: well thanks all of you (by closed account 28poGNh0)
essue with int
 
When we initialise a variable int with floting-point value like this int a = 2.5; why int can only hold 2 rather than puting some at lest warnings...
[2 replies] Last: No I dont get warnings I said maybe is right for compiler to put ones ... (by closed account 28poGNh0)
by ar2007
Class and dinamyc memory
 
In this simple exercise, for the "test" of type boolean, I used the variable k = sizeof (data) / sizeof (data ), the problem lies in the fact that the dynamic ...
[5 replies] Last: Thanks you disch and cath for the explanations. (by ar2007)
by koga
working directory
 
How do you fine/set your working directory on visual studios 2012 ?
[3 replies] Last: VS has several "working directories". Source, library, object, etc. ... (by AbstractionAnon)
Confused about Dynamic Arrays + File Input
 
I'm working on a small project that basically works like this: the user inputs a text file (via command line). The text file is a list of space separated number...
[6 replies] Last: Shouldn't be much of a modification. I think you can have 2D vectors l... (by closed account N36fSL3A)
Could someone check my code, its not working
 
Hi there I dont suppose anyones got anytime to just to go through my code and stop any mistakes, im trying to get it to compile but its not working and also whe...
[6 replies] Last: [quote=Factors]1: Generally people don't like using the goto due to it... (by closed account 3qX21hU5)
by Sahba
random function
 
Hi.I want to know what is the problem in this program? I can't build it for these errors in output: 2.cpp(10): error C2064: term does not evaluate to a funct...
[4 replies] Last: Thanks so much.I get it. (by Sahba)
August 2013 Pages: 1... 2930313233... 51
  Archived months: [jul2013] [sep2013]

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