Beginners - January 2016 (Page 27)

Why does this loop back after pressing "N"?
 
I simply want to know why pressing n, reverts it back to start, and maybe a possible fix for it. (I'm extremely new to this) #include <iostream> using ...
[2 replies] Last: You have two variables named choice in your program. One is created ... (by Peter87)
How to have two separate things simutaniously compute?
 
I noticed the while statement can infinitely continue, but what if I want two of them going at the same time but separately coded? If c++ code sequence-ly does...
[6 replies] Last: What I am asking for (which may even need), is if I can make 100 ant... (by TheIdeasMan)
Accessing an STL base class member variable
 
Hello, I am having some issues understanding the steps necessary to access the member variable from a class I can not access. I understand one can make member p...
[14 replies] Last: ok thanks , will keep that in mind. (by gutty333)
float into int
 
can anyone help me out with converting a float into integer. I'm new here... cin>>a>>b>>c>>d>>e; f=(a+b+c+d+e)/5; cout<<f; so i come here and i need to...
[2 replies] Last: thank you :) (by BlueWasabi)
Summary on memory usage etc
 
Hello I have been wondering if there are any good summaries on how much certain functions are variables strain the cpu/ memory etc.. what I mean is IT what wi...
[1 reply] : Determining what certain functions are variables strain the cpu/ memo... (by kevinkjt2000)
Do I need destructor here?
 
If I have created destructor for node do I also have to create destructor for binary_tree to delete root ? In case I have to create it what I think I sho...
[3 replies] Last: Tnx you guys for nice info! (by etrusks)
abstract type
 
linked list need learn abstract type first?what it is need so important?
[1 reply] : linked list need learn abstract type first? No. (by cire)
using a key for a set of data
 
hello everyone, I would like to use container for defining my data. actually in my algorithm each set of data ( contains more than one data) has a key . I woul...
[15 replies] Last: thank u so much JLBorges , for your very helpful code. it is very nice... (by glitter)
no constructor
 
what happen if class no constructor
[5 replies] Last: Yes. Are you sure you asked the right question? (by Moschops)
Not really understanding an exercise...
 
Hi guys. I'm trying to do all the exercises in Stroustrup's 4th edition and now I'm in 13th chapter "Exception Handling". Mostly he talks about exceptions and R...
[no replies]
Multiple directory creation.
 
Playing around with file streams and directory creations I stumbled upon the _mkdir command and wanted to try something. I wanted to stick that command inside a...
[3 replies] Last: Also, is mkdir the best command for this? if you don't care about po... (by codekiddy)
Recursion: I need help understanding.
 
In this c++ book im reading and in a c++ learning app im using. it tells me that to break the loop of a function that calls itself, use the "recursive function"...
[3 replies] Last: If you do #include <iostream> int factorialfinder (int x) { if... (by mido70)
modulus
 
Please tell me the modulus operation on multiplication of three numbers. i.e. (a*b*c)%m=?
[4 replies] Last: (a*b) % m == ( (a%m) * (b%m) ) % m (a*b*c)%m == ( ( ((a%m)*(b%m))%m )... (by JLBorges)
Functions and variables
 
Hi all, I wrote this small piece of code, after executing the code I had this output: Inside the function: 2 Outside the function: 2 This is not what...
[5 replies] Last: mpark4656, thanks for the tip with the square brackets in the function... (by SophiaJackson59)
by SCB3
Trying to figure this problem out (arrays I think...)
 
So, for a project I have to make a logical maze, I have a txt file stored into a array set up like this 37 W 45 02 S 89 -1 R 14 and so on ...
[6 replies] Last: added new modulus to movement option (by SCB3)
reading in formatted file
 
Hi Everyone, I have a question about reading in a file that has been formatted. Below are what the contents of the file looks like: A B C D E...
[2 replies] Last: Worked like a charm. Thanks Chervil! (by aclifton314)
by Dany83
Determinant of a matrix, pointers, recursive functions
 
Hi to all!!! My name's Daniele and I'm new in this blog and a C++ beginner. In this period I'm trying to improve in pointers and recursive functions and for thi...
[11 replies] Last: The return statement at like 13 is correct. The problem is line 8. If... (by dhayden)
by suppa
Need help
 
I am making a username and password database, my problem is that the program only see's the first user in the array and not any other users. I am sure this is a...
[4 replies] Last: Thank you so much, I didn't realize that it was breaking after the fir... (by suppa)
Critique 2hr noob code
 
Hello. I've only been learning C++ (my first language) for 2 hours now. So far, this is what I can/can't do. #include <iostream> using namespace std; ...
[6 replies] Last: You guys are awesome. (by MediumLearner)
Generate a random letter in set range?
 
Hi guys. I am making a bejewelled like game in windows console where if I get three of the same characters they will be destroyed and new characters will be ad...
[5 replies] Last: If that's a reason to be stupid, then 99.95% of people who post here a... (by TarikNeaj)
January 2016 Pages: 1... 2526272829
  Archived months: [dec2015] [feb2016]

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