Beginners - November 2016 (Page 25)

Printing "pretty" Binary tree?
 
I have a Binary tree, with "x" elements, i just want to print this tree in a "visual" mode (in the console of course), its my homework, but i don't know how to ...
[2 replies] Last: Consider thinking about your tree as a linked structure; something lik... (by mbozzi)
by bobby5
C++ problem
 
You are to design a Class that will represent a restaurant order. The Class will have two public methods, one to place an order and the second to calculate and...
[2 replies] Last: string menu = { "Fried steak", "Ham and Cheese Sandwich", "Salmon", "... (by bobby5)
Project won't compile
 
I've edited this project multiple times, but it never seems to compile. Any suggestions? #include <iostream> #include <fstream> using namespace std; const do...
[3 replies] Last: Thank you so much. Didn't know something so simple could be the proble... (by lWilliamCl)
Problem with password verifier
 
Hey there everyone. I just need a push in the right direction here. This is my third week with C++, and I thought I was on a roll with this program, but now I'm...
[no replies]
Numbers In Rising Order
 
Hey guys! I need a program that takes in 3 numbers and outputs them in a rising order, you put 3 2 1, and it outputs 1 2 3. Im getting a hard time with the com...
[no replies]
How to immediately stop my program
 
How to immediately stop when I enter -1 #include <iostream> using namespace std ; int main() { //declate variable double accountnumber = 0 ; doubl...
[3 replies] Last: Hello Yeoh4311, PLEASE ALWAYS USE CODE TAGS (the <> formatting button... (by Handy Andy)
debug assertion failed
 
Hello everyone, I have been learning c++ for a week now and I'm doing an assignment where I have to make a cellular automat where each cell updates depending o...
[5 replies] Last: Perhaps my previous post was confusing. This is the fix for line 14:... (by Chervil)
by nu123
couting numbers in answer
 
im trying to get my code to display the amount of numbers that are in the answer to the first calculation. i want to display this at the end of the program, but...
[no replies]
by kenruy
run-time check failure #2 - stack around the variable was corrupted.
 
Hello guys, I need help on this program. The program runs fine until I put the last case in the switch statement in. If I take it out, it still works perfectly ...
[no replies]
Graph Theory Problem
 
I'm doing a practice programming problem on graph theory, I've been at it for 4 hours but no progress. Here is the problem statement can anyone help? Fl...
[1 reply] : I'm doing a practice programming problem on graph theory, I've been a... (by cire)
by rlake
Unhandled exception when trying to delete an item in a hashtable
 
Hello, I am getting the following error message in my function to delete a value from a hashtable with chaining using a linked list: Unhandled exception t...
[5 replies] Last: I fixed the problem with the link->next=link->-next->next; It now rea... (by cire)
Finding highest value from user input
 
I have to write a program that finds the largest value from 15 random values entered by the user. The values can be either whole numbers or decimals and there ...
[8 replies] Last: Ok, instead of setting double highest=0 I set double highest=num. I t... (by quantumleap)
Code compile problem
 
l
[1 reply] : You declared a function readdata and called it but didn't define it. Y... (by Thomas1965)
by nu123
how to exit code
 
hi there i have my code fully working as i want apart from exiting it. when i press 2 to exit it now it just gives me two lines of code saying "to go again pres...
[7 replies] Last: that's great thanks. i didn't realise that would affect the code so fa... (by nu123)
issue reading c++ line
 
Hi, I'm trying to read a line but I don't get what it's supposed to do. x86emitter.cpp template void xWrite<u8>( u8 val ); // __fi is force inline __fi void...
[4 replies] Last: Yes, I wasn't asking for an explanation with += means but rather why? (by gunnerfunner)
Help trying to create a class
 
i need help to Create a person class to represent a person. (You may call the class personType.) To simplify things, have the class have 2 variable members for ...
[6 replies] Last: When you post on cplusplus to the right of the text box is the format ... (by rghrist23)
Brute forcing permutations of a string
 
Hi all! I want to make a program where it takes a string input where either the character is an A or B or ?. For example, AB?. Then I want my program to repl...
[13 replies] Last: Ah I see so for every question mark it uses that as a prefix and uses ... (by Code Apperentice)
by nu123
text keep repeating
 
hi there I'm at this code here for the last couple of days and final after getting it working. it only problem I keep getting is my text at the end keeps repeat...
[3 replies] Last: removelastnumber = mvalue/10; // removes last number while... (by chipp)
[HELP] Change directory windows c++
 
I simply want my program to go in a directory of my choice and i can't find the answer anywhere to such a simple question. Why is this not working ? Can i just...
[3 replies] Last: On a windows system you might try SetCurrentDirectoryA() #include ... (by Chervil)
Virtual Function help
 
Hi ppl, i am having difficulty in declaring virtual functions for abstract classes. I have this assignment due next week. I am trying to implement types of acco...
[8 replies] Last: Thanks for the help ppl. hopefully m gona 100% on this assignment. BT... (by AMalik88)
November 2016 Pages: 1... 2324252627... 44
  Archived months: [oct2016] [dec2016]

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