General C++ Programming - March 2014 (Page 5)

How to avoid using Backspace character with push_back?
 
How to avoid using Backspace character with push_back? I'm making a software as an ATM, so when the user try to enter the password the user only sees *******...
[6 replies] Last: Thanks to all you guys, I'll keep trying. (by josearshavin)
Function call problem
 
asdf
[1 reply] : Thanks for all the help (by jigaboo247)
234 Tree stored in binary file
 
Hello, How would I store a 234 tree in a binary file? I've never worked with trees or binary files before so it is very confusing. Thanks.
[18 replies] Last: OT/ Have you tried the information at the link I posted? It seems to ... (by Smac89)
by patieB
for loop
 
the program is to calculate the average time each student spent over a long weekend . I am trying to make the inner loop iterate n times where n is a positive ...
[6 replies] Last: thank you , was just staring at the answer but hey (by patieB)
by stanz
Please help me...
 
No thanks, problems solved
[1 reply] : hello , I had problem like you, I searched on google and finally I fou... (by heroxadieu)
How do I stop floating point input into integer variable in this situation
 
Hello all, I am trying to make sure no floating point numbers can be input at any time in my roulette program. Could anyone tell me how to do this. my code is ...
[12 replies] Last: Thank you, that is a very well defined process that I am able to reall... (by vaze159)
How to use the biggest value?
 
Hi! I'm a beginner. I have 4 main values: k = 355; 1var; 2var; 3var; - random values And the main object comes with 3 steps: 1.Finding biggest value; 2....
[no replies]
is it nonsense to use std::move like this?
 
std::string insert::simple_insert () const { std::string start{"INSERT into "}; std::string values{" VALUES (" }; std::string list = return_lis...
[1 reply] : Yes, the return statement works (and by 'works' I mean decides what co... (by Cubbi)
Dynamic memory - create multiple instances without explicitly call delete
 
Hi, Please look at this code: #include <iostream> using namespace std; class teste { public: teste(){x=33;}; ~teste(){cout << x << endl;}; ...
[1 reply] : Each time i call "x = new teste();" the previous object is deleted? ... (by Disch)
by lsosa
cant seem to get this war program to repeat if a tie. Need to give each player one more card if tie.
 
I created this war game and I need it to repeat if a tie. Any help appreciated. int main() { srand(time(0)); rand(); // Variables int c...
[2 replies] Last: I have gone and corrected this and it appears to only display the text... (by lsosa)
by code14
Pong Game
 
I need help with the code for my pong game. I need to modify the code to catch the bluetooth command of UP, Down, Left and right. this pong game is going to be ...
[1 reply] : Here is how to attach your code: http://www.cplusplus.com/articles/jEy... (by Computergeek01)
Cloud storage for source code (c/c++) files?
 
I'm wondering which cloud storage is the best when working with source code files (c/c++) and devkits (I'm using the pspsdk devkit to make my psp homebrew). I'm...
[1 reply] : When working with code I think it's better to use a version control sy... (by Peter87)
Advice on good C++ courses
 
Good evening, I'm working in London as an experienced python developer and Linux systems administrator, and have recently been asked whether I'd like to do ...
[7 replies] Last: The lapdancing bar over the road from the Learning Tree office is also... (by mutexe)
funtion help
 
I am needing help on a problem I have for school. I am not asking anyone to do this for me but help me understand what I am doing and how to go about doing this...
[9 replies] Last: if (ch!='/n') This should be if (ch!='\n') . Use a back slash ins... (by doug4)
C++ LaTex binding
 
Hi everyone, I am a researcher and I wrote a C++ program to run simulations. My simulations gives results as many large tables (cout in .txt files). I write ...
[2 replies] Last: Hi, Got it! Thanks! (by dekeenfrance)
Rebinding the allocator for the Nodes of a LinkedList?
 
I am coding a singly-linked list container. Of course, internally it uses Node<T> . Question: what is the correct way to use the allocator given by the use...
[6 replies] Last: I just logged in to bring up segmented storage as an example... (by Cubbi)
Initializing a generic cost matrix
 
Hey guys, I'm working on a piece of code where there are several cost matrices, with different cost types. To reduce code bloat/inconsistencies, I made the a...
[9 replies] Last: Alright, I think I now have a basic understanding of the differences b... (by Gaminic)
HELP!!
 
#include<iostream> using namespace std; int main(){ int N,icount,sum_odd,sum_even,max_half,min_half,odd_avrg; cout<<"Enter how many number followed b...
[5 replies] Last: If you started using a sensible indentation style, it would help you s... (by MikeyBoy)
by jfoom
Class A type in Class B's private?
 
I'm currently planning a game that involves a deck of cards that are placed in a game board, which is also a class. The idea is something like this: Card.hh...
[2 replies] Last: Looks completely plausible to me. (by mutexe)
by owj549
Compute the value of a polynomial
 
Hi,I am new to c programming. This program is supposed to find the value of a polynomial with x being the number of terms a being the coefficients ...
[4 replies] Last: n has not been initialized when it's used on line 23. (by Peter87)
March 2014 Pages: 1... 34567... 36
  Archived months: [feb2014] [apr2014]

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