Beginners - December 2015 (Page 32)

Error 2019
The problem is that I get error 2019, but I don't know what's wrong. I searched about it and I found that it can mean a lot of things. I use visual studio 2013 ...
Dec 6, 2015 at 5:56pm
[8 replies] Last: Then in your first post datafloat should probably be a component_t typ... (by jlb)
Using Structured Array to create card deck
Okay, so I am new to C++ at Uni, We've been set an assignment to make a simple blackjack game. I am fine with my menu and setting everything else up but I'm rea...
Dec 6, 2015 at 5:01pm
[no replies]
Output buffer
what is an output buffer, please be detailed in your answers, I seriously need to understand this. thanks all
Dec 6, 2015 at 4:45pm
[1 reply] : If the buffer in question is the stream buffer tutorial: http://www.mr... (by JLBorges)
by Gather
Generate a list of random numbers
Hello everyone. I am having some issues with my homework assigment. they are asking me to generate a list of random numbers; no more than 50 (range 1-10). The u...
Dec 6, 2015 at 4:18pm
[4 replies] Last: When posting code, please use code tags. Highlight the code and click ... (by dhayden)
filtering duplicate lines
i need to filter duplicate lines from a text. it should store input lines in a vector and call a function to filter. sorry i am obviously a beginner and struggl...
Dec 6, 2015 at 2:23pm
[3 replies] Last: Ok, you'd need to post the whole of the code in order for anyone to se... (by Chervil)
Designing a chess program
My aim is to create a program (backend only) to allow a game of chess to be played.It'll determine whether a move is valid, whether a player is in check etc. ...
Dec 6, 2015 at 2:08pm
[no replies]
handle recursion for 'subseting'
The question goes like this: build the recursive function bool isEven(int a, int b) that figures out if there's an even/odd amount of occurrences of b in a. ...
Dec 6, 2015 at 2:03pm
[no replies]
If Else statement understanding
Hi I would like to know why the following code will give an output of 78.65. I know that the condition has 1 = sign instead of 2, but why doesnt it do the rest ...
Dec 6, 2015 at 1:55pm
[15 replies] Last: Thanks Peter87 for the clarification. (by Chervil)
C++ reading specific parts of a text file
I was wondering if this can be accomplished using the ifstream library and using only a text file. Basically if I have multiple lines of information, regardless...
Dec 6, 2015 at 1:18pm
[2 replies] Last: Have a look at this post: http://www.cplusplus.com/forum/general/21452... (by Thomas1965)
Help with this program..I only get the true valu of the condition.
I compared two strings but i only get the 'true' condition..help please..TIA! #include <iostream> #include<conio.h> using namespace std; main() { char...
Dec 6, 2015 at 12:43pm
[8 replies] Last: strcmp returns zero when the two strings are the same. (by Moschops)
Need help with this programmig
char choice = '2'; double num = 2.6, gain = 5.5, result; if (choice = '1') result = num*gain*gain; else if (choice = '2') result = num / 3*gain; else re...
Dec 6, 2015 at 12:28pm
[2 replies] Last: I see mutexe has solved your problem :) Next time use code tags pleas... (by FighterCoder)
What is meant by routines in C++?
http://s7.postimg.org/czzvwe2ez/image.png Can you explain me that is meant by routines and what is linker in C++?
Dec 6, 2015 at 11:46am
[1 reply] : http://stackoverflow.com/questions/3322911/what-do-linkers-do http://w... (by mutexe)
If Else statement without braces
I was just wondering what will happen in the following program. I know there will be a compilation error, however, can someone explain to me how does the compil...
Dec 6, 2015 at 10:45am
[3 replies] Last: I still do not understand why does the compiler recognise the else st... (by Moschops)
XCode output window
I would like to know if there is a way to get the output window on Xcode to pop-up rather than being down the bottom. If this cannot be done, how do you enter o...
Dec 6, 2015 at 10:00am
[1 reply] : Just type in the selection in the 'output window' the same as if it wa... (by closed account 48T7M4Gy)
help compiling this
Hi just wondering if anyone knows why this won't work? The issue that I am having is with the end1; I am using Xcode on a mac and don't know how to fix it #i...
Dec 6, 2015 at 7:58am
[3 replies] Last: Thank you very much FurryGuy (by nuttsy5)
by BEARS
Binary Search??
Can someone explain to me how binary search works exactly? I tried googling it, but it makes no sense? Can someone give me a very simple explanation for it?
Dec 6, 2015 at 6:45am
[1 reply] : Binary search searches for the value in sorted array by comparing the ... (by codekiddy)
Passing Arrays Through Functions
I am writing a code for a simple calculator that will perform several decimal conversions (I am currently concerned with 1 as of right now). Essentially after t...
Dec 6, 2015 at 5:50am
[1 reply] : Your main problem seems to be that you declare functions with certain ... (by ats15)
by APP LE
Very very basic question
I am a student who just started to learn programming with c++. So kindly excuse me if my question is full of nonsense. Thank you. So I wonder what is that line ...
Dec 6, 2015 at 5:39am
[1 reply] : Here is the definition of the constructor for multiset: http://www.cpl... (by ats15)
Othello game problems
Well i've been trying to write code for a game of othello using Walter Savitch's game class as a parent. However I have encountered several problems that I sim...
Dec 6, 2015 at 3:19am
[no replies]
by ladwer
reading a txt files
Hello, I have a question regarding an assignment. You are supposed to read the input file line by line, and store the information in your variables. The tx...
Dec 6, 2015 at 2:36am
[no replies]
December 2015 Pages: 1... 3031323334... 43
  Archived months: [nov2015] [jan2016]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.