
please wait
by MrMode
Using varibles to create new object.
|
Hello, is it posbile to create new object from variable string nameOnList and number wich would be a passed into constructor . int menu(); int selection; int... |
Sep 3, 2018 at 4:00pm
[7 replies] Last: Hello MrMode, After working with the program I have come up with for ... (by Handy Andy)
|
by irush
all IF statements print please help im new to this.
|
when I run my program it prints all of the if statements. I think it is the grammar, but I have tried removing the ";" because it ends the If statement and goes... |
Sep 3, 2018 at 3:10pm
[3 replies] Last: You're welcome. Hope it helped. (by MikeyBoy)
|
by seungyeon
My lottery program artimetic works!
|
Powerball chances of winning is 292 million. With my artimetic there is 80 million chances. I am checking Powerball numbers everyday. All the combinations we... |
Sep 3, 2018 at 3:10pm
[3 replies] Last: Is this the lottery program which models a fantasy world, in which the... (by MikeyBoy)
|
by Josephus
Josephus problem solving
|
How does the process work? #include <stdio.h> int josephus(int n, int k) { if (n == 1) return 1; else return (josephus(n - 1, k) +... |
Sep 3, 2018 at 2:54pm
[1 reply] : You can trace it manually. You do know that the main() calls josephus... (by keskiverto)
|
by Tuxs Cavs
validate
|
Write your question here. |
Sep 3, 2018 at 10:23am
[1 reply] : hello Tuxs Cavs, The answer is 42. https://www.youtube.com/watch?v=ab... (by Handy Andy)
|
by nirbh
problem understanding a paragraph in c++ primer
|
Unlike the other integer types, there are three distinct basic character types: char,signed char, and unsigned char. In particular, char is not the same type ... |
Sep 3, 2018 at 9:41am
[3 replies] Last: Thank you tpb. Thank you JLBorges. (by nirbh)
|
by Lithia
Playing with getline()
|
Hello, I was playing around with getline() seeing what I can and can't do with it and tried this: #include <iostream> using namespace std; int main() { ... |
Sep 3, 2018 at 8:51am
[3 replies] Last: You can type input to the program at any time. When you read from cin ... (by Peter87)
|
Sorting an Array |
I'm trying to sort an array by students' last names and GPA. The sortLastName function isn't working at all, while the sortGPA function is kind of working. It's... |
Sep 3, 2018 at 8:17am
[2 replies] Last: You could also compare your solution to: http://www.cplusplus.com/refe... (by keskiverto)
|
by Tett
Problem with hex converter
|
So i made a decimal to hex converter and its almost working or at least for the first char. Any idea why it won't work? #include <iostream> using namespa... |
Sep 3, 2018 at 8:03am
[4 replies] Last: [quote=Tett]They convert the number to base 16. I tried putting them o... (by Peter87)
|
by cegodica
Integer overflow
|
Hi. I have a problem, need everyone to help: #include <iostream> #include <limits> int main() { std::cout<<std::numeric_limits<int>::max()<<'\n'; // 2147... |
Sep 3, 2018 at 7:49am
[4 replies] Last: Unsigned integers doesn't really overflow in the same sense that signe... (by Peter87)
|
by HarGar
Cannot get the second half of my program to compile
|
Hi coders, I have been working on this assignment all day, and the code just wont run properly. When I compile the code it prompts me to enter the inputs ... |
Sep 3, 2018 at 2:23am
[2 replies] Last: I'm surprised it compiles since there are no overloaded setter functio... (by SimpleCoder)
|
by ZacharyGirot
Accepting arrow keys as input in if statements
|
I am a junior in high School and taking a c++ coding class. Our first assignment is to make a text based game we are allowed to use anything as input but the te... |
Sep 3, 2018 at 1:43am
[5 replies] Last: Good. Thanks for trying it. (by tpb)
|
by AdrianIV
Send input to another .exe
|
Hello there! I hope you are having good day/night! :D. TL;DR : How to send input into another .exe? My goal is to create a simple Machine Learning algorithm, ... |
Sep 2, 2018 at 9:46pm
[3 replies] Last: which method? I gave like 6 ways... tcp for example, pseudo code (yo... (by jonnin)
|
by sjomelo01
please help me with the following c++ problem
|
Consider the following class declaration: class ExamType { public: ExamType(); ExamType(string m, string v, int t, string... |
Sep 2, 2018 at 9:25pm
[2 replies] Last: Hello sjomelo01, Like hoogo mentioned PLEASE ALWAYS USE CODE TAGS (t... (by Handy Andy)
|
by rokij6698
Structure type variable inside structure class.
|
what does struct ListNode* next; mean? I took the struct out it is still working. Also, what does newNode->next = NULL; mean? what is the concept of this? ... |
Sep 2, 2018 at 7:31pm
[1 reply] : struct ListNode* next; is a struct that holds information about a no... (by H00G0)
|
by WalterCC
What Index is in Vectors C++
|
Hello ! I have this code about finding the max from a vector , i do understand it , but in another code , i have to find the max in vector and his index , i rea... |
Sep 2, 2018 at 7:30pm
[6 replies] Last: THANK YOUU , I UNDERSTAND , THANK YOU SOO MUCH , Here shorter expli... (by WalterCC)
|
by kapcina69
how to change the code in the program and keep the changes
|
I'm learning c ++ for over a month and I'm progressing. I'm wondering if it's possible to change the code within the program itself, and then keep that change. ... |
Sep 2, 2018 at 4:22pm
[5 replies] Last: Yes, what Peter87 said! Also thank you JLBorges for providing an examp... (by H00G0)
|
Linked List Display Function Not Working. |
Hey Guys,This Function is not working as expected,It will not display disp.pname The lines before the structure pointer declaration are working fine. I have tr... |
Sep 2, 2018 at 2:19pm
[1 reply] : You can't call main recursively. Use a loop instead. It's entirely po... (by dhayden)
|
by pLearner
C++ || Help With Console Menu & Status
|
Hi guys, I have some questions relating to a game trainer I am making. I have tidy up the code from my old code. Also if anyone can have a look at my code and s... |
Sep 2, 2018 at 1:25pm
[6 replies] Last: #include <iostream> #include <vector> #include <string> std::size_t ... (by JLBorges)
|
by poohbear
getline
|
my getline isn't working can someone help #include <iostream> #include <string> using namespace std; struct StockInfo { string coname; ... |
Sep 2, 2018 at 12:48pm
[2 replies] Last: thank you , silly mistakes ! (by poohbear)
|