Beginners - October 2018 (Page 14)

Maze solver using stacks and Queues
 
Hello, I have a Data structures project due and it's about developing a Maze solver that will solve the input from a maze using 2 methods, the depth first sear...
[6 replies] Last: @nuderobmonkey Thank you so much for your great help! (by maqalmulla)
Adding a "Node" instance to a linked list
 
Hello! I am very new to C++. I'm stuck on a problem and am in need of assistance; so help is greatly appreciated. I want to add another node instance to the c...
[5 replies] Last: You can skip the append(), unless your teacher requests it. There mus... (by keskiverto)
My program stops and idk why(tictactoe)
 
I cannot understand why this program stops working, probably in the first loop of do while when it tries to do makeMove or ChangePlayer. Can someone help? ...
[2 replies] Last: Thx :> Found the mistake, checkWin was just an infinite loop... Gotta ... (by BonJowi)
by ValDe
Vectors Menu Switch
 
I need help making a menu using vectors this is what I have so far, I don't know how to combine it. // This program demonstrates the vector's empty member fu...
[2 replies] Last: > I need help making a menu using vectors this is what I have so far, ... (by JLBorges)
Sorting Linked List by Last Name
 
I'm trying to sort my linked list by students' last name (sortLastName function), and it's not working. Can anyone please tell me what I'm doing wrong? Thanks i...
[2 replies] Last: When i run the program it compiles, but does not sort the list by last... (by mysiarobin1987)
sorting strings
 
This is what I have, string a; string b; string c; cout << "Please enter a string."; cin >> a; cout << "Please enter a second string."; cin >> b; cout << "Plea...
[1 reply] : #include <iostream> #include <string> #include <algorithm> // for std... (by JLBorges)
struct array type problem
 
why my program will be crashed, although I have allocated the corrected capacity to pointer a already; #include<stdio.h> #include<stdlib.h> typedef struc...
[5 replies] Last: coder77 thx! (by toby1a05)
need help improving matrix calculator
 
Hello everyone, I coded recently this matrix calculator https://github.com/ronenp/MatrixCalculator It works fine for small matrices, but for very large ones, 80...
[10 replies] Last: It wasn't the GCD, I changed the code to this and now the calculation ... (by ronenp88)
Help Me C++
 
Write your question here. I declare int age; i want to accept input that is just 0+ but when i type a letter example a the code continue and proceed t...
[1 reply] : The problem occurs because you are inputting a char into an int. You f... (by Too Explosive)
Help regarding a drill by Bjarne Stroustrup
 
Trying to solve a drill in the book Programming Principles and Practice Using C++ by Bjarne Stroustrup: Prompt the user to enter the age of the recipient and...
[5 replies] Last: @Enoizat Thanks for the elaborate help. (by bagrarajeev)
by gjur99
Please help me!
 
Hello! i wrote this code as a personal project, but i dont know how to do the following: In the start of the program, when it asks for "do you want to enter the...
[1 reply] : You would use a if statement such as pseudo if y or n or Y or N els... (by SamuelAdams)
Answer to the test case
 
I have N integers i need to tell the number of ways to pair up these numbers into N/2 groups. Each number wants to get paired up with maximum number possible. N...
[4 replies] Last: N is always even so how can it be 5? let it be 6 so, 2 2 2 2 2 2 Tot... (by eleven11)
how would i change the else if statement below into a switch statement
 
if (membership != 'S' && membership != 'P' && membership != 'E') cout << "Please enter S(tandard) or P(lus) or E for Premium. " << endl; else { if (memb...
[1 reply] : You could put switch statements inside of a switch statement. Or if st... (by Manga)
digitsum minimize
 
You are given positive integers N and D. You may perform operations of the following two types: add D to N, i.e. change N to N+D change N to digitsum(N) He...
[3 replies] Last: mee too (by Dev8213)
Calculate and finding divisions in company having highest sale
 
I am having an assignment of needing to create a code to calculate the sales of different divisions within the company and finding the division which has the hi...
[1 reply] : I just can't figure out the process and how to write such a code. Re... (by Enoizat)
Need help
 
I have a question hope I can explain it. Let's say I have 3 cars right. And I'm using for loop. I need to find which car uses least fuel for most driven distan...
[11 replies] Last: Oh it supposed to be out of loop. I finally did it. Thank you very muc... (by DdavidDLT)
Why can you use C code with C++
 
hi guys, the title says it all but I'll elaborate a little,how is it possible to use C code in C++,for example we can use the standard C library and call oth...
[2 replies] Last: See https://en.cppreference.com/w/cpp/language/language_linkage Note ... (by JLBorges)
Won't read input file
 
Code executes, but does not pull info from input file? #include <fstream> #include <iostream> #include <string> using namespace std; int main() { ifstre...
[9 replies] Last: I offer this for some thought. How do you know if the input files are... (by Handy Andy)
Calling non static function with function pointer syntax
 
Hello i have problem about the syntax how to call non static member function using function pointer. suppose my clone function will call the object factory cr...
[1 reply] : > how to call non static member function using function pointer. to ca... (by ne555)
i wrote this code but it is not giving my desired output
 
i want to draw this pattern 1 2 3 4 5 1 3 5 7 1 4 7 1 5 1
[5 replies] Last: i tried hard nbut couldn't understand how to print 7 Printing is so... (by MikeyBoy)
October 2018 Pages: 1... 1213141516... 28
  Archived months: [sep2018] [nov2018]

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