
please wait
by volume3066
I'm new, and I don't know why this does not run successfully.
|
I am a student and starting to learn C++. Here is the question: The program accepts two positive integers from the input. Output every integer from the first nu... |
Sep 16, 2021 at 9:55pm
[3 replies] Last: This chat is ancient, it does not support that, another post is correc... (by jonnin)
|
by a7300235
can we use lambda to initialize set/map container?
|
//neccessary headfiles are included int main(){ auto f= (int x,int y){return x>y;}; auto f2=&f; set<int,decltype(f2)> tree(f2); fo... |
Sep 16, 2021 at 6:38pm
[4 replies] Last: > neccessary headfiles are included Why not paste the necessary #inclu... (by Ganado)
|
by Shibbito
Sweeping/searching/slicing in c++
|
Hi, I would like to get a better understanding with each slicing and determine how to sweep through a user defined input, as researching the internet there's so... |
Sep 16, 2021 at 11:24am
[4 replies] Last: #include <iostream> #include <vector> #include <string> #include <sst... (by lastchance)
|
by Grust697
open lots of text
|
Working with microsoft visual studio. Wondering if there is a way to get a program to open the exact same .txt file many times and then close the program. Thank... |
Sep 15, 2021 at 6:53pm
[9 replies] Last: Well I figured I'd have some fun and wrote it again using X11. Then wh... (by Duthomhas)
|
by Geckoo
What is this last address?
|
I have just a simple question trying to understand correctly pointers. I understand the first and the second output which work as expected, but the last one is ... |
Sep 15, 2021 at 5:58pm
[8 replies] Last: Clever. Thanks ++ (by Geckoo)
|
by a7300235
confusion on object construction
|
//neccessary headfiles are included class obj{ public: int x; obj(const &o){;} obj(){}//Q1 mark1 }; int main(){ obj a;//Q1 mark2 a.x... |
Sep 15, 2021 at 4:43pm
[1 reply] : L11 creates a as an instance of obj using default constructor - as no ... (by seeplus)
|
by RDelPorto
Floating point number greater than 8 bytes
|
Is it possible in C++ to handle number that would be greater thatn 8 bytes? I have a situation where I need to do that. I thought the solution would be to use ... |
Sep 15, 2021 at 12:13pm
[12 replies] Last: Doh, and I fail the class for not reading the instructions! still, the... (by jonnin)
|
by divBaral
Unary Operator Overloading
|
Why is this compiled? (EDIT: in line no 24) Isn't c++ is rval? even if it is lval it is not assigned to 4. #include <iostream> using namespace std; class Co... |
Sep 15, 2021 at 9:43am
[6 replies] Last: thanks (by divBaral)
|
by Grust697
Open another window in visual studio
|
Trying to make a C++ code in visual studio 2019 that will open a video in another window, and create a new window, not play the video in the command thingy. A l... |
Sep 15, 2021 at 7:31am
[4 replies] Last: that will open a video in another window I know the basics Knowin... (by malibor)
|
by persades
Classes/Functions
|
Working on creating a class with methods, using functions i have to get and display info im getting an error that says "error: no matching function for call ... |
Sep 15, 2021 at 5:39am
[1 reply] : Edit: You don't have the <string> header included, the compiler would ... (by TheIdeasMan)
|
by gigacapybara
Extract and Add a Series of Numbers
|
I have to extract numbers from a string and then add them, but I am stuck and I'm just not sure what to do next if anyone could guide me to get further it would... |
Sep 14, 2021 at 7:40pm
[10 replies] Last: I offended him in another thread. Rather than accept that Things Don'... (by Duthomhas)
|
by Grust697
Timed Password Cancel
|
how i delete a post |
Sep 14, 2021 at 6:03pm
[1 reply] : little things: just return 3, exit(3) is not useful. unistd locks yo... (by jonnin)
|
by twaynfme
Find Largest Prime Number
|
A Prime Number is a number that is greater than 1 and has just two factors: itself and 1. Given an integer, N, for N ≥ 2, a common question is, what is the... |
Sep 14, 2021 at 5:32pm
[17 replies] Last: the trick to the babylon method is the initial guess. for 0-10k, a be... (by jonnin)
|
by ChesterPlus
ASCII art not printing
|
I'm having trouble figuring out why the console is not printing out the ASCII art. Side note, there might be a few other mathematical issues as well as the fac... |
Sep 14, 2021 at 5:05pm
[9 replies] Last: Here's your happy house.... There's something fishy goin' on here: ... (by deleted account xyzzy)
|
by dntwk707
(Pointer) can you tell me the difference in two blocks of code?
|
Hi I am learning c++ linked list data structure. I am stuck in understanding difference of these two blocks of code. 1.First void addAtHead(int val) { ... |
Sep 14, 2021 at 4:27pm
[6 replies] Last: Thank you so much all for very well written explanation. It makes much... (by dntwk707)
|
Pointer inside the struct |
use pointers inside classes or struct, can some explain why/how use pointers inside the struct, i have an example here , if someone can help, please explain it... |
Sep 14, 2021 at 2:35pm
[8 replies] Last: The nextPointer here is used to point to next item in the linked list... (by AbstractionAnon)
|
by dizzie
unexpected and unwanted output
|
hey, I'm having problems with coding this program. the output is not what i wanted. any ideas? this is the question: The manager of the Diner by the Valley ... |
Sep 14, 2021 at 8:40am
[3 replies] Last: float menu, type, request, water; These variables are never set t... (by seeplus)
|
by SubZeroWins
user defined literal, REQUIRES long double???
|
QUESTION 1: Why do I get a compile error invalid parameter list when I set the user defined literal a double in the parameter list, instead of a long double? Is... |
Sep 14, 2021 at 12:59am
[10 replies] Last: Arguably optimizing readability and code quality raises the ceiling of... (by helios)
|
by DeathSpirit
Wireless tagging for beginners
|
I will preface this question with a caveat: I'm a reasonably talented programmer, but an absolute novice in electronics. This will be my first project. My dad ... |
Sep 13, 2021 at 10:25pm
[3 replies] Last: Sounds like an opportunity for an Arduino/Raspberry Pi combined with s... (by againtry)
|
How to make sure that different dynamic memory is allocated to the same pointer when using while loop? (1,2) |
Here is my question: How to use a while loop to allocate different dynamic memory address to the same pointer? For example, there is a pointer named "Creator"... |
Sep 13, 2021 at 8:34pm
[38 replies] Last: you started the slang. (by anup30)
|