
please wait
by memepapa
reducing run-time example
|
I'm starting to pay attention to run-time and thinking about how to write more efficient codes. when I run the example code below, run time is about 5ms usin... |
Jan 4, 2022 at 5:01pm
[10 replies] Last: ^^^ nice circle back to the original post, which said that finding the... (by jonnin)
|
by jjardin61
Passing a "char[]" in a function
|
Hi, I'm having trouble getting the function to work here. ERROR = Error C2664 'void oLokumRates(int,int,int,bool,char )': cannot convert argument 5 fro... |
Jan 4, 2022 at 3:05pm
[4 replies] Last: OK, thanks! Works now... (by jjardin61)
|
by noweedi
i want to my while loop stop after my function bool return false
|
i want to my while loop stop after my function bool return false #include <iostream> using namespace std; bool numbers() { cout << "guess a nu... |
Jan 4, 2022 at 12:11pm
[4 replies] Last: int main() { while( !numbers() ) ; // keep calling the function t... (by JLBorges)
|
by jjardin61
string compare
|
Hi, I'm just trying to get string compare to work. It assigns b = 0; So it doesn't enter the if statement. But tt = "AGGR" so I don't see why the equa... |
Jan 4, 2022 at 11:32am
[5 replies] Last: To compare two std::string objects for equality, use == . For a ... (by JLBorges)
|
by thmm
benefits of ethical hacking
|
Could be a troll. First post and general question. We have seen this quite often here. |
Jan 3, 2022 at 11:07pm
[10 replies] Last: I kinda disagree, but I'll play nice (for once). :Þ (by deleted account xyzzy)
|
by impetus
Explain Syntax Constructor call
|
Need to help to understand syntax of Constructor call below: Array::Array( int arraySize ) : size( arraySize > 0 ? arraySize : throw invalid_argument( "Ar... |
Jan 3, 2022 at 6:56pm
[6 replies] Last: Array::Array( const Array &arrayToCopy ) : size( arrayToCopy.size ), ... (by impetus)
|
by J123654
Please help with a task
|
I started learning c++ not a long time ago and i cannot complete one task, more specifically I can't find remnant. What am I doing wrong? Btw excuse me for bad... |
Jan 3, 2022 at 4:34pm
[5 replies] Last: Thanks to everyone, I already solved it! (by J123654)
|
by SubZeroWins
Rename folder with folder size
|
I am about to start coding file system manipulation for the first time & I thought I would make myself a well needed windows program that renames my directories... |
Jan 3, 2022 at 10:06am
[18 replies] Last: For C++17 I suggest this book which has a chapter on filesystem: C++1... (by seeplus)
|
by memepapa
example code incompatible with gcc
|
I am able to run the following code on hackerrank's online compiler but I can't get it to work properly on my macbook's terminal (gcc compiler) the code is m... |
Jan 3, 2022 at 4:38am
[12 replies] Last: thanks againtry, I have learnt from your example (by memepapa)
|
by ryansspace
Keeps reading the cout no matter what the string is.
|
So I have set up predefined keywords as chars and it checks if the mood input is equal to first the weezer char, then the nirvanaisbad chars, etc etc, and if it... |
Jan 2, 2022 at 11:06am
[2 replies] Last: As C++17: #include <string> #include <iostream> #include <algorithm... (by seeplus)
|
by memepapa
non-aggregate type 'set<int>' cannot be initialized with an initializer list
|
hi all, especially JLBorges who has been extremely helpful. i split time learning from books and youtube tutorials (while practicing coding questions on hack... |
Jan 2, 2022 at 10:31am
[2 replies] Last: As C++20, this is simply: #include <iostream> #include <set> int m... (by seeplus)
|
by Shervan360
Why should we use struct for stack?
|
Hello, Why should we use struct for stack? Can we use another type to create a struct? for example: create stuct with class! |
Jan 2, 2022 at 7:26am
[2 replies] Last: c++ has multiple built in stacks. you would only make another for lea... (by jonnin)
|
by impetus
pre-17 C++ static double
|
How can I amend the code to make static double work in this context? I researched and found I could use inline in 17 version of C++. I'm into pre-17, so i'm a... |
Jan 1, 2022 at 11:22am
[16 replies] Last: #include <iostream> struct SEXP { static volatile int i; static ... (by seeplus)
|