
please wait
by mario883
Need help with app
|
Hello, I need help to create a simple app where you need to insert the amount of players and their names. The players drops dice from 0 to 99 and the biggest... |
Feb 11, 2020 at 7:19pm
[8 replies] Last: Ganado, Thank you so much. You are my savior! (by mario883)
|
Help with Test Cases |
I'm doing a program that I need 3 test cases with. I know what I'm doing wrong, it expects only 3 parameters and I use more. Not sure how to fix it though. Thi... |
Feb 11, 2020 at 5:35pm
[1 reply] : You have declared, but never defined, a function cases(). (by lastchance)
|
Vectors for College Class |
**Hey, I am rusty on C++ and my college professor just dropped this question to us. He barley brushed on the topic and I have no idea how to do vectors. Can any... |
Feb 11, 2020 at 5:16pm
[5 replies] Last: Thanks for the helps guys! (by MrIDKWHATIMDOING)
|
by joe809
Error With Swapping Two Words from a String (Reverse)
|
I'm trying to output the two words in a string in reverse order. For example, if the first word in the string is "Baseball" then the second word is "Basketbal... |
Feb 11, 2020 at 4:49pm
[15 replies] Last: #include <iostream> #include <sstream> #include <string> using namesp... (by lastchance)
|
by bor90
problem with equasion
|
Hello, I've got problem with my code. The results of equasion are weird and the same for any value I tipe in edit. Please help. It's in c++ builder 6, and unfor... |
Feb 11, 2020 at 4:09pm
[7 replies] Last: I've moved that logic as you said, but it still gives same results, n... (by dhayden)
|
by cblack618
Bool
|
Can someone help me fix this code #include <iostream> #include <string> using namespace std; int main(){ bool answer; cout << "Is Dutch... |
Feb 11, 2020 at 1:09pm
[19 replies] Last: Hello cblack618, You are welcome. Sorry for the delay I lost track o... (by Handy Andy)
|
by topman20000
Accessing one element of array when Inputing
|
I am trying to access an element from an array I created in my code. I want the final output of my code to print the string of the Class the user types in. ... |
Feb 11, 2020 at 12:01pm
[3 replies] Last: No, I mean this: for (int i = 0; i < (sizeof(Class) / sizeof(*Class));... (by coder777)
|
by cblack618
Recursion Palindrome (1,2)
|
I need help and don’t know what I’m doing MFor this assignment, you will create a program that tests a string to see if it is a palindrome. A palind... |
Feb 11, 2020 at 6:02am
[36 replies] Last: Infighting by the self-appointed giants starts and it's only day 2. (by againtry)
|
by TheJast
problems with asserts on kattis 'falling apart'
|
doing the kattis problem "fallingapart" for my cs3 class and solving the problem wasn't bad, but we're suposed to add asserts and i dont think i understand what... |
Feb 11, 2020 at 4:02am
[2 replies] Last: thank you, i think i understood what you were saying, i made some chan... (by TheJast)
|
by Gspiller81
Unable to run this program, please help
|
//Gina AdamsSpiller //CSCI 1010 //This program will caculate BMI #include<iostream> #include<string> using namespace std; int main() //Display message; ... |
Feb 11, 2020 at 2:54am
[2 replies] Last: Hello Gspiller81, The only things I can add to what Duthomhas has s... (by Handy Andy)
|
by highwayman
Longest period PRNG in <random>
|
uh. Yeah. What the title says. What prng in the <random> header has the longest period? I’m trying to make a super simple stream cipher, and I like being exce... |
Feb 11, 2020 at 2:51am
[13 replies] Last: Hm.. I’ll look into it... Just so you know guys my question was answ... (by highwayman)
|
by joe809
Reading Multiple Lines from String
|
I'm trying to read multiple lines from a string that the user inputs. For example, the user inputs two lines of strings. adnasndansdas asdnasndonasodn I'm... |
Feb 11, 2020 at 1:43am
[3 replies] Last: I got it working to return all lines. I placed the for loop inside of ... (by joe809)
|
by mrpear2020
Why this garbage character after cout?
|
Hello, I tried the below in two different compilers (Visual Studio and gdb online). Any idea why I am getting the garbage characters after printing "December 31... |
Feb 10, 2020 at 10:55pm
[5 replies] Last: Very good. Thank you! (by mrpear2020)
|
by mrpear2020
How can I 'stringstream' char data type array?
|
Hello, I am trying to combine two array of data type "char" as demonstrated below. So it seems if I do 'std::stringstream << array_char , this is not accepted. ... |
Feb 10, 2020 at 9:26pm
[3 replies] Last: Thank you, helios and all. #include <sstream> did it! (by mrpear2020)
|
number of months. |
Write a program to find the number of months in the given interval where Sunday after the second Friday is also the second last (penultimate) Sunday of the mont... |
Feb 10, 2020 at 7:04pm
[5 replies] Last: Latest 2nd Friday for any month: 14th. Earliest penultimate Sunday: 3... (by booradley60)
|
by bobcat854
How to retrieve Last element from Linked List
|
Hi, I'm trying to implement some basic functions for a Singular Linked List. The one I'm currently working on at the moment is the Last function. The purpose of... |
Feb 10, 2020 at 5:00pm
[17 replies] Last: Your new code for addFront and removeFront may work, but it's ineffici... (by dhayden)
|
virtual inheritance and sizes |
I know why the size of Derived1 is 1 but why the size of Derived3 is 8 what does virtual keyword do in this place regardless of preventing double inheritance ? ... |
Feb 10, 2020 at 3:09pm
[2 replies] Last: Thank you (by ahmad alghadban)
|
How to call access class private members with function |
We learned about classes in my class and were told to basically convert a previous assignment so that it uses classes. I can't figure out how to use my function... |
Feb 10, 2020 at 1:56pm
[3 replies] Last: Here are some indications of problems with loadsongs() : - parameter ... (by dhayden)
|
by Franck7070
By reference or by value parameter?
|
Hi everybody, If I have a recursive function having a signature like this one below, I'm wondering if the recursive call will pass the entire vector or if it's... |
Feb 10, 2020 at 1:28pm
[9 replies] Last: Passing the iterator isn't significantly less memory intensive than pa... (by againtry)
|
by Bopaki
I get this error when compiling
|
Use of unidentified identfier 'find_len' /* Summary: Linked list is an ordered set of data elements, each containing a link to its successor. This program ... |
Feb 10, 2020 at 12:54pm
[5 replies] Last: Suddenly everything worked fine after I declared the prototype at the ... (by Bopaki)
|